Skip to content

[c10d] Make scatter as a custom op#79688

Closed
alanwaketan wants to merge 3 commits intogh/alanwaketan/39/basefrom
gh/alanwaketan/39/head
Closed

[c10d] Make scatter as a custom op#79688
alanwaketan wants to merge 3 commits intogh/alanwaketan/39/basefrom
gh/alanwaketan/39/head

Conversation

@alanwaketan
Copy link
Copy Markdown
Collaborator

@alanwaketan alanwaketan commented Jun 16, 2022

Stack from ghstack (oldest at bottom):

Summary:
This patch makes scatter as a custom op such that it's dispatcher
passable. It's one part of the effort to route comm ops to the dispatcher
such that tracing mechanisms that relies on the dispatcher can trace them,
e.g., LazyTensor and AOTAutograd.

Test Plan:
python test/distributed/test_c10d_nccl.py -k test_scatter_ops
python test/distributed/test_c10d_gloo.py -k test_scatter_basics
...and other existing distributed tests.

Summary:
This patch makes scatter as a custom op such that it's dispatcher
passable. It's one part of the effort to route comm ops to the dispatcher
such that tracing mechanisms that relies on the dispatcher can trace them,
e.g., LazyTensor and AOTAutograd.

Test Plan:
python test/distributed/test_c10d_nccl.py -k test_scatter_ops
python test/distributed/test_c10d_gloo.py -k test_scatter_basics
...and other existing distributed tests.

[ghstack-poisoned]
@facebook-github-bot
Copy link
Copy Markdown
Contributor

facebook-github-bot commented Jun 16, 2022

🔗 Helpful links

✅ No Failures (0 Pending)

As of commit 232e5f5 (more details on the Dr. CI page):

Expand to see more

💚 💚 Looks good so far! There are no failures yet. 💚 💚


This comment was automatically generated by Dr. CI (expand for details).

Please report bugs/suggestions to the (internal) Dr. CI Users group.

Click here to manually regenerate this comment.

@facebook-github-bot facebook-github-bot added the oncall: distributed Add this issue/PR to distributed oncall triage queue label Jun 16, 2022
alanwaketan pushed a commit that referenced this pull request Jun 16, 2022
Summary:
This patch makes scatter as a custom op such that it's dispatcher
passable. It's one part of the effort to route comm ops to the dispatcher
such that tracing mechanisms that relies on the dispatcher can trace them,
e.g., LazyTensor and AOTAutograd.

Test Plan:
python test/distributed/test_c10d_nccl.py -k test_scatter_ops
python test/distributed/test_c10d_gloo.py -k test_scatter_basics
...and other existing distributed tests.

ghstack-source-id: 8d277d5
Pull Request resolved: #79688
Summary:
This patch makes scatter as a custom op such that it's dispatcher
passable. It's one part of the effort to route comm ops to the dispatcher
such that tracing mechanisms that relies on the dispatcher can trace them,
e.g., LazyTensor and AOTAutograd.

Test Plan:
python test/distributed/test_c10d_nccl.py -k test_scatter_ops
python test/distributed/test_c10d_gloo.py -k test_scatter_basics
...and other existing distributed tests.

[ghstack-poisoned]
Summary:
This patch makes scatter as a custom op such that it's dispatcher
passable. It's one part of the effort to route comm ops to the dispatcher
such that tracing mechanisms that relies on the dispatcher can trace them,
e.g., LazyTensor and AOTAutograd.

Test Plan:
python test/distributed/test_c10d_nccl.py -k test_scatter_ops
python test/distributed/test_c10d_gloo.py -k test_scatter_basics
...and other existing distributed tests.

[ghstack-poisoned]
.def(
"scatter",
[](::c10d::ProcessGroup& pg,
[](const c10::intrusive_ptr<::c10d::ProcessGroup>& pg,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ditto

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Let me follow up on #80246. Thanks for approving.

@alanwaketan
Copy link
Copy Markdown
Collaborator Author

@pytorchbot merge

@pytorchmergebot
Copy link
Copy Markdown
Collaborator

@pytorchbot successfully started a merge job. Check the current status here

facebook-github-bot pushed a commit that referenced this pull request Jun 27, 2022
Summary:
This patch makes scatter as a custom op such that it's dispatcher
passable. It's one part of the effort to route comm ops to the dispatcher
such that tracing mechanisms that relies on the dispatcher can trace them,
e.g., LazyTensor and AOTAutograd.

Pull Request resolved: #79688
Approved by: https://github.com/mrshenli

Test Plan:
contbuild & OSS CI, see https://hud.pytorch.org/commit/pytorch/pytorch/84c0a308a1e036ec3728f96c63d732a052c90490

Test plan from GitHub:
python test/distributed/test_c10d_nccl.py -k test_scatter_ops
python test/distributed/test_c10d_gloo.py -k test_scatter_basics
...and other existing distributed tests.

Reviewed By: atalman

Differential Revision: D37455704

Pulled By: alanwaketan

fbshipit-source-id: acbbec5914c23ca6b2f1a92ceef994fd29ee3e60
@facebook-github-bot facebook-github-bot deleted the gh/alanwaketan/39/head branch June 28, 2022 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla signed Merged oncall: distributed Add this issue/PR to distributed oncall triage queue release notes: distributed (c10d) release notes category topic: new features topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants