Skip to content

Remove NCCL>=2.10.3 check#2000

Merged
crcrpar merged 1 commit into
NVIDIA:masterfrom
crcrpar:remove-nccl-ver-check
May 13, 2026
Merged

Remove NCCL>=2.10.3 check#2000
crcrpar merged 1 commit into
NVIDIA:masterfrom
crcrpar:remove-nccl-ver-check

Conversation

@crcrpar
Copy link
Copy Markdown
Collaborator

@crcrpar crcrpar commented May 10, 2026

as 2.10.3 was released in 2021 April.

ref: https://docs.nvidia.com/deeplearning/nccl/archives/nccl_2303/release-notes/rel_2-10-3.html

Signed-off-by: Masaki Kozuki <mkozuki@nvidia.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes the NCCL version gating logic for building the nccl_p2p_cuda contrib extension when --nccl_p2p is enabled, making the extension build unconditional (subject to CUDA being available).

Changes:

  • Removed the build-time NCCL version probe (_nccl_version_getter) for --nccl_p2p.
  • Removed the conditional “skip + warning” path and always registers the nccl_p2p_cuda CUDAExtension.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread setup.py
Comment on lines 867 to +872
# NOTE: Requires NCCL >= 2.10.3
if has_flag("--nccl_p2p", "APEX_NCCL_P2P"):
if "--nccl_p2p" in sys.argv:
sys.argv.remove("--nccl_p2p")
raise_if_cuda_home_none("--nccl_p2p")
# Check NCCL version.
_nccl_version_getter = load(
name="_nccl_version_getter",
sources=[
"apex/contrib/csrc/nccl_p2p/nccl_version.cpp",
"apex/contrib/csrc/nccl_p2p/nccl_version_check.cu",
],
)
_available_nccl_version = _nccl_version_getter.get_nccl_version()
if _available_nccl_version >= (2, 10):
ext_modules.append(
CUDAExtension(
name="nccl_p2p_cuda",
sources=[
"apex/contrib/csrc/nccl_p2p/nccl_p2p_cuda.cu",
"apex/contrib/csrc/nccl_p2p/nccl_p2p.cpp",
],
extra_compile_args={"cxx": ["-O3"] + generator_flag},
)
)
else:
warnings.warn(
f"Skip `--nccl_p2p` as it requires NCCL 2.10.3 or later, but {_available_nccl_version[0]}.{_available_nccl_version[1]}"
ext_modules.append(
Copy link
Copy Markdown
Collaborator

@Aidyn-A Aidyn-A left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree, we are now on NCCL v2.30.x.

@crcrpar crcrpar merged commit ed51e53 into NVIDIA:master May 13, 2026
5 checks passed
@crcrpar crcrpar deleted the remove-nccl-ver-check branch May 13, 2026 01:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants