NVIDIA/nccl
Optimized primitives for collective multi-GPU communication
What it solves
NCCL makes it fast and easy for multiple graphics cards to talk to each other, solving communication bottlenecks when training large workloads across single or multiple nodes.
How it works
It provides a library of standard communication routines like all-reduce, all-gather, and broadcast, optimized to run at high bandwidth over connections like PCIe, NVLink, NVswitch, InfiniBand, and TCP/IP sockets.
Who it’s for
It is for developers and engineers building high-performance multi-GPU applications that require efficient inter-GPU communication.
Highlights
- Implements standard routines like all-reduce, all-gather, reduce, broadcast, and reduce-scatter
- Optimized for high bandwidth on PCIe, NVLink, NVswitch, InfiniBand, and TCP/IP networks
- Supports an arbitrary number of GPUs in a single node or across multiple nodes
- Compatible with both single-process and multi-process applications like MPI
Related
- Project
ROCm/rcclA library of standard collective communication routines for GPUs that enables high-bandwidth data synchronization across multiple GPUs and nodes.
- Project
microsoft/mscclppMSCCL++ is a GPU-driven communication stack that redefines inter-GPU communication interfaces, offering lightweight, hardware-agnostic abstractions for efficient data movement in distributed AI applications. It provides one-sided, zero-copy primitives and unified channels across NVLink and InfiniBand, delivering significant speedups for collective operations like AllReduce.
- Project
microsoft/mscclA communication framework built on NCCL that allows users to execute custom, hyper-optimized collective communication algorithms for multiple accelerators to improve distributed AI performance.
- Project
NVIDIA/nccl-testsNCCL tests is a performance and correctness test suite for NCCL operations. It builds with make, supports MPI and non-MPI multi-process launches, provides many collective-operation tuning options, and includes extra tools for communicator ops and device API microbenchmarks.
- Project
uccl-project/ucclUCCL is a GPU communication library that makes AI model training/inference faster by replacing existing libraries (NCCL/RCCL) with a smarter, faster version that uses packet spraying to avoid network congestion, plus specialized tools for direct GPU-to-GPU transfers and expert-parallel models. It works across Nvidia and AMD GPUs and various network hardware, and is already adopted by NVIDIA, AMD, Red Hat, IBM, and Google.