arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2507.04786cs.DC
收藏

解开NCCL之谜:深入分析GPU通信协议和算法

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

ETH Zürich(苏黎世联邦理工学院);NVIDIA Corporation(英伟达);Broadcom Inc.(博通)

Zhiyi Hu, Siyuan Shen, Tommaso Bonato, Sylvain Jeaugey, Cedell Alexander, Eric Spada, James Dinan, Jeff Hammond, Torsten Hoefler

AI总结:

本文深入分析NCCL的通信协议和算法,揭示其内部架构,为大规模集体通信的优化和模拟提供指导。

摘要:

NVIDIA集体通信库(NCCL)是实现大规模GPU集群高性能集体通信的关键软件层。尽管该库是开源的,并具有文档化的API,但其内部设计仍然大多不明。通信通道的协调、协议的选择以及跨设备和节点的内存移动处理并不清楚,这使得分析性能或识别瓶颈变得困难。本文对NCCL进行了全面分析,重点研究其通信协议变体(简单、LL和LL128)、控制节点内和节点间数据移动的机制,以及环形和树形集体通信算法。从本研究中获得的见解为ATLAHS应用跟踪驱动的网络模拟工具链奠定了基础,该工具链能够准确重现大规模AI训练工作负载中的NCCL通信模式。通过解开NCCL的内部架构,本工作为系统研究人员和性能工程师在优化或模拟大规模集体通信方面提供了指导。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑