Quick Answer: Never restart a crashed multi-node GPU job solely from a rank 0 NCCL watchdog timeout traceback. In synchronous distributed training, healthy victim ranks emit collective timeouts because they blocked waiting on one silent failing peer. Always screen all allocated hosts for kernel NVRM: Xid events and cgroup OOM kills first, isolate the originating rank via collective sequence timestamps, and drain faulty hardware before rescheduling.
Step 1: Rule Out Hardware and Kernel Faults Across All Hosts First
Before inspecting PyTorch source code or tweaking NCCL_TIMEOUT, run a hardware screen on every node in the allocation:
dmesg -T | grep -iE "NVRM: Xid|oom-killer|pcie|infiniband|mlx5" nvidia-smi -q -d ECC,PERFORMANCE,POWER ibstat Pay close attention to these high-priority Xid codes documented in the Denpex Xid Reference and our published taxonomy note (Zenodo DOI 10.5281/zenodo.24545236):
- Xid 79 (GPU has fallen off the bus): Check PSU transient behavior, PCIe riser seating, and thermal events; drain the host.
- Xid 48 / 63 / 95 (Double-bit ECC / page retirement / uncontained ECC): Drain and service the accelerator; retrying on the same GPU risks silent corruption.
- Xid 74 / 149 (NVLink / NETIR interconnect link down): Inspect
nvidia-smi nvlinkand fabric health before restarting.
Step 2: Separate Victim Ranks From the Originating Rank
If hardware logs are clean across all hosts, examine collective progression across ranks:
- Enable PyTorch Flight Recorder (
TORCH_FR_BUFFER_SIZE=1048576andTORCH_NCCL_TRACE_BUFFER_SIZE=1048576) on multi-node jobs so pre-crash collective states survive hangs. - Compare the last entered vs. last completed collective
SeqNumper rank to spot the single rank that never entered theAllReduceorAllGather. - Follow the full Denpex Distributed Training Hang Triage Guide and NCCL Error Hub for fabric vs. code-divergence isolation.
Step 3: Check Slurm Scheduler and Host Memory Limits
A failing DataLoader worker on one host can exhaust CPU RAM long before GPU VRAM fills, causing slurmstepd to kill the process group with exit code 137 and triggering peer NCCL timeouts. Inspect job accounting cleanly:
sacct -j "$SLURM_JOB_ID" --format=JobID,NodeList,State,ExitCode,DerivedExitCode,MaxRSS,Elapsed Full remediation commands are indexed in the Slurm GPU Error Hub and can be matched against your raw stderr locally inside the Denpex GPU Log Analyzer.
