-
Notifications
You must be signed in to change notification settings - Fork 7
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
Controlling parallelism #28
Comments
Right, there's a So writing a hook for whatever higher level API should be easy; just set that global. Scipy itself does not have an internal system besides Unless I'm missing something |
I opened an issue with If there is movement on that then I'm happy to revisit this. I think it would be nice for completeness. As of today I'm not aware of other high-level APIs. So as far as I can tell there's nothing possible to do. Feel free to reopen if I missed something. |
@ivirshup The threadpoolctl folks say this is out of scope for threadpoolctl because there is a way to do it with Python as is. But with their new controller API it's still possible to control FMM. I've made a PR do do this, though I'd rather wait on merging it until threadpoolctl makes a release so that we know their new API is stable. If you'd like to test then you have to install threadpoolctl straight from github: |
Great! Also thanks for opening that issue with And, yes makes sense to wait for the release. |
Was just looking at the PR over on scipy (super excited to see this moving forward!), and noticed that this library has its own global variable for parallelism.
Ideally, I would like for the number of threads used to be controlled by some higher level API like
threadpoolctl
.Any thoughts on how this could be accomplished? Maybe something at the scipy level?
The text was updated successfully, but these errors were encountered: