Skip to content

[SymmMem] Add a helper API to distinguish intra- and inter- node#161984

Closed
kwen2501 wants to merge 2 commits intogh/kwen2501/221/basefrom
gh/kwen2501/221/head
Closed

[SymmMem] Add a helper API to distinguish intra- and inter- node#161984
kwen2501 wants to merge 2 commits intogh/kwen2501/221/basefrom
gh/kwen2501/221/head

Conversation

@kwen2501
Copy link
Collaborator

@kwen2501 kwen2501 commented Sep 2, 2025

[ghstack-poisoned]
@pytorch-bot
Copy link

pytorch-bot bot commented Sep 2, 2025

🔗 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 Failures

As of commit 5027fb5 with merge base 524b78d (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

kwen2501 added a commit that referenced this pull request Sep 2, 2025
@pytorch-bot pytorch-bot bot added ciflow/h100-symm-mem oncall: distributed Add this issue/PR to distributed oncall triage queue release notes: distributed (c10d) release notes category labels Sep 2, 2025
@kwen2501 kwen2501 requested review from fegin and ngimel September 2, 2025 17:04
[ghstack-poisoned]
kwen2501 added a commit that referenced this pull request Sep 2, 2025
@kwen2501 kwen2501 changed the title [SymmMem] Better distinction between intra- and inter- node [SymmMem] Add a helper API to distinguish intra- and inter- node Sep 2, 2025
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) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

did you check this on a multinode run?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@kwen2501
Copy link
Collaborator Author

kwen2501 commented Sep 4, 2025

@pytorchbot merge

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Sep 4, 2025
@pytorchmergebot
Copy link
Collaborator

Merge started

Your 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

Advanced Debugging
Check the merge workflow status
here

markc-614 pushed a commit to markc-614/pytorch that referenced this pull request Sep 17, 2025
…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
mansiag05 pushed a commit to mansiag05/pytorch that referenced this pull request Sep 22, 2025
…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
cleonard530 pushed a commit to cleonard530/pytorch that referenced this pull request Sep 22, 2025
…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
dsashidh pushed a commit to dsashidh/pytorch that referenced this pull request Sep 26, 2025
…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
@github-actions github-actions bot deleted the gh/kwen2501/221/head branch October 5, 2025 02:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/h100-symm-mem ciflow/trunk Trigger trunk jobs on your pull request Merged oncall: distributed Add this issue/PR to distributed oncall triage queue release notes: distributed (c10d) release notes category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants