only proc 0 can submit a continuation slurm job

This commit is contained in:
William Falcon
2019-08-01 10:15:28 -04:00
parent 93ddf555dd
commit 5e4728b2a7
+1 -1
View File
@@ -612,7 +612,7 @@ class Trainer(TrainerIO):
# enable cluster checkpointing
# also restores training state
if self.cluster is not None: # pragma: no cover
if self.cluster is not None and self.proc_rank == 0: # pragma: no cover
self.enable_auto_hpc_walltime_manager()
# ---------------------------