Skip to content

[Dist Profiling] Support shape recording for profiling collectives in gloo - #51822

Closed
rohan-varma wants to merge 13 commits into
gh/rohan-varma/231/basefrom
gh/rohan-varma/231/head
Closed

rohan-varma wants to merge 13 commits into
gh/rohan-varma/231/basefrom
gh/rohan-varma/231/head

Conversation

@rohan-varma

@rohan-varma rohan-varma commented Feb 6, 2021 •

Copy link
Copy Markdown
Contributor

Stack from ghstack:

Adds support for shape recording for profiling distributed collectives, for gloo. Added
both cpp and python tests to ensure that shapes are recorded properly.

Differential Revision: D26291739

… gloo

Adds support for shape recording for profiling distributed collectives, for gloo. Added
both cpp and python tests to ensure that shapes are recorded properly.

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

[ghstack-poisoned]
@facebook-github-bot facebook-github-bot added cla signed oncall: distributed Add this issue/PR to distributed oncall triage queue labels Feb 6, 2021
@facebook-github-bot

facebook-github-bot commented Feb 6, 2021 •

Copy link
Copy Markdown
Contributor

💊 CI failures summary and remediations

As of commit 1792fb2 (more details on the Dr. CI page):


  • 2/2 failures possibly* introduced in this PR
    • 1/2 non-CircleCI failure(s)

🕵️ 1 new failure recognized by patterns

The following CI failures do not appear to be due to upstream breakages:

See CircleCI build pytorch_linux_bionic_py3_8_gcc9_coverage_test2 (1/1)

Step: "Run tests" (full log | diagnosis details | 🔁 rerun)

Feb 10 11:27:57 AssertionError: False is not true : Scalars failed to compare as equal! Comparing 2 and 3 gives a difference of 1, but the allowed difference with rtol=0 and atol=0 is only 0!
Feb 10 11:27:57   File "/opt/conda/lib/python3.8/site-packages/torch/testing/_internal/common_distributed.py", line 285, in wrapper
Feb 10 11:27:57     fn()
Feb 10 11:27:57   File "/opt/conda/lib/python3.8/site-packages/torch/testing/_internal/dist_utils.py", line 90, in new_test_method
Feb 10 11:27:57     return_value = old_test_method(self, *arg, **kwargs)
Feb 10 11:27:57   File "/opt/conda/lib/python3.8/site-packages/torch/testing/_internal/distributed/rpc/rpc_test.py", line 2700, in test_rref_context_debug_info
Feb 10 11:27:57     self.assertEqual(2, int(info["num_owner_rrefs"]))
Feb 10 11:27:57   File "/opt/conda/lib/python3.8/site-packages/torch/testing/_internal/common_utils.py", line 1210, in assertEqual
Feb 10 11:27:57     super().assertTrue(result, msg=self._get_assert_msg(msg, debug_msg=debug_msg))
Feb 10 11:27:57   File "/opt/conda/lib/python3.8/unittest/case.py", line 765, in assertTrue
Feb 10 11:27:57     raise self.failureException(msg)
Feb 10 11:27:57 AssertionError: False is not true : Scalars failed to compare as equal! Comparing 2 and 3 gives a difference of 1, but the allowed difference with rtol=0 and atol=0 is only 0!
Feb 10 11:27:57 exiting process with exit code: 10
Feb 10 11:27:57 ERROR:root:Caught exception: 
Feb 10 11:27:57 Traceback (most recent call last):
Feb 10 11:27:57   File "/opt/conda/lib/python3.8/site-packages/torch/testing/_internal/common_distributed.py", line 285, in wrapper
Feb 10 11:27:57     fn()
Feb 10 11:27:57   File "/opt/conda/lib/python3.8/site-packages/torch/testing/_internal/dist_utils.py", line 90, in new_test_method
Feb 10 11:27:57     return_value = old_test_method(self, *arg, **kwargs)
Feb 10 11:27:57   File "/opt/conda/lib/python3.8/site-packages/torch/testing/_internal/distributed/rpc/rpc_test.py", line 2705, in test_rref_context_debug_info
Feb 10 11:27:57     dist.barrier()
Feb 10 11:27:57   File "/opt/conda/lib/python3.8/site-packages/torch/distributed/distributed_c10d.py", line 2427, in barrier

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.

…lectives in gloo"

Adds support for shape recording for profiling distributed collectives, for gloo. Added
both cpp and python tests to ensure that shapes are recorded properly.

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

[ghstack-poisoned]
…lectives in gloo"

Adds support for shape recording for profiling distributed collectives, for gloo. Added
both cpp and python tests to ensure that shapes are recorded properly.

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

[ghstack-poisoned]
rohan-varma added a commit that referenced this pull request Feb 6, 2021
… gloo

Pull Request resolved: #51822

Adds support for shape recording for profiling distributed collectives, for gloo. Added
both cpp and python tests to ensure that shapes are recorded properly.
ghstack-source-id: 121182347

Differential Revision: [D26291739](https://our.internmc.facebook.com/intern/diff/D26291739/)
@rohan-varma
rohan-varma requested a review from mrzzd February 6, 2021 01:07
…lectives in gloo"

Adds support for shape recording for profiling distributed collectives, for gloo. Added
both cpp and python tests to ensure that shapes are recorded properly.

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

[ghstack-poisoned]
rohan-varma added a commit that referenced this pull request Feb 6, 2021
… gloo

Pull Request resolved: #51822

Adds support for shape recording for profiling distributed collectives, for gloo. Added
both cpp and python tests to ensure that shapes are recorded properly.
ghstack-source-id: 121192657

Differential Revision: [D26291739](https://our.internmc.facebook.com/intern/diff/D26291739/)
…lectives in gloo"

Adds support for shape recording for profiling distributed collectives, for gloo. Added
both cpp and python tests to ensure that shapes are recorded properly.

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

[ghstack-poisoned]
…lectives in gloo"

Adds support for shape recording for profiling distributed collectives, for gloo. Added
both cpp and python tests to ensure that shapes are recorded properly.

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

[ghstack-poisoned]
Comment thread torch/lib/c10d/ProcessGroup.cpp Outdated
std::vector<c10::IValue> inputs;
if (inputTensors) {
for (const auto& tensor : *inputTensors) {
inputs.push_back(tensor);

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.

indention seems to be off

Comment thread torch/lib/c10d/ProcessGroup.cpp Resolved
…lectives in gloo"

Adds support for shape recording for profiling distributed collectives, for gloo. Added
both cpp and python tests to ensure that shapes are recorded properly.

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

[ghstack-poisoned]
rohan-varma added a commit that referenced this pull request Feb 9, 2021
Pull Request resolved: #51822

Adds support for shape recording for profiling distributed collectives, for nccl/gloo backends. Added
both cpp and python tests to ensure that shapes are recorded properly. Note that we don't add `ProcessGroupNCCLTest`s since they need to be modified to support single process per device and > 1 world size.
ghstack-source-id: 121313647

Differential Revision: [D26291739](https://our.internmc.facebook.com/intern/diff/D26291739/)
@rohan-varma
rohan-varma requested a review from mrzzd February 9, 2021 20:01

@mrzzd mrzzd left a comment

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.

Great, thanks. Just that some tests fail.

…lectives in gloo"

Adds support for shape recording for profiling distributed collectives, for gloo. Added
both cpp and python tests to ensure that shapes are recorded properly.

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

[ghstack-poisoned]
…lectives in gloo"

Adds support for shape recording for profiling distributed collectives, for gloo. Added
both cpp and python tests to ensure that shapes are recorded properly.

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

[ghstack-poisoned]
…lectives in gloo"

Adds support for shape recording for profiling distributed collectives, for gloo. Added
both cpp and python tests to ensure that shapes are recorded properly.

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

[ghstack-poisoned]
rohan-varma added a commit that referenced this pull request Feb 10, 2021
Pull Request resolved: #51822

Adds support for shape recording for profiling distributed collectives, for nccl/gloo backends. Added
both cpp and python tests to ensure that shapes are recorded properly. Note that we don't add `ProcessGroupNCCLTest`s since they need to be modified to support single process per device and > 1 world size.
ghstack-source-id: 121396768

Differential Revision: [D26291739](https://our.internmc.facebook.com/intern/diff/D26291739/)
…lectives in gloo"

Adds support for shape recording for profiling distributed collectives, for gloo. Added
both cpp and python tests to ensure that shapes are recorded properly.

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

[ghstack-poisoned]
…lectives in gloo"

Adds support for shape recording for profiling distributed collectives, for gloo. Added
both cpp and python tests to ensure that shapes are recorded properly.

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

[ghstack-poisoned]
…lectives in gloo"

Adds support for shape recording for profiling distributed collectives, for gloo. Added
both cpp and python tests to ensure that shapes are recorded properly.

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

[ghstack-poisoned]
@rohan-varma

Copy link
Copy Markdown
Contributor Author

CI passed, looks like its just rate limiting the completion though.

@facebook-github-bot
facebook-github-bot deleted the gh/rohan-varma/231/head branch February 15, 2021 15:18
xsacha pushed a commit to xsacha/pytorch that referenced this pull request Mar 31, 2021
…ytorch#51822)

Summary:
Pull Request resolved: pytorch#51822

Adds support for shape recording for profiling distributed collectives, for nccl/gloo backends. Added
both cpp and python tests to ensure that shapes are recorded properly. Note that we don't add `ProcessGroupNCCLTest`s since they need to be modified to support single process per device and > 1 world size.
ghstack-source-id: 121507509

Test Plan: CI

Reviewed By: mrzzd

Differential Revision: D26291739

fbshipit-source-id: 5f7bd54d8c36d17a4a29e172b25266ca3dbd8fbd
wubai pushed a commit to wubai/pytorch that referenced this pull request Aug 6, 2023
…ytorch#51822)

Summary:
Pull Request resolved: pytorch#51822

Adds support for shape recording for profiling distributed collectives, for nccl/gloo backends. Added
both cpp and python tests to ensure that shapes are recorded properly. Note that we don't add `ProcessGroupNCCLTest`s since they need to be modified to support single process per device and > 1 world size.
ghstack-source-id: 121507509

Test Plan: CI

Reviewed By: mrzzd

Differential Revision: D26291739

fbshipit-source-id: 5f7bd54d8c36d17a4a29e172b25266ca3dbd8fbd
wubai pushed a commit to wubai/pytorch that referenced this pull request Aug 8, 2023
…ytorch#51822)

Summary:
Pull Request resolved: pytorch#51822

Adds support for shape recording for profiling distributed collectives, for nccl/gloo backends. Added
both cpp and python tests to ensure that shapes are recorded properly. Note that we don't add `ProcessGroupNCCLTest`s since they need to be modified to support single process per device and > 1 world size.
ghstack-source-id: 121507509

Test Plan: CI

Reviewed By: mrzzd

Differential Revision: D26291739

fbshipit-source-id: 5f7bd54d8c36d17a4a29e172b25266ca3dbd8fbd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla signed oncall: distributed Add this issue/PR to distributed oncall triage queue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants