Skip to content

[c10d][doc] add a doc page for NCCL ENVs - #128235

Closed
shuqiangzhang wants to merge 3 commits into
gh/shuqiangzhang/33/basefrom
gh/shuqiangzhang/33/head
Closed

shuqiangzhang wants to merge 3 commits into
gh/shuqiangzhang/33/basefrom
gh/shuqiangzhang/33/head

Conversation

@shuqiangzhang

@shuqiangzhang shuqiangzhang commented Jun 7, 2024 •

Copy link
Copy Markdown
Contributor

Addressing issue: #128204
Stack from ghstack (oldest at bottom):

@pytorch-bot

pytorch-bot Bot commented Jun 7, 2024 •

Copy link
Copy Markdown

🔗 Helpful Links

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

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

❗ 1 Active SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

✅ You can merge normally! (2 Unrelated Failures)

As of commit 5516906 with merge base 543a870 (image):

FLAKY - The following jobs failed but were likely due to flakiness present on trunk:

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

@shuqiangzhang
shuqiangzhang requested a review from wconstab June 7, 2024 18:03
@@ -0,0 +1,33 @@
.. _torch_nccl_environment_variables:

PYTORCH NCCL Environment Variables

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.

Nit: PyTorch ProcessGroupNCCL Environment Variables

- If set to ``1``,enable monitoring thread which aborts the process when the ProcessGroupNCCL Watchdog thread gets stuck and no heartbeat is detected after TORCH_NCCL_HEARTBEAT_TIMEOUT_SEC. This can happen due to calling CUDA/NCCL APIs that may hang. It is Useful to prevent jobs being stuck for a prolonged time than necessary tying up cluster resources.
* - ``TORCH_NCCL_HEARTBEAT_TIMEOUT_SEC``
- Control the watchdog heartbeat timeout period after which the monitoring thread will abort the process.
* - ``TORCH_NCCL_TRACE_BUFFER_SIZE``

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.

nit: mention that 0 disables the trace buffer

PYTORCH NCCL Environment Variables
==================================
.. list-table::
:header-rows: 1

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.

hmm, do we want to mention default values here? pro: i think its helpful. con: its gonna be out of date.

Maybe give a pointer instead to the the code where the default values are set?

shuqiangzhang added a commit that referenced this pull request Jun 7, 2024
ghstack-source-id: e0d9d2b
Pull Request resolved: #128235
shuqiangzhang added a commit that referenced this pull request Jun 8, 2024
ghstack-source-id: 1c469f6
Pull Request resolved: #128235
@shuqiangzhang

Copy link
Copy Markdown
Contributor Author

@pytorchbot merge

@pytorch-bot pytorch-bot Bot added the ciflow/trunk Trigger trunk jobs on your pull request label Jun 8, 2024
@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge failed

Reason: This PR needs a release notes: label
If your changes are user facing and intended to be a part of release notes, please use a label starting with release notes:.

If not, please add the topic: not user facing label.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "topic: not user facing"

For more information, see
https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.

Details for Dev Infra team Raised by workflow job

@shuqiangzhang

Copy link
Copy Markdown
Contributor Author

@pytorchbot label "release notes: distributed (c10d)"

@pytorch-bot pytorch-bot Bot added the release notes: distributed (c10d) release notes category label Jun 9, 2024
@shuqiangzhang

Copy link
Copy Markdown
Contributor Author

@pytorchbot 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

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 release notes: distributed (c10d) release notes category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants