parallelizing smith waterman algorithm on gpuscs1100215/files/sem1-mid-term.pdf · undergraduate...
TRANSCRIPT
![Page 1: Parallelizing Smith Waterman Algorithm on GPUscs1100215/files/Sem1-Mid-Term.pdf · Undergraduate Project Advisor : Prof. Subodh Kumar Chirag Jain (2010CS10215) IIT Delhi Parallelizing](https://reader034.vdocuments.us/reader034/viewer/2022050523/5fa6e587ec215248aa797150/html5/thumbnails/1.jpg)
Undergraduate ProjectAdvisor : Prof. Subodh Kumar
Chirag Jain (2010CS10215)IIT Delhi
Parallelizing Smith Waterman Algorithm on
GPUs
![Page 2: Parallelizing Smith Waterman Algorithm on GPUscs1100215/files/Sem1-Mid-Term.pdf · Undergraduate Project Advisor : Prof. Subodh Kumar Chirag Jain (2010CS10215) IIT Delhi Parallelizing](https://reader034.vdocuments.us/reader034/viewer/2022050523/5fa6e587ec215248aa797150/html5/thumbnails/2.jpg)
OUTLINE
• Smith Waterman Problem
• Parallelization [A. Khajeh-Saeed et al. ]
• Reproduced Results
![Page 3: Parallelizing Smith Waterman Algorithm on GPUscs1100215/files/Sem1-Mid-Term.pdf · Undergraduate Project Advisor : Prof. Subodh Kumar Chirag Jain (2010CS10215) IIT Delhi Parallelizing](https://reader034.vdocuments.us/reader034/viewer/2022050523/5fa6e587ec215248aa797150/html5/thumbnails/3.jpg)
SW Problem
Local Alignment:
A T C A G A G T CG T C A G T C A
![Page 4: Parallelizing Smith Waterman Algorithm on GPUscs1100215/files/Sem1-Mid-Term.pdf · Undergraduate Project Advisor : Prof. Subodh Kumar Chirag Jain (2010CS10215) IIT Delhi Parallelizing](https://reader034.vdocuments.us/reader034/viewer/2022050523/5fa6e587ec215248aa797150/html5/thumbnails/4.jpg)
SW Problem
A T C A G A G T CG T C A G - - T C A
Local Alignment:
A T C A G A G T CG T C A G T C A
![Page 5: Parallelizing Smith Waterman Algorithm on GPUscs1100215/files/Sem1-Mid-Term.pdf · Undergraduate Project Advisor : Prof. Subodh Kumar Chirag Jain (2010CS10215) IIT Delhi Parallelizing](https://reader034.vdocuments.us/reader034/viewer/2022050523/5fa6e587ec215248aa797150/html5/thumbnails/5.jpg)
SW Problem
![Page 6: Parallelizing Smith Waterman Algorithm on GPUscs1100215/files/Sem1-Mid-Term.pdf · Undergraduate Project Advisor : Prof. Subodh Kumar Chirag Jain (2010CS10215) IIT Delhi Parallelizing](https://reader034.vdocuments.us/reader034/viewer/2022050523/5fa6e587ec215248aa797150/html5/thumbnails/6.jpg)
SW ProblemRecursion :
Hi,j = Score at cell (i,j)Si,j = Match / Mismatch ScoreGs = Gap opening penalty
Ge = Gap extension penalty
![Page 7: Parallelizing Smith Waterman Algorithm on GPUscs1100215/files/Sem1-Mid-Term.pdf · Undergraduate Project Advisor : Prof. Subodh Kumar Chirag Jain (2010CS10215) IIT Delhi Parallelizing](https://reader034.vdocuments.us/reader034/viewer/2022050523/5fa6e587ec215248aa797150/html5/thumbnails/7.jpg)
SW Problem
Time Complexity : O(L1L2(L1+L2))
L1 = Length of Database SequenceL2 = Length of Database Sequence
![Page 8: Parallelizing Smith Waterman Algorithm on GPUscs1100215/files/Sem1-Mid-Term.pdf · Undergraduate Project Advisor : Prof. Subodh Kumar Chirag Jain (2010CS10215) IIT Delhi Parallelizing](https://reader034.vdocuments.us/reader034/viewer/2022050523/5fa6e587ec215248aa797150/html5/thumbnails/8.jpg)
SW Problem
Time Complexity : O(L1L2)
L1 = Length of Database SequenceL2 = Length of Database Sequence
Store three values at each cell :
Ei,j = Max {Ei,j-1, Hi,j-1 - Gs} - Ge
Fi,j = Max {Fi-1,j, Hi-1,j - Gs} - Ge
Hi,j = Score at cell (i,j) = Max {Hi-1,j-1 + Si,j, Ei,j, Fi,j}
![Page 9: Parallelizing Smith Waterman Algorithm on GPUscs1100215/files/Sem1-Mid-Term.pdf · Undergraduate Project Advisor : Prof. Subodh Kumar Chirag Jain (2010CS10215) IIT Delhi Parallelizing](https://reader034.vdocuments.us/reader034/viewer/2022050523/5fa6e587ec215248aa797150/html5/thumbnails/9.jpg)
SW Problem
Result:GCC- UCGCGCCAUUGC
![Page 10: Parallelizing Smith Waterman Algorithm on GPUscs1100215/files/Sem1-Mid-Term.pdf · Undergraduate Project Advisor : Prof. Subodh Kumar Chirag Jain (2010CS10215) IIT Delhi Parallelizing](https://reader034.vdocuments.us/reader034/viewer/2022050523/5fa6e587ec215248aa797150/html5/thumbnails/10.jpg)
SW Problem
![Page 11: Parallelizing Smith Waterman Algorithm on GPUscs1100215/files/Sem1-Mid-Term.pdf · Undergraduate Project Advisor : Prof. Subodh Kumar Chirag Jain (2010CS10215) IIT Delhi Parallelizing](https://reader034.vdocuments.us/reader034/viewer/2022050523/5fa6e587ec215248aa797150/html5/thumbnails/11.jpg)
Optimization
Parallel Scan Approach
[A. Khajeh-Saeed et al. 2010]
![Page 12: Parallelizing Smith Waterman Algorithm on GPUscs1100215/files/Sem1-Mid-Term.pdf · Undergraduate Project Advisor : Prof. Subodh Kumar Chirag Jain (2010CS10215) IIT Delhi Parallelizing](https://reader034.vdocuments.us/reader034/viewer/2022050523/5fa6e587ec215248aa797150/html5/thumbnails/12.jpg)
Parallel Scan Approach
Step 1
Fi,j = Max {Fi-1,j, Hi-1,j - Gs} - Ge~Hi,j = Score at cell (i,j) = Max {Hi-1,j-1 + Si,j, Fi,j}
![Page 13: Parallelizing Smith Waterman Algorithm on GPUscs1100215/files/Sem1-Mid-Term.pdf · Undergraduate Project Advisor : Prof. Subodh Kumar Chirag Jain (2010CS10215) IIT Delhi Parallelizing](https://reader034.vdocuments.us/reader034/viewer/2022050523/5fa6e587ec215248aa797150/html5/thumbnails/13.jpg)
Parallel Scan Approach
Step 2
~Ei,j = Maxi<k<j (~Hi,j-k - kGe)
![Page 14: Parallelizing Smith Waterman Algorithm on GPUscs1100215/files/Sem1-Mid-Term.pdf · Undergraduate Project Advisor : Prof. Subodh Kumar Chirag Jain (2010CS10215) IIT Delhi Parallelizing](https://reader034.vdocuments.us/reader034/viewer/2022050523/5fa6e587ec215248aa797150/html5/thumbnails/14.jpg)
Parallel Scan Approach
Step 3
Hi,j = Max (~Hi,j , ~Ei,j - Ge)
![Page 15: Parallelizing Smith Waterman Algorithm on GPUscs1100215/files/Sem1-Mid-Term.pdf · Undergraduate Project Advisor : Prof. Subodh Kumar Chirag Jain (2010CS10215) IIT Delhi Parallelizing](https://reader034.vdocuments.us/reader034/viewer/2022050523/5fa6e587ec215248aa797150/html5/thumbnails/15.jpg)
Parallel Scan ApproachStep 2 (Revisited)
![Page 16: Parallelizing Smith Waterman Algorithm on GPUscs1100215/files/Sem1-Mid-Term.pdf · Undergraduate Project Advisor : Prof. Subodh Kumar Chirag Jain (2010CS10215) IIT Delhi Parallelizing](https://reader034.vdocuments.us/reader034/viewer/2022050523/5fa6e587ec215248aa797150/html5/thumbnails/16.jpg)
Parallel Scan ApproachStep 2 (Revisited)
![Page 17: Parallelizing Smith Waterman Algorithm on GPUscs1100215/files/Sem1-Mid-Term.pdf · Undergraduate Project Advisor : Prof. Subodh Kumar Chirag Jain (2010CS10215) IIT Delhi Parallelizing](https://reader034.vdocuments.us/reader034/viewer/2022050523/5fa6e587ec215248aa797150/html5/thumbnails/17.jpg)
Results
• SSCA Benchmark
• Kernel 1 : Pairwise Local Alignment of Sequences
• Kernel 3 : Locating similar sequences
![Page 18: Parallelizing Smith Waterman Algorithm on GPUscs1100215/files/Sem1-Mid-Term.pdf · Undergraduate Project Advisor : Prof. Subodh Kumar Chirag Jain (2010CS10215) IIT Delhi Parallelizing](https://reader034.vdocuments.us/reader034/viewer/2022050523/5fa6e587ec215248aa797150/html5/thumbnails/18.jpg)
Results
• Using:
• Single Core of Intel Xeon CPU
• GPUs : Tesla M2070
![Page 19: Parallelizing Smith Waterman Algorithm on GPUscs1100215/files/Sem1-Mid-Term.pdf · Undergraduate Project Advisor : Prof. Subodh Kumar Chirag Jain (2010CS10215) IIT Delhi Parallelizing](https://reader034.vdocuments.us/reader034/viewer/2022050523/5fa6e587ec215248aa797150/html5/thumbnails/19.jpg)
1.E+00&1.E+01&1.E+02&1.E+03&1.E+04&1.E+05&1.E+06&1.E+07&
1.E+07&
3.E+07&
6.E+07&
2.E+08&
4.E+08&
1.E+09&
3.E+09&
6.E+09&
2.E+10&
Time%(m
s)%
Input%Size%
Time%taken%by%Kernel%1%
CPU&2.67GHz&
GPU&M2070&
Results
![Page 20: Parallelizing Smith Waterman Algorithm on GPUscs1100215/files/Sem1-Mid-Term.pdf · Undergraduate Project Advisor : Prof. Subodh Kumar Chirag Jain (2010CS10215) IIT Delhi Parallelizing](https://reader034.vdocuments.us/reader034/viewer/2022050523/5fa6e587ec215248aa797150/html5/thumbnails/20.jpg)
0"5"10"15"20"25"30"35"40"
1.E+07"
3.E+07"
6.E+07"
2.E+08"
4.E+08"
1.E+09"
3.E+09"
6.E+09"
2.E+10"
Factor'
Input'Size'
Speed'Up(over'CPU)':'Kernel'1'
GPU"M2070"
Results
![Page 21: Parallelizing Smith Waterman Algorithm on GPUscs1100215/files/Sem1-Mid-Term.pdf · Undergraduate Project Advisor : Prof. Subodh Kumar Chirag Jain (2010CS10215) IIT Delhi Parallelizing](https://reader034.vdocuments.us/reader034/viewer/2022050523/5fa6e587ec215248aa797150/html5/thumbnails/21.jpg)
1.E+00&1.E+01&1.E+02&1.E+03&1.E+04&1.E+05&1.E+06&1.E+07&
1.E+07&
3.E+07&
6.E+07&
2.E+08&
4.E+08&
1.E+09&
3.E+09&
6.E+09&
2.E+10&
Time%(m
s)%
Input%Size%
Time%taken%by%Kernel%3%
CPU&2.67GHz&
GPU&M2070&
Results
![Page 22: Parallelizing Smith Waterman Algorithm on GPUscs1100215/files/Sem1-Mid-Term.pdf · Undergraduate Project Advisor : Prof. Subodh Kumar Chirag Jain (2010CS10215) IIT Delhi Parallelizing](https://reader034.vdocuments.us/reader034/viewer/2022050523/5fa6e587ec215248aa797150/html5/thumbnails/22.jpg)
0"
5"
10"
15"
20"
25"
1.E+07"
3.E+07"
6.E+07"
2.E+08"
4.E+08"
1.E+09"
3.E+09"
6.E+09"
2.E+10"
Factor'
Input'Size'
Speed'Up(over'CPU)':'Kernel'3'
GPU"M2070"
Results
![Page 23: Parallelizing Smith Waterman Algorithm on GPUscs1100215/files/Sem1-Mid-Term.pdf · Undergraduate Project Advisor : Prof. Subodh Kumar Chirag Jain (2010CS10215) IIT Delhi Parallelizing](https://reader034.vdocuments.us/reader034/viewer/2022050523/5fa6e587ec215248aa797150/html5/thumbnails/23.jpg)
Results
Over multiple GPUs
![Page 24: Parallelizing Smith Waterman Algorithm on GPUscs1100215/files/Sem1-Mid-Term.pdf · Undergraduate Project Advisor : Prof. Subodh Kumar Chirag Jain (2010CS10215) IIT Delhi Parallelizing](https://reader034.vdocuments.us/reader034/viewer/2022050523/5fa6e587ec215248aa797150/html5/thumbnails/24.jpg)
0"1"2"3"4"5"6"7"8"
1.E+07"
3.E+07"
6.E+07"
2.E+08"
4.E+08"
1.E+09"
3.E+09"
6.E+09"
2.E+10"
Factor'
Input'Size'
Kernel'1:'Speed'Up'over'Single'GPU'
Two"M2070"
Four"M2070"
Eight"M2070"
Sixteen"M2070"
Results
![Page 25: Parallelizing Smith Waterman Algorithm on GPUscs1100215/files/Sem1-Mid-Term.pdf · Undergraduate Project Advisor : Prof. Subodh Kumar Chirag Jain (2010CS10215) IIT Delhi Parallelizing](https://reader034.vdocuments.us/reader034/viewer/2022050523/5fa6e587ec215248aa797150/html5/thumbnails/25.jpg)
0"1"2"3"4"5"6"7"8"
1.E+07"
3.E+07"
6.E+07"
2.E+08"
4.E+08"
1.E+09"
3.E+09"
6.E+09"
2.E+10"
Factor'
Input'Size'
Kernel'3:'Speed'Up'over'Single'GPU'
Two"M2070"
Four"M2070"
Eight"M2070"
Sixteeen"M2070"
Results
![Page 26: Parallelizing Smith Waterman Algorithm on GPUscs1100215/files/Sem1-Mid-Term.pdf · Undergraduate Project Advisor : Prof. Subodh Kumar Chirag Jain (2010CS10215) IIT Delhi Parallelizing](https://reader034.vdocuments.us/reader034/viewer/2022050523/5fa6e587ec215248aa797150/html5/thumbnails/26.jpg)
References
• A. Khajeh-Saeed et al. , Acceleration of the Smith–Waterman algorithm using single and multiple graphics processors, J. Computational Physics 229 (2010) 4247–4258
• "Designing Scalable Synthetic Compact Applications for Benchmarking High Productivity Computing Systems ," CTWatch Quarterly, Volume 2, Number 4B, November 2006 B.
![Page 27: Parallelizing Smith Waterman Algorithm on GPUscs1100215/files/Sem1-Mid-Term.pdf · Undergraduate Project Advisor : Prof. Subodh Kumar Chirag Jain (2010CS10215) IIT Delhi Parallelizing](https://reader034.vdocuments.us/reader034/viewer/2022050523/5fa6e587ec215248aa797150/html5/thumbnails/27.jpg)
Thank You