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

TaskRunner: disable implicit threading when using multiprocessing #12

Merged
merged 1 commit into from Apr 27, 2016

Conversation

timj
Copy link
Member

@timj timj commented Apr 27, 2016

We have had trouble with low-level threaded packages (OpenBLAS, MKL)
implicitly using multiple threads if the user doesn't explicitly state
the number of desired threads, which increases contention when
parallelising at a higher level. We disable implicit threading when
using multiprocessing to protect the user. Our check can be disabled
by the user setting the environment variable LSST_ALLOW_IMPLICIT_THREADS
or by explicitly setting the number of threads using the environment
variables checked by the low-level threaded package.

We have had trouble with low-level threaded packages (OpenBLAS, MKL)
implicitly using multiple threads if the user doesn't explicitly state
the number of desired threads, which increases contention when
parallelising at a higher level. We disable implicit threading when
using multiprocessing to protect the user. Our check can be disabled
by the user setting the environment variable LSST_ALLOW_IMPLICIT_THREADS
or by explicitly setting the number of threads using the environment
variables checked by the low-level threaded package.
@PaulPrice PaulPrice merged commit 0efda25 into master Apr 27, 2016
@ktlim ktlim deleted the tickets/DM-4714 branch August 25, 2018 06:50
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

Successfully merging this pull request may close these issues.

None yet

2 participants