-
Notifications
You must be signed in to change notification settings - Fork 26.3k
[Easy] Fix the compilation warning #157889
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/157889
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit fce9a1f with merge base e5edd01 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
**Background:** ```Shell [1376/2332] Building CUDA object caffe2/CMakeFiles/torch_...h/csrc/distributed/c10d/symm_mem/NCCLSymmetricMemory.cu.o /root/Git.d/pytorch/pytorch/torch/csrc/distributed/c10d/ProcessGroupNCCL.hpp(450): warning #68-D: integer conversion resulted in a change of sign size_t numelIn_ = -1; ^ Remark: The warnings can be suppressed with "-diag-suppress <warning-number>" /root/Git.d/pytorch/pytorch/torch/csrc/distributed/c10d/ProcessGroupNCCL.hpp(451): warning #68-D: integer conversion resulted in a change of sign size_t numelOut_ = -1; ^ /root/Git.d/pytorch/pytorch/torch/csrc/distributed/c10d/ProcessGroupNCCL.hpp(450): warning #68-D: integer conversion resulted in a change of sign size_t numelIn_ = -1; ^ Remark: The warnings can be suppressed with "-diag-suppress <warning-number>" /root/Git.d/pytorch/pytorch/torch/csrc/distributed/c10d/ProcessGroupNCCL.hpp(451): warning #68-D: integer conversion resulted in a change of sign size_t numelOut_ = -1; ``` ghstack-source-id: 3fd5998 Pull-Request-resolved: #157889
|
@pytorchbot label "topic: not user facing" |
|
@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 |
| size_t numelIn_ = -1; | ||
| size_t numelOut_ = -1; |
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.
This change is ok to me but I forgot why we originally want to make it -1.... I checked the original PR #100413 this should be fine. Thanks for the fix.
Stack from ghstack (oldest at bottom):
Background:
cc @H-Huang @awgu @wanchaol @fegin @fduwjj @wz337 @wconstab @d4l3k