Repository navigation
docs: state NCCL >= 2.31.2 requirement for development builds - #3960
Open
YixinZ2004 wants to merge 1 commit into
Open
YixinZ2004 wants to merge 1 commit into
YixinZ2004 wants to merge 1 commit into
Conversation
Contributor
[Low impact] This documentation change appears safe to merge. SummaryAdds a development-build note to
Reviews (3) · Last reviewed commit: "docs: state NCCL >= 2.31.2 requirement f..." · Reviewed by Greptile |
YixinZ2004
force-pushed
the
yixinz/nccl-doc-requirement
branch
from
November 30, 2026 02:22
3f31621 to
469d599
Compare
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
force-pushed
the
yixinz/nccl-doc-requirement
branch
from
November 30, 2026 02:29
469d599 to
7aac1e3
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The documented development-build command builds the
nccl_epextension, 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 thegit+maininstall command, with theNCCL_HOMEworkaround.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_epreferences 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_HOMEforced 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:
The
NCCL_HOMEstep 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-extensionsrevision — the new GIN sources are only onmaintoday, 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
@mainnccl_ep.ccstruct-member errors)nccl_epcompiles@main@stableinstall against NCCL 2.30.7nccl-extensionspin predates the GIN sources)Note
Probably also wanted on
release_v2.22so the 2.22.0 docs carry it, if that branch is still open for doc fixes.