mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-10-30 13:40:46 +08:00
fixed nccl init
This commit is contained in:
1 parent
8451bb7745
commit
08e1ab64b5
1 file changed
+1
@@ -375,6 +375,7 @@ class Trainer(TrainerIO):
|
||||
:param tries:
|
||||
:return:
|
||||
"""
|
||||
sleep(self.proc_rank*2)
|
||||
root_node = os.environ['SLURM_NODELIST'].split(' ')[0]
|
||||
os.environ['MASTER_ADDR'] = root_node
|
||||
os.environ['MASTER_PORT'] = f'{port}'
|
||||
|
||||
Reference in new issue
Block a user