-
Notifications
You must be signed in to change notification settings - Fork 25.4k
[c10d][fr] Record each individual collective being coalesced #151238
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
[ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/151238
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 0accc80 with merge base f1f18c7 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
During the record of FR for coalesced collectives we are not consistent. For P2P ops, we log individual collectives into FR but for non-p2p ops, we don't do that. This PR is trying to make non-P2P also log individual collective into FR so that we can use script to check correctness of ops for each one of collectives coalesced. Also the added unit test also address the unit test ask in the comment in #150863. cc H-Huang awgu wanchaol fegin wz337 wconstab d4l3k [ghstack-poisoned]
During the record of FR for coalesced collectives we are not consistent. For P2P ops, we log individual collectives into FR but for non-p2p ops, we don't do that. This PR is trying to make non-P2P also log individual collective into FR so that we can use script to check correctness of ops for each one of collectives coalesced. Also the added unit test also address the unit test ask in the comment in #150863. cc H-Huang awgu wanchaol fegin wz337 wconstab d4l3k [ghstack-poisoned]
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
def _verify_trace(self, t, include_collectives, timing_enabled, is_json): | ||
ver = t["version"] | ||
self.assertEqual(ver, "2.5") | ||
self.assertEqual(ver, "2.7") |
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.
why didn't this error when the version was incorrectly (?) 2.6 above?
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.
oh it is a rebase slowness. The base should be 2.6...
pgStatus_, | ||
/*isP2P=*/false); | ||
(void)trace_id; | ||
} |
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.
We do this so we can detect when a coalesced event wasn't triggered or had invalid shape/dtype/etc?
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.
right, that's exactly what we want to do.
During the record of FR for coalesced collectives we are not consistent. For P2P ops, we log individual collectives into FR but for non-p2p ops, we don't do that. This PR is trying to make non-P2P also log individual collective into FR so that we can use script to check correctness of ops for each one of collectives coalesced. Also the added unit test also address the unit test ask in the comment in #150863. cc H-Huang awgu wanchaol fegin wz337 wconstab d4l3k [ghstack-poisoned]
@pytorchbot rebase |
@pytorchbot started a rebase job onto refs/remotes/origin/viable/strict. Check the current status here |
Rebase failed due to Command
Raised by https://github.com/pytorch/pytorch/actions/runs/14475581233 |
During the record of FR for coalesced collectives we are not consistent. For P2P ops, we log individual collectives into FR but for non-p2p ops, we don't do that. This PR is trying to make non-P2P also log individual collective into FR so that we can use script to check correctness of ops for each one of collectives coalesced. Also the added unit test also address the unit test ask in the comment in #150863. cc H-Huang awgu wanchaol fegin wz337 wconstab d4l3k [ghstack-poisoned]
@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 |
…#151238) During the record of FR for coalesced collectives we are not consistent. For P2P ops, we log individual collectives into FR but for non-p2p ops, we don't do that. This PR is trying to make non-P2P also log individual collective into FR so that we can use script to check correctness of ops for each one of collectives coalesced. Also the added unit test also address the unit test ask in the comment in pytorch#150863. Pull Request resolved: pytorch#151238 Approved by: https://github.com/d4l3k, https://github.com/wconstab ghstack dependencies: pytorch#151247
…#151238) During the record of FR for coalesced collectives we are not consistent. For P2P ops, we log individual collectives into FR but for non-p2p ops, we don't do that. This PR is trying to make non-P2P also log individual collective into FR so that we can use script to check correctness of ops for each one of collectives coalesced. Also the added unit test also address the unit test ask in the comment in pytorch#150863. Pull Request resolved: pytorch#151238 Approved by: https://github.com/d4l3k, https://github.com/wconstab ghstack dependencies: pytorch#151247
Stack from ghstack (oldest at bottom):
During the record of FR for coalesced collectives we are not consistent. For P2P ops, we log individual collectives into FR but for non-p2p ops, we don't do that. This PR is trying to make non-P2P also log individual collective into FR so that we can use script to check correctness of ops for each one of collectives coalesced.
Also the added unit test also address the unit test ask in the comment in #150863.
cc @H-Huang @awgu @wanchaol @fegin @wz337 @wconstab @d4l3k