-
Notifications
You must be signed in to change notification settings - Fork 25.7k
Add TORCH_API annotations to c10d #59695
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
c10d apparently doesn't have hidden visibility by default, but libtorch has, so in order to prepare c10d to be merged into libtorch we need to add these annotations. I've done this "as needed", seeing what would fail and fixing it. Windows is much more picky about it than Linux, hence there's more annotations in the Windows-only files (e.g., Gloo, as compared to NCCL). Differential Revision: [D28987578](https://our.internmc.facebook.com/intern/diff/D28987578/) [ghstack-poisoned]
💊 CI failures summary and remediationsAs of commit 8383207 (more details on the Dr. CI page):
🕵️ 1 new failure recognized by patternsThe following CI failures do not appear to be due to upstream breakages:
|
| Job | Step | Action |
|---|---|---|
| Download PyTorch Test Reports | 🔁 rerun |
This comment was automatically generated by Dr. CI (expand for details).
Follow this link to opt-out of these comments for your Pull Requests.Please report bugs/suggestions to the (internal) Dr. CI Users group.
c10d apparently doesn't have hidden visibility by default, but libtorch has, so in order to prepare c10d to be merged into libtorch we need to add these annotations. I've done this "as needed", seeing what would fail and fixing it. Windows is much more picky about it than Linux, hence there's more annotations in the Windows-only files (e.g., Gloo, as compared to NCCL). Differential Revision: [D28987578](https://our.internmc.facebook.com/intern/diff/D28987578/) [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
c10d apparently doesn't have hidden visibility by default, but libtorch has, so in order to prepare c10d to be merged into libtorch we need to add these annotations. I've done this "as needed", seeing what would fail and fixing it. Windows is much more picky about it than Linux, hence there's more annotations in the Windows-only files (e.g., Gloo, as compared to NCCL). Differential Revision: [D28987578](https://our.internmc.facebook.com/intern/diff/D28987578/) [ghstack-poisoned]
c10d apparently doesn't have hidden visibility by default, but libtorch has, so in order to prepare c10d to be merged into libtorch we need to add these annotations. I've done this "as needed", seeing what would fail and fixing it. Windows is much more picky about it than Linux, hence there's more annotations in the Windows-only files (e.g., Gloo, as compared to NCCL). Differential Revision: [D28987578](https://our.internmc.facebook.com/intern/diff/D28987578/) [ghstack-poisoned]
|
It actually turns out that it's complicated to use The proper solution would be to introduce a temporary |
Stack from ghstack:
c10d apparently doesn't have hidden visibility by default, but libtorch has, so in order to prepare c10d to be merged into libtorch we need to add these annotations. I've done this "as needed", seeing what would fail and fixing it. Windows is much more picky about it than Linux, hence there's more annotations in the Windows-only files (e.g., Gloo, as compared to NCCL).
Differential Revision: D28987578