mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-09-11 12:31:23 +08:00
testing env init
This commit is contained in:
@@ -352,7 +352,10 @@ class Trainer(TrainerIO):
|
||||
print('SLURM ROOT NODE: ', root_node)
|
||||
print('-'*100)
|
||||
|
||||
dist.init_process_group("nccl", init_method=f'env://{root_node}:12007', rank=self.proc_rank,
|
||||
os.environ['MASTER_ADDR'] = root_node
|
||||
os.environ['MASTER_PORT'] = '12006'
|
||||
|
||||
dist.init_process_group("nccl", rank=self.proc_rank,
|
||||
world_size=self.world_size)
|
||||
# self.__init_tcp_connection(ip_file_dir)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user