Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[C10D] Fix nccl flightrecorder ignored dump timeout #118142

Closed
wants to merge 2 commits into from

Conversation

wconstab
Copy link
Contributor

@wconstab wconstab commented Jan 23, 2024

Don't call future.get() unless it's ready, because it waits.
Also, refactor the code a bit for simplicity.

We should do a follow-on PR to clean up the timeouts further, but this
should fix the glaring timeout bug.

[ghstack-poisoned]
@pytorch-bot pytorch-bot bot added the release notes: distributed (c10d) release notes category label Jan 23, 2024
Copy link

pytorch-bot bot commented Jan 23, 2024

🔗 Helpful Links

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

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

✅ You can merge normally! (2 Unrelated Failures)

As of commit 449e97f with merge base 0528602 (image):

FLAKY - The following job failed but was likely due to flakiness present on trunk:

BROKEN TRUNK - The following job failed but was present on the merge base:

👉 Rebase onto the `viable/strict` branch to avoid these failures

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

wconstab added a commit that referenced this pull request Jan 23, 2024
Don't call future.get() unless it's ready, because it waits.
Also, refactor the code a bit for simplicity.

We should do a follow-on PR to clean up the timeouts further, but this
should fix the glaring timeout bug.

ghstack-source-id: 70ff3ea3185f8b085917dccabadd706839bddf80
Pull Request resolved: #118142
@github-actions github-actions bot added the oncall: distributed Add this issue/PR to distributed oncall triage queue label Jan 23, 2024
Don't call future.get() unless it's ready, because it waits.
Also, refactor the code a bit for simplicity.

We should do a follow-on PR to clean up the timeouts further, but this
should fix the glaring timeout bug.

cc mrshenli pritamdamania87 zhaojuanmao satgera rohan-varma gqchen aazzolini osalpekar jiayisuse H-Huang kwen2501 awgu penguinwu fegin XilunWu wanchaol fduwjj wz337 tianyu-l yf225

[ghstack-poisoned]
wconstab added a commit that referenced this pull request Jan 23, 2024
Don't call future.get() unless it's ready, because it waits.
Also, refactor the code a bit for simplicity.

We should do a follow-on PR to clean up the timeouts further, but this
should fix the glaring timeout bug.

ghstack-source-id: 1b649b3586d377d18eb652d9a0e56ff7657c3338
Pull Request resolved: #118142
@@ -1012,29 +1012,31 @@ void ProcessGroupNCCL::waitForDumpOrTimeout(
TORCH_CHECK(fut.valid(), "Expected a valid future");

auto futStatus = fut.wait_for(std::chrono::seconds(timeout_sec));
Copy link
Contributor

Choose a reason for hiding this comment

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

I am not sure the default times are set properly, e.g., the default timeout_sec is 30s, so we wait for a max of 30s for local dump here, which should long pass the wakeUpTime point (default 2 secs after init dumping)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yea, we need to clean up the time variables.

@wconstab
Copy link
Contributor Author

@pytorchbot merge

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Jan 25, 2024
@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

wconstab added a commit that referenced this pull request Jan 26, 2024
Don't call future.get() unless it's ready, because it waits.
Also, refactor the code a bit for simplicity.

We should do a follow-on PR to clean up the timeouts further, but this
should fix the glaring timeout bug.

Pull Request resolved: #118142
Approved by: https://github.com/shuqiangzhang
ghstack dependencies: #118044, #118046, #118047
wconstab added a commit that referenced this pull request Jan 26, 2024
Don't call future.get() unless it's ready, because it waits.
Also, refactor the code a bit for simplicity.

We should do a follow-on PR to clean up the timeouts further, but this
should fix the glaring timeout bug.

Pull Request resolved: #118142
Approved by: https://github.com/shuqiangzhang
ghstack dependencies: #118044, #118046, #118047
wconstab added a commit that referenced this pull request Jan 26, 2024
Don't call future.get() unless it's ready, because it waits.
Also, refactor the code a bit for simplicity.

We should do a follow-on PR to clean up the timeouts further, but this
should fix the glaring timeout bug.

Pull Request resolved: #118142
Approved by: https://github.com/shuqiangzhang
ghstack dependencies: #118044, #118046, #118047
wconstab added a commit that referenced this pull request Jan 27, 2024
Don't call future.get() unless it's ready, because it waits.
Also, refactor the code a bit for simplicity.

We should do a follow-on PR to clean up the timeouts further, but this
should fix the glaring timeout bug.

Pull Request resolved: #118142
Approved by: https://github.com/shuqiangzhang
ghstack dependencies: #118044, #118046, #118047
wconstab added a commit that referenced this pull request Jan 27, 2024
Don't call future.get() unless it's ready, because it waits.
Also, refactor the code a bit for simplicity.

We should do a follow-on PR to clean up the timeouts further, but this
should fix the glaring timeout bug.

Pull Request resolved: #118142
Approved by: https://github.com/shuqiangzhang
ghstack dependencies: #118044, #118046, #118047
@facebook-github-bot facebook-github-bot deleted the gh/wconstab/264/head branch January 28, 2024 15:22
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 oncall: distributed Add this issue/PR to distributed oncall triage queue release notes: distributed (c10d) release notes category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants