Skip to content

[DTensor][Test] Fix gloo backend failure when eager_init is turned on - #139097

Closed
wz337 wants to merge 2 commits into
gh/wz337/39/basefrom
gh/wz337/39/head
Closed

wz337 wants to merge 2 commits into
gh/wz337/39/basefrom
gh/wz337/39/head

Conversation

@wz337

@wz337 wz337 commented Oct 28, 2024 •

Copy link
Copy Markdown
Contributor

Stack from ghstack (oldest at bottom):

We should only pass the device_id when the backend is nccl. Otherwise, we would run into the following error:

RuntimeError: No backend for the parent process group or its backend does not support splitting

cc @H-Huang @awgu @kwen2501 @wanchaol @fegin @fduwjj @wconstab @d4l3k @c-p-i-o @tianyu-l @XilunWu

[ghstack-poisoned]
@pytorch-bot pytorch-bot Bot added the oncall: distributed Add this issue/PR to distributed oncall triage queue label Oct 28, 2024
@pytorch-bot

pytorch-bot Bot commented Oct 28, 2024 •

Copy link
Copy Markdown

🔗 Helpful Links

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

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

✅ No Failures

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

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

@wz337 wz337 changed the title fix eager_init failure with gloo [DTensor][Test] Fix gloo backend failure when eager_init is turned on Oct 28, 2024
@wz337
wz337 requested review from XilunWu and kwen2501 October 28, 2024 18:45
@wz337 wz337 added topic: not user facing topic category module: dtensor distributed tensor tag labels Oct 28, 2024

@XilunWu XilunWu 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.

thanks for the fix!

@XilunWu XilunWu added the ciflow/trunk Trigger trunk jobs on your pull request label Oct 28, 2024
[ghstack-poisoned]
wz337 added a commit that referenced this pull request Oct 28, 2024
ghstack-source-id: b6fff66
Pull Request resolved: #139097
@wz337

wz337 commented Oct 28, 2024

Copy link
Copy Markdown
Contributor Author

@pytorchmergebot merge

@pytorchmergebot

Copy link
Copy Markdown
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

rahulsingh-intel pushed a commit to rahulsingh-intel/pytorch that referenced this pull request Oct 29, 2024
…pytorch#139097)

We should only pass the `device_id` when the backend is `nccl`. Otherwise, we would run into the following error:
```
RuntimeError: No backend for the parent process group or its backend does not support splitting
```

This also fixes test failure is not asserted when using `with_comms()` or `with_comms(eager_init=False)`.

Pull Request resolved: pytorch#139097
Approved by: https://github.com/XilunWu
rahulsingh-intel pushed a commit to rahulsingh-intel/pytorch that referenced this pull request Nov 5, 2024
…pytorch#139097)

We should only pass the `device_id` when the backend is `nccl`. Otherwise, we would run into the following error:
```
RuntimeError: No backend for the parent process group or its backend does not support splitting
```

This also fixes test failure is not asserted when using `with_comms()` or `with_comms(eager_init=False)`.

Pull Request resolved: pytorch#139097
Approved by: https://github.com/XilunWu
@github-actions
github-actions Bot deleted the gh/wz337/39/head branch November 29, 2024 02:12
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 module: dtensor distributed tensor tag oncall: distributed Add this issue/PR to distributed oncall triage queue topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants