-
Notifications
You must be signed in to change notification settings - Fork 25.7k
Init threadpool with user defined num_threads before default #136793
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
[ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/136793
Note: Links to docs will display an error until the docs builds have been completed. ❌ 4 New FailuresAs of commit c6b6e0c with merge base a259fbf ( NEW FAILURES - The following jobs have failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
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.
Sounds good!
Please double check the behavior locally using gdb
Fixes #134714 (or attempts to, idk how to test yet) [ghstack-poisoned]
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.
Checked myself locally that this works
|
@pytorchbot merge Thanks @albanD! |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
|
@pytorchbot revert -c ghfirst -m "Caused internal Oculus crash, and internal force landed a diff without exporting to GH =.=" |
|
@pytorchbot successfully started a revert job. Check the current status here. |
…136793)" This reverts commit adbcaee. Reverted #136793 on behalf of https://github.com/janeyx99 due to Caused internal Oculus crash, and internal force landed a diff without exporting to GH =.= ([comment](#136793 (comment)))
|
@janeyx99 your PR has been successfully reverted. |
Fixes #134714 (or attempts to, idk how to test yet) For posterity, how one can test: 1. make sure you have USE_PTHREADPOOL=1 or pull a packaged binary 2. run gdb --args python, with `r` to enter, `Ctrl-C` to pause, and `c` to get back into Python 3. import torch 4. torch.set_num_threads(1), make sure this does not trigger any additional threads getting created. [ghstack-poisoned]
|
Closing in favor of #137051 |
…ytorch#136793)" This reverts commit adbcaee. Reverted pytorch#136793 on behalf of https://github.com/janeyx99 due to Caused internal Oculus crash, and internal force landed a diff without exporting to GH =.= ([comment](pytorch#136793 (comment)))
…fault (#137051) Very similar to #136793, but adds back `pool->set_thread_count` call as it is still necessary (I am guessing due to the mutex) Fixes #ISSUE_NUMBER Pull Request resolved: #137051 Approved by: https://github.com/albanD
Fixes #134714 (or attempts to, idk how to test yet)
For posterity, how one can test:
rto enter,Ctrl-Cto pause, andcto get back into PythonStack from ghstack (oldest at bottom):