Skip to content
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

[BE] Abstract out strings to top of file #125640

Closed
wants to merge 9 commits into from

Conversation

c-p-i-o
Copy link
Contributor

@c-p-i-o c-p-i-o commented May 6, 2024

Stack from ghstack (oldest at bottom):

Summary:
Move const strings to top of file. This is in preparation of tooling to
make use of shared constants (e.g. version string). A non-functional change.
Ideally we want these const strings to be available from both C++ and Python - but I haven't figured out how to correctly share things in PyTorch. I'll do this in a subsequent change.

Test Plan:
python test/distributed/test_c10d_nccl.py NCCLTraceTest

cc @mrshenli @pritamdamania87 @zhaojuanmao @satgera @gqchen @aazzolini @osalpekar @jiayisuse @H-Huang @kwen2501 @awgu @penguinwu @fegin @XilunWu @wanchaol @fduwjj @wz337 @tianyu-l @wconstab @yf225 @chauhang @d4l3k

Summary:
Move const strings to top of file. This is in preparation of tooling to
make use of shared constants (e.g. version string).

Test Plan:
python test/distributed/test_c10d_nccl.py NCCLTraceTest

[ghstack-poisoned]
Copy link

pytorch-bot bot commented May 6, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/125640

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit d8144ea with merge base e046c59 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@pytorch-bot pytorch-bot bot added oncall: distributed Add this issue/PR to distributed oncall triage queue release notes: distributed (c10d) release notes category labels May 6, 2024
c-p-i-o added a commit that referenced this pull request May 6, 2024
Summary:
Move const strings to top of file. This is in preparation of tooling to
make use of shared constants (e.g. version string).

Test Plan:
python test/distributed/test_c10d_nccl.py NCCLTraceTest

ghstack-source-id: 3a0072f6c591ff3611038e3f9caaba585ba9860f
Pull Request resolved: #125640
Summary:
Move const strings to top of file. This is in preparation of tooling to
make use of shared constants (e.g. version string).

Test Plan:
python test/distributed/test_c10d_nccl.py NCCLTraceTest

cc mrshenli pritamdamania87 zhaojuanmao satgera gqchen aazzolini osalpekar jiayisuse H-Huang kwen2501 awgu penguinwu fegin XilunWu wanchaol fduwjj wz337 tianyu-l wconstab yf225 chauhang d4l3k

[ghstack-poisoned]
c-p-i-o added a commit that referenced this pull request May 6, 2024
Summary:
Move const strings to top of file. This is in preparation of tooling to
make use of shared constants (e.g. version string).

Test Plan:
python test/distributed/test_c10d_nccl.py NCCLTraceTest

ghstack-source-id: 9488d79e4466dc7880070338a882d9545d4df773
Pull Request resolved: #125640
Summary:
Move const strings to top of file. This is in preparation of tooling to
make use of shared constants (e.g. version string).

Test Plan:
python test/distributed/test_c10d_nccl.py NCCLTraceTest

cc mrshenli pritamdamania87 zhaojuanmao satgera gqchen aazzolini osalpekar jiayisuse H-Huang kwen2501 awgu penguinwu fegin XilunWu wanchaol fduwjj wz337 tianyu-l wconstab yf225 chauhang d4l3k

[ghstack-poisoned]
c-p-i-o added a commit that referenced this pull request May 7, 2024
Summary:
Move const strings to top of file. This is in preparation of tooling to
make use of shared constants (e.g. version string).

Test Plan:
python test/distributed/test_c10d_nccl.py NCCLTraceTest

ghstack-source-id: 93e48bde7e2f8b28cbca85c09144c4709afe6050
Pull Request resolved: #125640
Summary:
Move const strings to top of file. This is in preparation of tooling to
make use of shared constants (e.g. version string).

Test Plan:
python test/distributed/test_c10d_nccl.py NCCLTraceTest

cc mrshenli pritamdamania87 zhaojuanmao satgera gqchen aazzolini osalpekar jiayisuse H-Huang kwen2501 awgu penguinwu fegin XilunWu wanchaol fduwjj wz337 tianyu-l wconstab yf225 chauhang d4l3k

[ghstack-poisoned]
Summary:
Move const strings to top of file. This is in preparation of tooling to
make use of shared constants (e.g. version string).

Test Plan:
python test/distributed/test_c10d_nccl.py NCCLTraceTest

cc mrshenli pritamdamania87 zhaojuanmao satgera gqchen aazzolini osalpekar jiayisuse H-Huang kwen2501 awgu penguinwu fegin XilunWu wanchaol fduwjj wz337 tianyu-l wconstab yf225 chauhang d4l3k

[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
@c-p-i-o c-p-i-o self-assigned this May 13, 2024
[ghstack-poisoned]
@c-p-i-o
Copy link
Contributor Author

c-p-i-o commented May 14, 2024

@pytorchbot merge

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label May 14, 2024
@pytorchmergebot
Copy link
Collaborator

Merge started

Your 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

Advanced Debugging
Check the merge workflow status
here

[ghstack-poisoned]
@pytorchmergebot
Copy link
Collaborator

Merge failed

Reason: New commits were pushed while merging. Please rerun the merge command.

Details for Dev Infra team Raised by workflow job

@c-p-i-o
Copy link
Contributor Author

c-p-i-o commented May 14, 2024

@pytorchbot merge

@pytorchmergebot
Copy link
Collaborator

Merge started

Your 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

Advanced Debugging
Check the merge workflow status
here

ZelboK pushed a commit to ZelboK/pytorch that referenced this pull request May 19, 2024
Summary:
Move const strings to top of file. This is in preparation of tooling to
make use of shared constants (e.g. version string). A non-functional change.
Ideally we want these const strings to be available from both C++ and Python - but I haven't figured out how to correctly share things in PyTorch. I'll do this in a subsequent change.

Test Plan:
python test/distributed/test_c10d_nccl.py NCCLTraceTest

Pull Request resolved: pytorch#125640
Approved by: https://github.com/wconstab
@github-actions github-actions bot deleted the gh/c-p-i-o/6/head branch June 15, 2024 02:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ciflow/trunk Trigger trunk jobs on your pull request Merged oncall: distributed Add this issue/PR to distributed oncall triage queue release notes: distributed (c10d) release notes category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants