Resubmitting immediately with a longer NCCL timeout
Raising the collective timeout does not revive a dead rank; it only burns allocation hours while surviving ranks wait longer to fail.
Operator task guide
When a multi-node GPU job aborts under Slurm, healthy ranks emit collective timeouts and launcher cancellation messages after the initiating failure already occurred. Preserving scheduler exit states, per-rank stderr files, and node device health before retrying prevents misdiagnosing a host memory kill, compiler mismatch, or bad GPU node as a fabric bug.
This vendor-neutral checklist applies across NVIDIA CUDA/NCCL and AMD ROCm/RCCL Slurm clusters. Work through scheduler state, device visibility, earliest rank traceback, module/container collisions, and a single-variable control test in sequence.
Reviewed . Reference guidance is not a diagnosis of your workload.
Before resubmitting the job, record the Slurm job state, derived exit code, signal, MaxRSS, and exact NodeList. Signal 9 (exit 0:9 or 137) or OUT_OF_MEMORY points to host cgroup memory pressure or wall-time termination rather than GPU kernel logic.
sacct -j <jobid> --format=JobID,JobName,NodeList,State,ExitCode,DerivedExitCode,MaxRSS,Elapsed
scontrol show job <jobid>Confirm every rank sees the expected GPU count and healthy device state at launch time. Record PCI bus IDs and device temperatures/memory state so a hardware fault on one node can be tied to a physical accelerator rather than a rank index.
# NVIDIA GPU nodes:
srun --ntasks-per-node=1 nvidia-smi --query-gpu=index,name,uuid,pci.bus_id,temperature.gpu,memory.used --format=csv
# AMD ROCm GPU nodes:
srun --ntasks-per-node=1 rocm-smi --showid --showtemp --showmeminfo vramDo not inspect only rank 0 or the last lines of the merged Slurm output. Search unmerged rank logs for the earliest CUDA, HIP, Python, or host kill error that precedes collective watchdog timeouts and srun task-termination notices.
grep -rn -i -E 'error|exception|xid|ras|killed|oom|illegal|invalid|timeout|failed' slurm-<jobid>*.out rank_*.logMany HPC GPU failures stem from mixing system CUDA or ROCm modules with Conda-installed runtimes, compiling for the wrong GPU architecture target, or omitting the cluster fabric plugin (Slingshot OFI or InfiniBand UCX/RDMA) required for multi-node collectives.
module list
which python3 && python3 -c "import torch; print(torch.__version__, torch.version.cuda, torch.version.hip)"
env | grep -E 'NCCL|RCCL|FI_|UCX|MPICH|LD_LIBRARY_PATH'Re-run the minimal reproducer once on a different node set (excluding the suspected node) and once on a single node if multi-node fails. Only change one condition per run so you know whether to file a hardware node ticket or fix the workload.
sbatch --exclude=<suspected_node> repro_minimal.sbatch
# Compare single-node vs two-node collective health:
NCCL_DEBUG=INFO srun -N 2 --ntasks-per-node=1 python3 repro_allreduce.py| Signal | What it means | Next action |
|---|---|---|
| ExitCode 0:137 or OutOfMemory step state | Host Linux OOM killer or Slurm cgroup memory limit terminated a worker rank. | Compare MaxRSS against --mem / --mem-per-gpu; inspect host RAM consumers such as checkpoint buffers or DataLoader workers. |
| Invalid device function or missing GPU arch offload | Binary or JIT kernel was compiled for a different GPU compute capability or gfx target. | Rebuild kernels for the partition target architecture and remove conflicting Conda or module toolkit libraries. |
| Single-rank CUDA or HIP runtime exception before collective timeout | One rank hit a kernel, memory, or application error and peers timed out waiting at the barrier. | Debug the rank with the earliest runtime exception instead of raising NCCL_TIMEOUT. |
| All ranks stall at collective init on multi-node launch | Bootstrap interface, fabric plugin (OFI/UCX), or rank rendezvous settings are mismatched. | Verify MASTER_ADDR, network interface selection, and cluster-documented NCCL/RCCL fabric modules with NCCL_DEBUG=INFO. |
| Failure follows one specific compute node across controlled replays | Hardware, driver, thermal, or NIC port fault on that host. | Preserve dmesg/Xid or RAS evidence, exclude the node with --exclude, and report the node hostname and job ID to cluster support. |
Raising the collective timeout does not revive a dead rank; it only burns allocation hours while surviving ranks wait longer to fail.
Merged Slurm logs often print the fastest surviving victim rank first. Map the earliest distinct non-timeout fault to its physical host before asking admins to drain a node.
On restricted research or DOE allocations, inspect logs locally in-browser or inside your approved environment rather than pasting internal hostnames and stack traces into unapproved external services.
Inspect Slurm, NCCL, CUDA, and Xid logs locally in your browser without uploading data off-machine.
Reference cgroup OOM kills, GRES allocation errors, and node reason codes.
Separate initiating rank failures from downstream collective watchdog cascades.
Distinguish host cgroup kills from CUDA device memory exhaustion.
Check sacct MaxRSS and ExitCode alongside the worker stderr. ExitCode 0:137 or OUT_OF_MEMORY with no CUDA out-of-memory traceback usually indicates a host cgroup kill rather than GPU VRAM exhaustion.
Single-node runs communicate over NVLink, xGMI, or PCIe/SHM and never exercise the inter-node fabric. Multi-node hangs typically come from missing OFI/UCX/RDMA plugins, wrong socket interface variables, or a degraded single link.
Include the Slurm job ID, exact failing node hostname, physical GPU index or PCI bus ID, the minimal reproducer test showing the failure follows that node, and the earliest non-timeout error line.
Get the likely cause, supporting evidence, and next safe steps with the same cloud reasoning used by paid plans. A crash the engine recognizes is answered in seconds, then checked by an independent AI review that updates this page when it finishes. A crash it does not recognize waits for the AI's own answer, which can take a few minutes. No account, card, or installation. Logs are masked at Denpex API ingress and are not saved to account history.
Before uploading, review cloud data handling and local options.
Upload your log file. Large files are processed in your browser. Only selected evidence is submitted when you run diagnosis.
No credit card. No automatic subscription. See whether Denpex helps with an incident you already understand.
Up to 50 diagnoses a day for 30 days. Verify your work email to activate an eligible company evaluation, then replay a resolved incident and compare the evidence and next steps with your team's confirmed cause.
Use the three free diagnoses to review your error and relevant evidence. Keep reference guidance separate from the cause and recovery status of your own workload.
Diagnose your incident