NCCL

Creator
Creator
Seonglae ChoSeonglae Cho
Created
Created
2023 May 30 8:10
Editor
Edited
Edited
2026 Oct 31 15:18

NVIDIA Collective Communication Library

Windows are not supported

Cross-GPU tensor communication

Almost every CUDA based multi GPU training/inference server use NCCL
  • NCCL_SOCKET_IFNAME
  • NCCL_DEBUG

Using torch

python -c "import torch;print(torch.cuda.nccl.version())"

Install

wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-keyring_1.0-1_all.deb dpkg -i cuda-keyring_1.0-1_all.deb apt update apt install libnccl2=2.18.5-1+cuda12.1 libnccl-dev=2.18.5-1+cuda12.1
 
 

Install

Env

NCCLX: Collective Communication for 100k+ GPUs

NCCLX extends NCCL with CTran, a host-driven transport supporting zero-copy, SM-free transfers, and lazy connection and channel allocation to reduce GPU resource use. Compared with NCCL, it delivers up to 11× faster training startup at 96,000 GPUs, reduces Llama 4 steady-state training step latency by up to 12%, and lowers Llama 4 Maverick end-to-end decoding latency by 15–80% across distributed configurations.

Timeout

 
 

Recommendations