NCCL Deep Dive: Cross Data Center Communication and Network Topology Awareness

AI-generated summary of reporting by NVIDIA Developer Blog. Read the original for the full story.

Why it matters

Teams training AI models across multiple data centers can now get optimized collective communication from NCCL without restructuring their training code.

Read this as

NVIDIA has open-sourced an upgrade to NCCL, a library that coordinates data transfers between the chips used to train AI. The upgrade lets the library send data across several data centers, choosing the best route based on how the sites are connected. It works whether the sites share one network type or use different ones. Teams running very large AI training jobs that span locations benefit; no benchmark results are given.

Training frontier-scale AI models increasingly outgrows a single data center, and NVIDIA's newly open-sourced cross-data-center support in NCCL addresses that gap. It minimizes traffic over slower inter-site links and spreads that traffic across multiple devices, so fewer sites are bottlenecked by one connection. Organizations training across distributed sites gain performance without changing their training frameworks. NVIDIA publishes no measured speedup figures, so benefits must be validated in-house.

NCCL now supports cross-data-center collectives via a fabric ID concept and a new ncclNet getNetPath API returning NET_LOC_DCL0, NET_LOC_DCL1, or NET_LOC_DISC connectivity. Ring and Tree algorithms are reordered to limit cross-DC connections to 2*(nDc-1), with channel scattering (NCCL_SCATTER_XDC=1) distributing inter-DC traffic across nodes. Key tuning parameters include NCCL_IB_QPS_PER_CONNECTION, NCCL_NSOCKS_PERTHREAD, and NCCL_SOCKET_NTHREADS. Enabling NCCL_ALLNET_ENABLE=1 disables collNet, and the article provides no benchmark numbers.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

NCCL NVIDIA NeMo framework SLURM UCLouvain Github

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading