mirror of
https://github.com/cdtools-developers/cdtools.git
synced 2026-11-28 16:07:48 +01:00
Make the timeout default 30 seconds and enforce timeout in units of seconds
This commit is contained in:
1 parent
9792b141ef
commit
e059c18402
1 file changed
+2
-2
@@ -173,7 +173,7 @@ def setup(rank: int = None,
|
||||
master_addr: str = None,
|
||||
master_port: str = None,
|
||||
backend: str = 'nccl',
|
||||
timeout: int = 60,
|
||||
timeout: int = 30,
|
||||
seed: int = None,
|
||||
verbose: bool = False):
|
||||
"""
|
||||
@@ -252,7 +252,7 @@ def setup(rank: int = None,
|
||||
world_size=world_size,
|
||||
backend=backend,
|
||||
init_method=init_method,
|
||||
timeout=datetime.timedelta(timeout))
|
||||
timeout=datetime.timedelta(seconds=timeout))
|
||||
|
||||
if rank == 0:
|
||||
print('[INFO]: Process group initialized.')
|
||||
|
||||
Reference in new issue
Block a user