Repository navigation
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/96785
Note: Links to docs will display an error until the docs builds have been completed. ✅ You can merge normally! (1 Unrelated Failure)As of commit 8393604 with merge base 3a823e4 ( UNSTABLE - The following job failed but was likely due to flakiness present on trunk and has been marked as unstable:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
@pytorchbot rebase |
|
@pytorchbot successfully started a rebase job. Check the current status here |
|
Successfully rebased |
fa5cbcb to
791b958
Compare
|
Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as |
791b958 to
8393604
Compare
|
is there a way to get more confidence about this change? or could we offer perhaps an env to restore the old behavior if someone hits a bug? idk.. |
kumpera
left a comment
There was a problem hiding this comment.
It would be great if we update the documentation as well to properly explain this behavior.
Additionally, we should note this potentially breaking change in the release notes.
| for (auto& device : devices_) { | ||
| gpuGuard.set_index(device.index()); | ||
| AT_CUDA_CHECK(cudaDeviceSynchronize()); | ||
| // `dist.barrier()` only requires all CPU processes to enter this |
There was a problem hiding this comment.
We should take this chance to update the documentation of dist::barrier to cover NCCL and explain the expected behavior around CPU and accelerators.
kumpera
left a comment
There was a problem hiding this comment.
LGTM.
We should make sure this makes into the release notes for the next PT.
|
Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as |
Resubmitting #96785 Pull Request resolved: #117804 Approved by: https://github.com/wconstab
Resubmitting #96785 Pull Request resolved: #117804 Approved by: https://github.com/wconstab
Resubmitting #96785 Pull Request resolved: #117804 Approved by: https://github.com/wconstab
Resubmitting #96785 Pull Request resolved: #117804 Approved by: https://github.com/wconstab
The document says:
Both
cudaStreamSynchronizeandcudaDeviceSynchronizewould sync the host-side process to the completion of the barrier kernel in the GPU, hence achieving the above functionality.This PR chooses a smaller set
cudaStreamSynchronizeinstead ofcudaDeviceSynchronize, for three reasons:CurrentCUDAStreamis usually the context for next operation in Python script;