-
Notifications
You must be signed in to change notification settings - Fork 25.4k
c10d/Store: add clone feature #150966
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
c10d/Store: add clone feature #150966
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/150966
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 914c66a with merge base d751698 ( 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.
LGTM, for the PGNCCL part, do you refer to the use case of store->check()?
@fduwjj yes, I'm referring to the check call -- with this change we could instead do the more efficient |
@pytorchbot merge |
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 |
@d4l3k the non-blocking check is actually intentional because it also checks the heartbeat. Or maybe we are ok with a third thread which only dumps FR and this thread is going to be class member. |
@pytorchmergebot revert -c ghfirst -m "failing internally" |
@pytorchbot successfully started a revert job. Check the current status here. |
This reverts commit 205881e. Reverted #150966 on behalf of https://github.com/atalman due to failing internally ([comment](#150966 (comment)))
@d4l3k your PR has been successfully reverted. |
Summary: This adds a new `clone()` method to Store which will return a new Store instance that can be used from a different thread. This is intended to better support multiple threads with stores such as when ProcessGroupNCCL needs a store to do error propagation. Related issue: #150943 Approved by: https://github.com/fduwjj Test Plan: contbuild & OSS CI, see https://hud.pytorch.org/commit/pytorch/pytorch/205881ea4a451574c3a3de87c42484043a955d6e Test plan from GitHub: ``` pytest test/distributed/test_store.py -k PythonStore pytest test/distributed/test_store.py -k clone ``` Differential Revision: D72789690
Summary: This adds a new `clone()` method to Store which will return a new Store instance that can be used from a different thread. This is intended to better support multiple threads with stores such as when ProcessGroupNCCL needs a store to do error propagation. Related issue: #150943 Approved by: https://github.com/fduwjj Test Plan: contbuild & OSS CI, see https://hud.pytorch.org/commit/pytorch/pytorch/205881ea4a451574c3a3de87c42484043a955d6e Test plan from GitHub: ``` pytest test/distributed/test_store.py -k PythonStore pytest test/distributed/test_store.py -k clone ``` Differential Revision: D72789690 Pull Request resolved: #151045 Approved by: https://github.com/XilunWu, https://github.com/fduwjj
This adds a new `clone()` method to Store which will return a new Store instance that can be used from a different thread. This is intended to better support multiple threads with stores such as when ProcessGroupNCCL needs a store to do error propagation. Related issue: pytorch#150943 Test plan: ``` pytest test/distributed/test_store.py -k PythonStore pytest test/distributed/test_store.py -k clone ``` Pull Request resolved: pytorch#150966 Approved by: https://github.com/fduwjj
This reverts commit 205881e. Reverted pytorch#150966 on behalf of https://github.com/atalman due to failing internally ([comment](pytorch#150966 (comment)))
…rch#151045) Summary: This adds a new `clone()` method to Store which will return a new Store instance that can be used from a different thread. This is intended to better support multiple threads with stores such as when ProcessGroupNCCL needs a store to do error propagation. Related issue: pytorch#150943 Approved by: https://github.com/fduwjj Test Plan: contbuild & OSS CI, see https://hud.pytorch.org/commit/pytorch/pytorch/205881ea4a451574c3a3de87c42484043a955d6e Test plan from GitHub: ``` pytest test/distributed/test_store.py -k PythonStore pytest test/distributed/test_store.py -k clone ``` Differential Revision: D72789690 Pull Request resolved: pytorch#151045 Approved by: https://github.com/XilunWu, https://github.com/fduwjj
This adds a new `clone()` method to Store which will return a new Store instance that can be used from a different thread. This is intended to better support multiple threads with stores such as when ProcessGroupNCCL needs a store to do error propagation. Related issue: pytorch#150943 Test plan: ``` pytest test/distributed/test_store.py -k PythonStore pytest test/distributed/test_store.py -k clone ``` Pull Request resolved: pytorch#150966 Approved by: https://github.com/fduwjj
This reverts commit 205881e. Reverted pytorch#150966 on behalf of https://github.com/atalman due to failing internally ([comment](pytorch#150966 (comment)))
…rch#151045) Summary: This adds a new `clone()` method to Store which will return a new Store instance that can be used from a different thread. This is intended to better support multiple threads with stores such as when ProcessGroupNCCL needs a store to do error propagation. Related issue: pytorch#150943 Approved by: https://github.com/fduwjj Test Plan: contbuild & OSS CI, see https://hud.pytorch.org/commit/pytorch/pytorch/205881ea4a451574c3a3de87c42484043a955d6e Test plan from GitHub: ``` pytest test/distributed/test_store.py -k PythonStore pytest test/distributed/test_store.py -k clone ``` Differential Revision: D72789690 Pull Request resolved: pytorch#151045 Approved by: https://github.com/XilunWu, https://github.com/fduwjj
This adds a new
clone()
method to Store which will return a new Store instance that can be used from a different thread.This is intended to better support multiple threads with stores such as when ProcessGroupNCCL needs a store to do error propagation.
Related issue: #150943
Test plan:
cc @H-Huang @awgu @wanchaol @fegin @fduwjj @wz337 @wconstab