Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create new Thread in Mutect2 will slow down the omp and avx accelerated pairHMM calculation? #90

Closed
cxfustc opened this issue Mar 19, 2018 · 2 comments

Comments

@cxfustc
Copy link

cxfustc commented Mar 19, 2018

Hi Developer,

I was trying to accelerate Mutect2. I used class Thread to create new threads to parallelize the data prepare and active region calculation. However, after this modification, the calculation of pairHMM was much slower than before using the same data. I used the GKL source code with the commit id 'a6f5f4'.

Thank you very much!

@gspowley
Copy link
Contributor

My guess is some of the cores previously used for PairHMM are now used for preparing active regions.

@cxfustc
Copy link
Author

cxfustc commented Mar 20, 2018

Thank you for replying.

https://github.com/cxfustc/Tiny_GKL_test/blob/master/PairHMMTest.java
I write a simple test code, and it comes out you are right. It is the competition for cores that slows down the calculation speed.

Here is the test result. The computer for testing has 4 cores.
If the number of threads for every pairhmm engine is set to 1. The result of the program is:
Cost 4.527874s
Cost 3.670908s
Cost 4.456890s
Cost 4.555578s
Cost 4.757390s
If the number of threads is set to 2. The result of the program is:
Cost 1.798678s
Cost 2.841058s
Cost 3.018658s
Cost 3.194318s
Cost 3.424579s

@cxfustc cxfustc closed this as completed Apr 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants