Skip to content

docs: state NCCL >= 2.31.2 requirement for development builds - #3960

Open
YixinZ2004 wants to merge 1 commit into
NVIDIA:mainfrom
YixinZ2004:yixinz/nccl-doc-requirement
Open

YixinZ2004 wants to merge 1 commit into
NVIDIA:mainfrom
YixinZ2004:yixinz/nccl-doc-requirement

Conversation

@YixinZ2004

@YixinZ2004 YixinZ2004 commented Nov 30, 2026 •

Copy link
Copy Markdown

Summary

The documented development-build command builds the nccl_ep extension, which requires NCCL 2.31.2+ headers — but the installation page's Prerequisites list (Linux, CUDA, driver, cuDNN, cuDNN Frontend) contains no NCCL entry at all. This PR states the requirement next to the git+main install command, with the NCCL_HOME workaround.

What fails today

pip3 install --no-build-isolation git+https://github.com/NVIDIA/TransformerEngine.git@main (docs/installation.rst, "Installation (development build)") fails against NCCL 2.30.x headers:

nccl_ep.cc:3098:97: error: 'ncclDevComm_t' {aka 'struct ncclDevComm'} has no member named 'ginContextStride';
               did you mean 'ginContextsRailed'?
error: metadata-generation-failed

nccl_ep references GIN symbols introduced in the NCCL 2.31 development cycle (first NCCL release carrying them: 2.31.2). Because the submodule build runs during metadata generation, even dependency resolution fails — a reader following the documented command in the 26.08 NVIDIA PyTorch container (NCCL 2.30.7) hits this before anything installs, and the Prerequisites list gives them no way to check what is missing.

Measured with NCCL_HOME forced at each version: NCCL 2.30.4 and 2.30.7 fail to build; 2.31.2 compiles; 2.32.6 passes.

What this PR does

  • Adds a note to the "Installation (development build)" section: the development build requires NCCL 2.31.2 or later headers, and the recommended fix when the system NCCL is older:

    pip install nvidia-nccl-cu12>=2.31.2
    export NCCL_HOME=$(python -c "import nvidia.nccl, os; print(os.path.dirname(nvidia.nccl.__file__))")

    The NCCL_HOME step is required: Transformer Engine's NCCL lookup prefers the system installation over pip packages, so installing the wheel alone is not enough.

  • The global Prerequisites list is intentionally unchanged: the requirement tracks the pinned 3rdparty/nccl-extensions revision — the new GIN sources are only on main today, and the stable branch pins an earlier revision that still builds against older NCCL.

  • Companion change on the extension side: nccl_ep: fail fast when building against NCCL older than 2.31 nccl-extensions#57 adds the compile-time guard (a readable #error; does not change what builds) and a README note.

Verification

Check Result
NCCL 2.30.4 / 2.30.7 build of @main fails (nccl_ep.cc struct-member errors)
NCCL 2.31.2 nccl_ep compiles
NCCL 2.32.6 build of @main passes (38 s sdist build)
@stable install against NCCL 2.30.7 passes (stable's nccl-extensions pin predates the GIN sources)
docs/installation.rst RST parse no new warnings (docutils, changed section)

Note

Probably also wanted on release_v2.22 so the 2.22.0 docs carry it, if that branch is still open for doc fixes.

@github-actions github-actions Bot added the community-contribution PRs from external contributor outside the core maintainers, representing community-driven work. label Nov 30, 2026
@greptile-apps

greptile-apps Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · This documentation change appears safe to merge.RetriggerView in GreptileConfidence Score: 5/5

[Low impact] This documentation change appears safe to merge.

Summary

Adds a development-build note to docs/installation.rst.

  • Development-build instructions explain the NCCL version and how to select it.

Reviews (3) · Last reviewed commit: "docs: state NCCL >= 2.31.2 requirement f..." · Reviewed by Greptile

Comment thread docs/installation.rst Resolved
@YixinZ2004
YixinZ2004 force-pushed the yixinz/nccl-doc-requirement branch from 3f31621 to 469d599 Compare November 30, 2026 02:22
The documented development-build command (pip3 install --no-build-isolation
git+https://github.com/NVIDIA/TransformerEngine.git@main) builds the nccl_ep
extension, whose sources use NCCL symbols introduced in the NCCL 2.31
development cycle; the first NCCL release carrying them is 2.31.2. Against
older headers the sdist build fails with raw struct-member errors in
nccl_ep.cc (e.g. 'ncclDevComm_t' has no member named 'ginContextStride'),
and because the submodule build runs during metadata generation, even
dependency resolution fails before anything installs.

Measured: NCCL 2.30.4 and 2.30.7 fail to build; 2.31.2 compiles; 2.32.6
passes. The 26.08 NVIDIA PyTorch container ships NCCL 2.30.7, so a reader
following the documented command there cannot tell what they are missing:
the installation page's Prerequisites list contains no NCCL entry at all.

State the requirement next to the development-build command, with the
NCCL_HOME workaround (Transformer Engine's NCCL lookup prefers the system
installation over pip packages, so installing the wheel alone is not
enough). The recommended wheel is the CUDA 13 one, matching the current
NVIDIA PyTorch containers (the 26.08 image is CUDA 13.4); it installs the
same nvidia/nccl package path, so the NCCL_HOME export is unchanged. The
pip spec is quoted because an unquoted >= is parsed by bash as an output
redirection. The requirement tracks the pinned 3rdparty/nccl-extensions
revision: the new GIN sources are only on main today, and the stable
branch still pins an earlier revision that builds against NCCL 2.30.x,
so the global Prerequisites list stays unchanged. The extension-side
compile-time guard and README note are proposed separately in
NVIDIA/nccl-extensions#57.

Signed-off-by: Yixin Zhang <22718952+YixinZ2004@users.noreply.github.com>
@YixinZ2004
YixinZ2004 force-pushed the yixinz/nccl-doc-requirement branch from 469d599 to 7aac1e3 Compare November 30, 2026 02:29

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-contribution PRs from external contributor outside the core maintainers, representing community-driven work.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant