Skip to content

Conversation

@H-Huang
Copy link
Member

@H-Huang H-Huang commented Oct 3, 2022

Stack from ghstack:

Changes

  • Updates for the reduce_scatter collective

Context

#86225

@pytorch-bot
Copy link

pytorch-bot bot commented Oct 3, 2022

🔗 Helpful Links

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

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

⏳ No Failures, 6 Pending

As of commit 569b2f7:
💚 Looks good so far! There are no failures yet. 💚

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

@facebook-github-bot
Copy link
Contributor

/easycla

As part of the transition to the PyTorch Foundation, this project now requires contributions be covered under the new CLA. See #85559 for additional details.

This comment will trigger a new check of this PR. If you are already covered, you will simply see a new "EasyCLA" check that passes. If you are not covered, a bot will leave a new comment with a link to sign.

…h CPU / CUDA implementations"


### Changes
- Updates for the reduce_scatter collective

### Context
#86225


[ghstack-poisoned]
@H-Huang
Copy link
Member Author

H-Huang commented Oct 6, 2022

@H-Huang has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

…h CPU / CUDA implementations"


### Changes
- Updates for the reduce_scatter collective

### Context
#86225

Differential Revision: [D40145699](https://our.internmc.facebook.com/intern/diff/D40145699)

[ghstack-poisoned]
if collective == dist.all_gather:
collective([tensor], tensor, *args)
elif collective == dist.reduce_scatter:
if backend != "gloo":
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

with the dispatchable functionality, what would happen if user call reduce_scatter on CPU?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I missed this question. It will call the reduce_scatter based on the configured backend for CPU (we will set a backend for CPU by default, but users can configure this). This is yet to be implemented in this PR

…h CPU / CUDA implementations"


### Changes
- Updates for the reduce_scatter collective

### Context
#86225

Differential Revision: [D40145699](https://our.internmc.facebook.com/intern/diff/D40145699)

[ghstack-poisoned]
@H-Huang
Copy link
Member Author

H-Huang commented Oct 7, 2022

@H-Huang has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

Copy link
Collaborator

@kwen2501 kwen2501 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Oct 28, 2022
…h CPU / CUDA implementations"


### Changes
- Updates for the reduce_scatter collective

### Context
#86225

[ghstack-poisoned]
@H-Huang
Copy link
Member Author

H-Huang commented Nov 1, 2022

@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

kulinseth pushed a commit to kulinseth/pytorch that referenced this pull request Nov 5, 2022
…A implementations (pytorch#86166)

### Changes
- Updates for the reduce_scatter collective

### Context
pytorch#86225
Pull Request resolved: pytorch#86166
Approved by: https://github.com/kwen2501
kulinseth pushed a commit to kulinseth/pytorch that referenced this pull request Dec 10, 2022
…A implementations (pytorch#86166)

### Changes
- Updates for the reduce_scatter collective

### Context
pytorch#86225
Pull Request resolved: pytorch#86166
Approved by: https://github.com/kwen2501
@facebook-github-bot facebook-github-bot deleted the gh/H-Huang/83/head branch June 8, 2023 14:34
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 cla signed Merged release notes: distributed (c10d) release notes category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants