about
Demystifying NCCL: An In-Depth Analysis of GPU Communication Protocols and Algos (arxiv.org)
1 point by charleshn on Aug 13, 2025 | hide | past | pdf | discuss on HN

In plain words: A close reading of NCCL's code maps its three data-sending protocols, how data moves within and across nodes, and its ring and tree algorithms. These findings power a simulator fed training traces that reproduces NCCL traffic accurately, where engineers previously guessed at its internals.

Abstract · Demystifying NCCL: An In-depth Analysis of GPU Communication Protocols and Algorithms

The NVIDIA Collective Communication Library (NCCL) is a critical software layer enabling high-performance collectives on large-scale GPU clusters. Despite being open source with a documented API, its internal design remains largely opaque. The orchestration of communication channels, selection of protocols, and handling of memory movement across devices and nodes are not well understood, making it difficult to analyze performance or identify bottlenecks. This paper presents a comprehensive analysis of NCCL, focusing on its communication protocol variants (Simple, LL, and LL128), mechanisms governing intra-node and inter-node data movement, and ring- and tree-based collective communication algorithms. The insights obtained from this study serve as the foundation for ATLAHS, an application-trace-driven network simulation toolchain capable of accurately reproducing NCCL communication patterns in large-scale AI training workloads. By demystifying NCCL's internal architecture, this work provides guidance for system researchers and performance engineers working to optimize or simulate collective communication at scale.

Zhiyi Hu, Siyuan Shen, Tommaso Bonato, Sylvain Jeaugey, Cedell Alexander, Eric Spada, James Dinan, Jeff Hammond, Torsten Hoefler
arXiv:2507.04786 · cs.DC · submitted Jul 7, 2025 · updated Mar 2, 2026
abstract · pdf · html

add comment on HN