# nvidia/nccl

> NCCL is a stand-alone library of standard communication routines for GPUs, including all-reduce, all-gather, reduce, broadcast and reduce-scatter. It runs these operations across any number of GPUs installed in one node or spread over several nodes. The project is written mainly in C++ and includes Python bindings.

Source: https://github.com/nvidia/nccl
Indexed: commit 9287574 on 2026-07-14 by Repowise. Facts come from the source and git history, not from the maintainer.

## Facts

- Type: App
- Language: C++
- Stars: 5,232 at index time
- Code health: 5.7/10, Fair
- Last commit: 2026-06-10

## Install

From the README: https://github.com/nvidia/nccl#install

Clone the nccl repository.
    git clone https://github.com/nvidia/nccl.git

Change into the nccl directory.
    cd nccl

Build the library into the build directory.
    make -j src.build

Build a Debian package on Debian or Ubuntu systems.
    make pkg.debian.build

## How it works

The library source lives in src, the largest module with 404 files, and the Makefile target src.build compiles it into build/. Other Makefile targets such as pkg.debian.build, pkg.redhat.build, pkg.txz.build and pkg.python_wheel.build package the built library under build/pkg. The contrib directory holds 153 files of additional components, including contrib/nccl_ep/nccl_ep.cc, which is one of the listed entry points. The bindings directory has 46 files, including the nccl4py Python package with examples under bindings/nccl4py/examples. The docs directory has 95 files, including the C example docs/examples/01_communicators/01_multiple_devices_single_process/c/main.cc, and src/dev_runtime.cc and src/graph/topo.cc are listed among the hotspot files.

- bindings/nccl4py/examples/cute/main.py: entry point
- contrib/nccl_ep/nccl_ep.cc: entry point
- contrib/nccl_ubx/bench/ubx_bench/__main__.py: entry point
- contrib/nccl_ubx/csrc/bindings.cpp: entry point
- docs/examples/01_communicators/01_multiple_devices_single_process/c/main.cc: entry point
Modules: src, contrib, plugins, docs, bindings, pkg, .github, root. 834 files, 172,648 lines, 13,104 symbols.

## Code health

- Score: 5.7/10 (Fair)
- Rank: #229 of 4,000+ indexed repos
- Hotspots: contrib/nccl_ep/nccl_ep.cc, src/dev_runtime.cc, contrib/nccl_ep/include/nccl_ep.h, src/include/nccl_device/impl/gin__funcs.h, src/graph/topo.cc
- Lowest file: src/transport.cc
- Dead code: 1,118 findings

## Maintenance

- Last commit 2026-06-10
- bus factor 2

## Security

- Security findings are shown to signed-in users at https://repowise.dev/repo/nvidia/nccl/security

## More

- Page: https://repowise.dev/repo/nvidia/nccl
- Ask this codebase: https://repowise.dev/repo/nvidia/nccl/chat
- Docs: https://repowise.dev/repo/nvidia/nccl/docs
- MCP (signs in with Repowise on first use):
    claude mcp add --transport http repowise https://api.repowise.dev/mcp/nvidia/nccl
