TECHNOLOGY

NCCL cross-NIC policy must match physical rails

In this article
THE QUICK TAKE

Same-NIC preference is useful only with the corresponding rail design; local adapter names do not establish shared physical rail identity.

Symmetric adapter names hide an expensive crossing

A cluster connects each host NIC to a corresponding network rail, with constrained connectivity between rails. Workers have similarly named adapters, but a replacement changed one host’s physical cabling. A policy that appears to use the same NIC position can now cross the expensive inter-rail boundary. Establish physical rail identity before attributing the regression to collective algorithms or assuming identical local device names imply equivalent network placement.

The policy addresses rings and trees

The NCCL environment reference defines CROSS_NIC as controlling whether rings and trees may use different NICs on different nodes. It explains why corresponding NIC use can suit rail-optimized networks, while a shared-switch arrangement has a different tradeoff. This does not simply enable every available adapter or declare one universal bandwidth-maximizing policy. The relevant topology includes how corresponding ports connect and where traffic must cross between rail domains.

Preference is not always an absolute invariant

The documented restrictive choice still has a qualification when a communicator does not contain the same GPUs on every node. Preserve actual communicator membership instead of validating only a full-node benchmark and applying its conclusion to every partial allocation. The automatic option can also allow a different pairing when the library considers it beneficial. A requested preference and an observed pairing are separate facts; neither should silently become a guarantee covering all future communicator shapes.

Build a rail identity map

Join each rank’s selected GPU and NIC port to the physical switch and rail. Record cable changes, port remapping and the topology generation, alongside the effective cross-NIC setting. The NCCL logging guide supplies scoped assignment evidence; retain the rank and communicator context rather than interpreting a generic adapter inventory as the selected path. Verify all participating hosts, including the asymmetric replacement, because a single incorrect correspondence can invalidate an otherwise uniform naming convention.

Qualify the actual communicator shapes

In an isolated authorized comparison, include the full-node and relevant partial-GPU memberships, representative collective sizes and intended competing traffic. Preserve correct results and completed work while observing selected pairings and available fabric counters. Compare a justified policy alternative without changing cabling or rank placement at the same time. Acceptance should show the chosen policy fits the physical rail map and useful-work criterion. A quiet inter-rail counter alone is insufficient when its scope or sampling misses the affected flow.

Keep the conclusion topology-specific

A setting suitable for separate rails can be inappropriate when all NICs reach one switch, and a faster isolated collective does not establish whole-job improvement. The routing study guide explains why aggregate metrics remain conditional, while transport assignment distinguishes requested interfaces from actual use. Save the accepted membership and rail map with the result. Re-evaluate after recabling or allocation changes rather than promoting a cross-NIC value into an unexplained fleet-wide constant.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles