docs: Correct README claim that OpenMP thread limits are process-wide#210
Closed
mvanhorn wants to merge 1 commit into
Closed
docs: Correct README claim that OpenMP thread limits are process-wide#210mvanhorn wants to merge 1 commit into
mvanhorn wants to merge 1 commit into
Conversation
Contributor
|
This is already handled by the OP in #209 |
Contributor
|
Also mine has the benefit of not being written by an LLM sniping issues, as this appears to be. So I at least tried to make the PR accurate instead of outputting probabilistic (and in this case somewhat misleading) word salad. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The README's 'Limitations' section states that setting the maximum number of threads for OpenMP and BLAS libraries 'has a global effect and impacts the whole Python process' and that 'there is no thread level isolation as these libraries do not offer thread-local APIs.' Issue author itamarst demonstrated with reproducible programs (libgomp on Ubuntu, libomp via Conda-Forge) that OpenMP limits are in fact thread-specific: a limit set on the main thread does not affect a newly spawned thread's OpenMP thread count, while BLAS/OpenBLAS pthreads limits do remain process-wide. Maintainer ogrisel confirmed on 2026-06-17 that 'the documentation is wrong' and explicitly invited a PR for the fix.
Fixes #207