Skip to content

Comments

Set ompi local rank as local_rank if it exists#1164

Merged
jeffra merged 4 commits intomasterfrom
jeffra/ompi-patch
Jun 16, 2021
Merged

Set ompi local rank as local_rank if it exists#1164
jeffra merged 4 commits intomasterfrom
jeffra/ompi-patch

Conversation

@jeffra
Copy link
Collaborator

@jeffra jeffra commented Jun 16, 2021

In OMPI environments if the user initializes torch.distributed on their own before calling deepspeed.initialize then LOCAL_RANK is not set as expected. Non-OMPI environments might still have an issue but this will at least help the common case that we have been seeing.

@jeffra jeffra added the bug Something isn't working label Jun 16, 2021
@jeffra jeffra merged commit 4c114a2 into master Jun 16, 2021
@jeffra jeffra deleted the jeffra/ompi-patch branch June 16, 2021 22:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants