mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-09-11 12:31:23 +08:00
only proc 0 can submit a continuation slurm job
This commit is contained in:
@@ -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()
|
||||
|
||||
# ---------------------------
|
||||
|
||||
Reference in New Issue
Block a user