efficient all against all protein similarity matrix
play

Efficient all-against-all protein similarity matrix computation - PowerPoint PPT Presentation

Efficient all-against-all protein similarity matrix computation using OpenCL Genome-oriented bioinformatics lab - WS2013/2014 Uli Khler & Anton Smirnov LMU & TUM Helmholtz-Zentrum Mnchen Supervisor: Mathias Walter February 24th,


  1. Efficient all-against-all protein similarity matrix computation using OpenCL Genome-oriented bioinformatics lab - WS2013/2014 Uli Köhler & Anton Smirnov LMU & TUM Helmholtz-Zentrum München Supervisor: Mathias Walter February 24th, 2014

  2. Introduction SIMAP SIMAP I Similarity Matrix of Proteins: p 1 p 2 p 3 Database of protein ... − 5 p 1 similarities ... ... − p 2 Compares all-against-all ... p 3 170 − Currently ~73 million protein sequences → 5 . 3 · 10 15 alignments BOINC-SIMAP: distributed computing Köhler U, Smirnov A (LMU, TUM) Efficient S/W using OpenCL February 24th, 2014 3 / 21

  3. Introduction SIMAP SIMAP II Currently uses FASTA algorithm (fast, but suboptimal heuristics) For high-scoring hits, Smith-Waterman is currently in use Smith-Waterman provides better accuracy Requires efficient, parallelized implementation Köhler U, Smirnov A (LMU, TUM) Efficient S/W using OpenCL February 24th, 2014 4 / 21

  4. Introduction Hardware Computational hardware CPU: ~1-12 cores, available anywhere GPU: 1000+ cores, good availability FPGA ( field programmable gate array ) Configurable number of cores Difficult to use Expensive Köhler U, Smirnov A (LMU, TUM) Efficient S/W using OpenCL February 24th, 2014 5 / 21

  5. Parallelization and OpenCL OpenCL OpenCL Programming framework for parallel computing Top level abstraction for low level routines Runs on CPUs, GPUs & FPGAs without modification Driver optimizes code for specific devices Köhler U, Smirnov A (LMU, TUM) Efficient S/W using OpenCL February 24th, 2014 6 / 21

  6. Parallelization and OpenCL Smith-Waterman Smith-Waterman parallelization Intra-task Inter-task Köhler U, Smirnov A (LMU, TUM) Efficient S/W using OpenCL February 24th, 2014 7 / 21

  7. Parallelization and OpenCL Padding & sizeclasses Sequence length optimization Maximal efficiency of Smith-Waterman implementation: For many optimizations, we need sequences with equal length Equal length can boost performance by multiple magnitudes Pad sequence with ε Alignment score must not change → Substitution score: −∞ Problem: Padding increases matrix size → Large overhead Köhler U, Smirnov A (LMU, TUM) Efficient S/W using OpenCL February 24th, 2014 8 / 21

  8. Parallelization and OpenCL Padding & sizeclasses Sizeclasses Solution: Extension sizeclasses / Adaptive binning A K L ε ε Divide sequence length ... ... ... A 0 0 into different classes ... ... ... C 0 0 Pad only within one ... ... ... M 0 0 sizeclass ... ... ... M 0 0 Multiple sizeclasses ... ... ... reduce overall padding L 0 0 Köhler U, Smirnov A (LMU, TUM) Efficient S/W using OpenCL February 24th, 2014 9 / 21

  9. Parallelization and OpenCL Padding & sizeclasses SIMAP sequence length distribution 90000 Absolute frequency 60000 30000 0 0 500 1000 1500 2000 Sequence length [AA] Köhler U, Smirnov A (LMU, TUM) Efficient S/W using OpenCL February 24th, 2014 10 / 21

  10. Results and benchmarks CLSW Implementation details CLSW: OpenCL Smith-Waterman Objective: Develop proof-of-concept score-only OpenCL Smith-Waterman Use inter-task parallelization All-against-all with affine gap costs Can be used to build vendor-independent fast Smith-Waterman implementation Köhler U, Smirnov A (LMU, TUM) Efficient S/W using OpenCL February 24th, 2014 11 / 21

  11. Results and benchmarks Implementation Implementation aspects Written in pure C++11 & OpenCL 1.1 No external dependencies, compact binary Tested with SIMAP subset Verified using SeqAn library Köhler U, Smirnov A (LMU, TUM) Efficient S/W using OpenCL February 24th, 2014 12 / 21

  12. Results and benchmarks Advantages Core advantages SWIPE : Integer ↔ CLSW : Floating point → Composition based score adjustment → Higher accuracy Concise codebase: < 1,000 C++ lines of code OpenCL Smith-Waterman: <50 lines of code (SWIPE: 10,000 lines of code) Existing implementations are based on CUDA → Only runs on NVidia GPUs Köhler U, Smirnov A (LMU, TUM) Efficient S/W using OpenCL February 24th, 2014 13 / 21

  13. Results and benchmarks Outlook 1,000 x 1,000 sequences benchmark ; 1,000 AA (query) ; 1,000 AA (target) 250 200 Runtime [s] 150 100 50 0 ssearch36 swipe swipe−MT CLSW Program Köhler U, Smirnov A (LMU, TUM) Efficient S/W using OpenCL February 24th, 2014 14 / 21

  14. Results and benchmarks Outlook 4000x1000 sequences benchmark, 20 AA (query), 1.000 AA (target) 60 Runtime [s] 40 20 0 ssearch36 swipe swipe−MT CLSW Program Köhler U, Smirnov A (LMU, TUM) Efficient S/W using OpenCL February 24th, 2014 15 / 21

  15. Results and benchmarks Outlook Integration into SIMAP Since 2005, only CPU clients Since 2014, also ARM client for Android Users ask for GPU clients regularly since 2005 CLSW was built to be integratable into BOINC → Leverage huge amount of computing power Still, a lot of work needs to be done... Köhler U, Smirnov A (LMU, TUM) Efficient S/W using OpenCL February 24th, 2014 16 / 21

  16. Results and benchmarks Outlook Other uses 3-4 times faster than SWIPE for short query sequences → Shotgun proteomics, NGS? Huge optimization potential → Reduce overhead, 5-10x speedup Platforms unsupported by SWIPE (e.g. 32 bit platforms) Köhler U, Smirnov A (LMU, TUM) Efficient S/W using OpenCL February 24th, 2014 17 / 21

  17. Conclusion Conclusion CLSW: Portable, GPU-based Smith-Waterman Fast for small queries, can be optimized for large queries Floating point score calculation → Composition-based score adjustment GPU computing is underestimated in computational biology Köhler U, Smirnov A (LMU, TUM) Efficient S/W using OpenCL February 24th, 2014 18 / 21

  18. Conclusion Acknowledgements Thank you for your attention! Special thanks to Mathias Walter & Thomas Rattei who made this project possible! Questions? Köhler U, Smirnov A (LMU, TUM) Efficient S/W using OpenCL February 24th, 2014 19 / 21

  19. Advanced Topics Kernel sizeclasses 20 AA x 20 AA ; 4,000 x 4,000 alignment, with variable row buffer 20000 Runtime [s] 15000 10000 5000 0 500 1000 1500 2000 Buffer size Köhler U, Smirnov A (LMU, TUM) Efficient S/W using OpenCL February 24th, 2014 20 / 21

  20. Advanced Topics Sizeclass mathematical background � sizeclass penalty ) + ( β · | sizeclass | ) Sizeclass: ( α · Difficult to determine optimal values for α and β Idea: Use population quantiles (e.g. q 0 . 01 % to q 100 % ) as sizeclass boundaries. Postprocessing: Divide sizeclasses with penalty > threshold Köhler U, Smirnov A (LMU, TUM) Efficient S/W using OpenCL February 24th, 2014 21 / 21

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend