Fix hang in DDP HPC accelerators#5157
Merged
tchaton merged 2 commits intoLightning-AI:masterfrom Dec 16, 2020
Merged
Conversation
init_device was never called
Codecov Report
@@ Coverage Diff @@
## master #5157 +/- ##
======================================
Coverage 93% 93%
======================================
Files 134 134
Lines 9905 9905
======================================
Hits 9204 9204
Misses 701 701 |
SeanNaren
approved these changes
Dec 16, 2020
Contributor
|
I think the changes are fine apologies for the mistake. This is correct, devices just now have to be initialised separately from the model due to changes for the RPC plugin, and before initializing any model/connections. |
tchaton
approved these changes
Dec 16, 2020
awaelchli
pushed a commit
that referenced
this pull request
Dec 18, 2020
* Fix hang in DDP HPC accelerators init_device was never called * Update CHANGELOG.md
Borda
pushed a commit
that referenced
this pull request
Dec 23, 2020
* Fix hang in DDP HPC accelerators init_device was never called * Update CHANGELOG.md
Borda
pushed a commit
that referenced
this pull request
Dec 29, 2020
* Fix hang in DDP HPC accelerators init_device was never called * Update CHANGELOG.md
LoicGrobol
added a commit
to LoicGrobol/zeldarose
that referenced
this pull request
Dec 30, 2020
Borda
pushed a commit
that referenced
this pull request
Jan 4, 2021
* Fix hang in DDP HPC accelerators init_device was never called * Update CHANGELOG.md
Borda
pushed a commit
that referenced
this pull request
Jan 4, 2021
* Fix hang in DDP HPC accelerators init_device was never called * Update CHANGELOG.md
Borda
pushed a commit
that referenced
this pull request
Jan 5, 2021
* Fix hang in DDP HPC accelerators init_device was never called * Update CHANGELOG.md
12 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
init_devicewas not called, so theroot_gpuis 0 throughout. This leads to a hang later on inddp_trainwhenconfigure_ddpwas called, as theLightningDistributedDataParallelcall never completes with the redundant device ids set.This is a recent change from #5016 and there aren't tests in OSS for this particular accelerator
2 main questions:
init_deviceimmediately afterset_world_ranks- is that correct?init_deviceas a no-op, but I'm not sure if that's the most robust.Before submitting
PR review
Anyone in the community is free to review the PR once the tests have passed.
Before you start reviewing make sure you have read Review guidelines. In short, see the following bullet-list:
Did you have fun?
Make sure you had fun coding 🙃