-
Notifications
You must be signed in to change notification settings - Fork 26.3k
[SymmMem] Better tuning of A2AV based on accurate node boundary #162003
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
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/162003
Note: Links to docs will display an error until the docs builds have been completed. ⏳ No Failures, 1 PendingAs of commit 5396dfd with merge base 7a83cf4 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
| // Check user setting first | ||
| int num_blocks = c10d::symmetric_memory::getenv_nblocks(); | ||
| if (num_blocks > 0) { // set by user | ||
| return num_blocks; |
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.
I think you want to treat it as max_blocks, and not just return
|
@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 |
| return num_blocks; | ||
| } | ||
|
|
||
| } // namespace c10d::symmetric_memory No newline at end of file |
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.
you want to make linter happy here.
…rch#162003) Use `world_within_direct_access()` to distinguish intra- vs inter- node. Previously we assumed a fixed node size of 8, which is not true for NVL72. Also added env var `TORCH_SYMMMEM_NBLOCKS` for control. Pull Request resolved: pytorch#162003 Approved by: https://github.com/ngimel, https://github.com/fduwjj
…rch#162003) Use `world_within_direct_access()` to distinguish intra- vs inter- node. Previously we assumed a fixed node size of 8, which is not true for NVL72. Also added env var `TORCH_SYMMMEM_NBLOCKS` for control. Pull Request resolved: pytorch#162003 Approved by: https://github.com/ngimel, https://github.com/fduwjj
…rch#162003) Use `world_within_direct_access()` to distinguish intra- vs inter- node. Previously we assumed a fixed node size of 8, which is not true for NVL72. Also added env var `TORCH_SYMMMEM_NBLOCKS` for control. Pull Request resolved: pytorch#162003 Approved by: https://github.com/ngimel, https://github.com/fduwjj
…rch#162003) Use `world_within_direct_access()` to distinguish intra- vs inter- node. Previously we assumed a fixed node size of 8, which is not true for NVL72. Also added env var `TORCH_SYMMMEM_NBLOCKS` for control. Pull Request resolved: pytorch#162003 Approved by: https://github.com/ngimel, https://github.com/fduwjj
Stack from ghstack (oldest at bottom):
Use
world_within_direct_access()to distinguish intra- vs inter- node.Previously we assumed a fixed node size of 8, which is not true for NVL72.
Also added env var
TORCH_SYMMMEM_NBLOCKSfor control.cc @H-Huang @awgu @wanchaol @fegin @fduwjj @wz337 @wconstab @d4l3k @pragupta @ezyang @msaroufim