Skip to content

Operator task guide

HPC GPU cluster troubleshooting checklist for Slurm and multi-node jobs

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.

Step-by-step method

  1. 1

    Freeze scheduler accounting, step exit codes, and node lists

    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>
  2. 2

    Capture rank-to-node-to-GPU mapping across NVIDIA or AMD nodes

    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 vram
  3. 3

    Separate the earliest failing rank from NCCL/RCCL watchdog cascades

    Do 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_*.log
  4. 4

    Audit module, Conda, and high-speed fabric plugin alignment

    Many 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'
  5. 5

    Run a single-variable control to prove node vs workload ownership

    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

HPC GPU failure triage table

Signals, meanings and actions for hpc gpu cluster troubleshooting checklist for slurm and multi-node jobs.
SignalWhat it meansNext action
ExitCode 0:137 or OutOfMemory step stateHost 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 offloadBinary 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 timeoutOne 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 launchBootstrap 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 replaysHardware, 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.

Evidence checklist

  • Full sbatch script, srun flags, and loaded module list or container image digest
  • sacct output showing State, ExitCode, DerivedExitCode, MaxRSS, and NodeList
  • Per-rank stdout/stderr logs with original rank-to-hostname mapping
  • Host device health output (nvidia-smi or rocm-smi) and kernel dmesg snippets if accessible
  • Resolved NCCL/RCCL, OFI/UCX, and MPICH environment variables
  • Result of one single-variable control (single-node or node-excluded replay)

Common mistakes

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.

Reporting the first rank printed in a merged log as the bad node

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.

Uploading raw lab logs or hostnames to external cloud tools

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.

Frequently asked questions

How do I tell whether a Slurm GPU job failed from host RAM or GPU VRAM?

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.

Why does a job pass on one node and hang when scaled to two nodes?

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.

What should I include in an HPC helpdesk ticket for a suspected bad GPU node?

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.

Live diagnosis, no signup

Upload your GPU log. Find what happened first.

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.

training_logs.txt
No log to hand? Try one:

Upload your log file. Large files are processed in your browser. Only selected evidence is submitted when you run diagnosis.

3 free cloud diagnoses per day

Try Denpex for 30 days. FREE.

No credit card. No automatic subscription. See whether Denpex helps with an incident you already understand.

Start your free 30-day Team evaluation

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 your company email, for example alex@yourcompany.com.

Who qualifies?

Company email domains activate the free 30-day Team evaluation (up to 50 diagnoses a day) after an email and domain check, whatever mail provider you use. If we cannot verify your domain automatically, support reviews it: write to support@denpex.com. Free local diagnosis in the editor extension needs no account.

Using a personal email (Gmail, Outlook, Naver, QQ) or solo cluster? Create a free $0 account (no work email required) to save 7-day history and unlock AI fallback, or send a cluster crash log for a live walkthrough.

Apply the method to your incident

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