-
Notifications
You must be signed in to change notification settings - Fork 25.7k
Fix a bug of distributed 'gather' with noncontiguous tensors on the NCCL backend. #159549
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/159549
Note: Links to docs will display an error until the docs builds have been completed. ⏳ 1 Pending, 1 Unrelated FailureAs of commit 829e141 with merge base 42a69f7 ( UNSTABLE - The following job is marked as unstable, possibly due to flakiness on trunk:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
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
might be nice to add unit test
|
@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 |
|
I would be glad to add some unit tests for the bug, but I am not familiar with the testing framework and do not know where to start. :( |
…CCL backend. (#159549) Fixes #159548 * Throw an error message when the input tensors for the distributed `gather` are noncontiguous. This behaviour is consistent with the distributed `all_gather`. Pull Request resolved: #159549 Approved by: https://github.com/d4l3k
|
cc @zhangxiaoli73 @Chao1Han I think the xccl backend needs this fix as well... |
|
@Chao1Han Please help check.
|
Fixes #159548
gatherare noncontiguous. This behaviour is consistent with the distributedall_gather.cc @H-Huang @awgu @wanchaol @fegin @fduwjj @wz337 @wconstab @d4l3k @pragupta