[SymmMem] Add a helper API to distinguish intra- and inter- node#161984
[SymmMem] Add a helper API to distinguish intra- and inter- node#161984kwen2501 wants to merge 2 commits intogh/kwen2501/221/basefrom
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/161984
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 5027fb5 with merge base 524b78d ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
| base_ptr_, rank_to_global_rank_[r]); | ||
| buffers_.push_back(peer_ptr); | ||
| // If a peer is over network, `nvshmem_ptr` returns null | ||
| if (peer_ptr == nullptr) { |
There was a problem hiding this comment.
did you check this on a multinode run?
There was a problem hiding this comment.
Checked on NVL72, got non-zero ptr as expected.
Haven't checked on regular multi-node, was relying on NVSHMEM documentation:
https://docs.nvidia.com/nvshmem/api/gen/api/setup.html#nvshmem-ptr
|
@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 |
…orch#161984) Added a helper API to tell if the world is entirely within a P2P domain or crosses network. This is mainly for nblocks tuning purpose. (In later PRs) Pull Request resolved: pytorch#161984 Approved by: https://github.com/ngimel ghstack dependencies: pytorch#161983
…orch#161984) Added a helper API to tell if the world is entirely within a P2P domain or crosses network. This is mainly for nblocks tuning purpose. (In later PRs) Pull Request resolved: pytorch#161984 Approved by: https://github.com/ngimel ghstack dependencies: pytorch#161983
…orch#161984) Added a helper API to tell if the world is entirely within a P2P domain or crosses network. This is mainly for nblocks tuning purpose. (In later PRs) Pull Request resolved: pytorch#161984 Approved by: https://github.com/ngimel ghstack dependencies: pytorch#161983
…orch#161984) Added a helper API to tell if the world is entirely within a P2P domain or crosses network. This is mainly for nblocks tuning purpose. (In later PRs) Pull Request resolved: pytorch#161984 Approved by: https://github.com/ngimel ghstack dependencies: pytorch#161983
Stack from ghstack (oldest at bottom):
Added a helper API to tell if the world is entirely within a P2P domain or crosses network.
This is mainly for nblocks tuning purpose. (In later PRs)
cc @H-Huang @awgu @wanchaol @fegin @fduwjj @wz337 @wconstab @d4l3k @pragupta @ezyang @msaroufim