[SymmMem] Move code to where it is used by kwen2501 · Pull Request #157611 · pytorch/pytorch · GitHub | Latest TMZ Celebrity News & Gossip | Watch TMZ Live
Skip to content

[SymmMem] Move code to where it is used #157611

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

Open
wants to merge 3 commits into
base: gh/kwen2501/191/base
Choose a base branch
from

Conversation

kwen2501
Copy link
Contributor

@kwen2501 kwen2501 commented Jul 4, 2025

Stack from ghstack (oldest at bottom):

maybe_initialize_env_vars and initialize_nvshmem_with_store are only used in NVSHMEMSymmetricMemory.cu. Moving them there.

cc @H-Huang @awgu @wanchaol @fegin @fduwjj @wz337 @wconstab @d4l3k

[ghstack-poisoned]
Copy link

pytorch-bot bot commented Jul 4, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/157611

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit 41ac62d with merge base a6fab82 (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 Jul 4, 2025
ghstack-source-id: 66a6a8b
Pull-Request-resolved: #157611
@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 Jul 4, 2025
[ghstack-poisoned]
kwen2501 added a commit that referenced this pull request Jul 4, 2025
ghstack-source-id: 338cde3
Pull-Request-resolved: #157611
[ghstack-poisoned]
kwen2501 added a commit that referenced this pull request Jul 4, 2025
ghstack-source-id: 34f5f00
Pull-Request-resolved: #157611
@kwen2501 kwen2501 changed the title [SymmMem] Remove unused APIs from header [SymmMem] Move code to where it is used Jul 4, 2025
@kwen2501 kwen2501 requested review from fegin and fduwjj July 4, 2025 05:16
// Print version
int major, minor;
::nvshmem_info_get_version(&major, &minor);
LOG(INFO) << "NVSHMEM is available, version: " << major << "." << minor;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
LOG(INFO) << "NVSHMEM is available, version: " << major << "." << minor;
LOG(INFO) << "NVSHMEM is available, version: " << major << '.' << minor;

int result = (stmt); \
TORCH_CHECK( \
result == 0, \
std::string(__FILE__) + ":" + std::to_string(__LINE__) + " " + msg + \
Copy link
Collaborator

@Skylion007 Skylion007 Jul 4, 2025

Choose a reason for hiding this comment

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

Hmm, this string is always constructed whether the torch check fails or passes... Reformulate to c10::LazyStr or atleast fmtlib.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ciflow/h100-symm-mem 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.

2 participants

TMZ Celebrity News – Breaking Stories, Videos & Gossip

Looking for the latest TMZ celebrity news? You've come to the right place. From shocking Hollywood scandals to exclusive videos, TMZ delivers it all in real time.

Whether it’s a red carpet slip-up, a viral paparazzi moment, or a legal drama involving your favorite stars, TMZ news is always first to break the story. Stay in the loop with daily updates, insider tips, and jaw-dropping photos.

🎥 Watch TMZ Live

TMZ Live brings you daily celebrity news and interviews straight from the TMZ newsroom. Don’t miss a beat—watch now and see what’s trending in Hollywood.