-
Notifications
You must be signed in to change notification settings - Fork 12
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
Threads over-subscription #12
Comments
I have to look into the issue more carefully, not sure why/when it happens, but it happened more than once already. @a-slide do you have any idea? |
Ok, it looks like I figured it out. On my system numpy is built against openBlas, which by default is multithreaded. The result is that the np.array() call in __process_references() spawns multiple threads (and every worker process does the same). import os
os.environ["MKL_NUM_THREADS"] = "1"
os.environ["MKL_THREADING_LAYER"] = "sequential"
os.environ["NUMEXPR_NUM_THREADS"] = "1"
os.environ["OMP_NUM_THREADS"] = "1" I'm currently testing whether it works as it should.. will commit as soon as I'm sure all is fine. |
I did not notice, but my version is actually also build against OpenBlas.
|
Not completely fixed apparently. |
This should be fixed by #94 but I haven't tested it yet. Did you? |
I think it's fixed |
But it's not, reopening. |
It looks like nanocompore sometimes spawns more threads than it should.. Starting it with nthreads=4 with the 7SK IVT data starts 16 threads.
The text was updated successfully, but these errors were encountered: