A first-pass checklist for a hanging NCCL all-reduce on a multi-node GPU cluster
When a multi-node training job hangs in an all-reduce, the cause is usually in the network setup, not in the training code. A first pass that rules out the common cases: Turn on logging. Set NCCL_DEBUG=INFO (and NCCL_D
When a multi-node training job hangs in an all-reduce, the cause is usually in the network setup, not in the training code. A first pass that rules out the common cases:
- Turn on logging. Set NCCL_DEBUG=INFO (and NCCL_DEBUG_SUBSYS=INIT,NET if you want less noise). The log shows which transport NCCL picked (InfiniBand/RoCE vs plain sockets) and which interface it bound to.
- Reproduce without your model. Run nccl-tests (all_reduce_perf) across the same nodes. If it hangs or is far below expected bandwidth, the problem is the fabric or the config, not your job.
- Check interface selection. On multi-homed nodes NCCL can pick the wrong NIC. Pin it with NCCL_SOCKET_IFNAME, and for InfiniBand/RoCE with NCCL_IB_HCA.
- Check the fabric itself. Verify link state and speed on every node (for example ibstat), and look for a single node with a degraded or down port.
- Check that GPU Direct RDMA is actually in use if you expect it. The NCCL log tells you whether it fell back to a slower path.
- Check Kubernetes-side limits: pod network mode, whether the RDMA devices are exposed to the pod, and memlock limits.
- Compare versions. Mismatched NCCL, driver or OFED versions across nodes are a frequent cause of hangs that only show at scale.
None of this is exotic, but the order matters: logs first, then a model-free reproduction, then the network.
Disclosure: I am affiliated with Altostratus (altostratus.bot), an AI assistant for GPU and Kubernetes troubleshooting. The checklist above stands on its own and works without it. Treat any assistant, including that one, as a starting point and check your own logs. Questions about this checklist are welcome in the comments.
Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.