mirror of
https://github.com/clearml/clearml-agent
synced 2025-01-31 00:56:53 +00:00
Fix slurm multi-node rank detection
This commit is contained in:
parent
cd5b4d2186
commit
f18c6b809f
@ -2086,7 +2086,7 @@ class Worker(ServiceCommandSection):
|
||||
if lines and ENV_MULTI_NODE_SINGLE_TASK.get() and ENV_MULTI_NODE_SINGLE_TASK.get() > 0:
|
||||
# noinspection PyBroadException
|
||||
try:
|
||||
rank = int(os.environ.get("RANK") or 0)
|
||||
rank = int(os.environ.get("RANK", os.environ.get('SLURM_PROCID')) or 0)
|
||||
except Exception:
|
||||
rank = 0
|
||||
if rank:
|
||||
|
Loading…
Reference in New Issue
Block a user