-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
[MRG] DOC More details about parallelism (joblib, openMP, MKL...) #15116
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I cannot really assess the correctness but I find it very clear. I also like the small example with the 4 * 4 threads in total. Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @NicolasHug ! A few comments
I made a big update. Tried to trim down the That's pretty much all I know about this... Hope that's useful, feedback welcome |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Look good overall. I find it very clear, thanks !
Numpy recently added the possibility to link against BLIS (another multi-threaded BLAS implementation). For completeness you could add BLIS everywhere you mention MKL and OpenBLAS :)
It also has a env var: BLIS_NUM_THREADS.
Thanks a lot for the comments. @jeremiedbb joblib doesn't protect from oversubscription from BLIS for now, right? |
Actually it does because BLIS looks for (That might change in the future: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is very clear and synthetic! Thanks @NicolasHug for doing this.
2/3 comments on some specific points.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall, LGTM. Just a few improvement suggestions:
Merged! Thanks @NicolasHug. |
This might need an update depending on the outcome of #14196 |
Follow up on #14265
ping @ogrisel @jeremiedbb please make sure I didn't write any nonsense :)