fixed nccl init

This commit is contained in:
William Falcon
2019-07-13 22:16:10 -04:00
parent 7e37f68a5b
commit 3239c9fdf8
+4
View File
@@ -385,6 +385,10 @@ class Trainer(TrainerIO):
port = 12910
os.environ['MASTER_PORT'] = f'{port}'
print('-'*100)
print(f'PORT: {port}')
print('-'*100)
sleep(self.proc_rank * 2)
root_node = os.environ['SLURM_NODELIST'].split(' ')[0]