Menu

A first-pass checklist for a hanging NCCL all-reduce on a multi-node GPU cluster
📰

A first-pass checklist for a hanging NCCL all-reduce on a multi-node GPU cluster

DEV Community: kubernetes·Altostratus Amihai·3 days ago
#HIbJrZVO
#devtokubernetes#devto#dev#nccl#node
Long article (272 words) — no AI summary yet.
Reading 0:00
15s threshold

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

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.