Skip to content

v2.28: Use third-party doca-gpunetio instead of vendored copy#976

Open
zhiyongww wants to merge 2 commits intometa-pytorch:mainfrom
zhiyongww:export-D95653706
Open

v2.28: Use third-party doca-gpunetio instead of vendored copy#976
zhiyongww wants to merge 2 commits intometa-pytorch:mainfrom
zhiyongww:export-D95653706

Conversation

@zhiyongww
Copy link
Contributor

Summary:
Make NCCLx v2.28 use the third-party doca-gpunetio library instead of compiling
its own vendored copy. This resolves duplicate symbol errors when tests link both
NCCL (with internal doca) and ctran/pipes (with third-party doca).

Changes:

  • Remove vendored doca-gpunetio source/header globs from def_build.bzl
  • Remove doca-gpunetio header remapping function (no longer needed)
  • Add fbsource//third-party/nvidia-doca/gpunetio:doca_gpunetio dependency
  • Add DOCA_VERBS_USE_META_THIRD_PARTY macro to gate Meta vs OSS build paths
  • Conditionally set wrapper defines and include paths based on build target

Differential Revision: D95653706

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Mar 8, 2026
@meta-codesync
Copy link
Contributor

meta-codesync bot commented Mar 8, 2026

@zhiyongww has exported this pull request. If you are a Meta employee, you can view the originating Diff in D95653706.

…ytorch#975)

Summary:

Make NCCLx v2.29 use the third-party doca-gpunetio library instead of compiling
its own vendored copy. This resolves duplicate symbol errors when tests link both
NCCL (with internal doca) and ctran/pipes (with third-party doca).

Changes:
- Remove vendored doca-gpunetio source/header globs from def_build.bzl
- Add fbsource//third-party/nvidia-doca/gpunetio:doca_gpunetio dependency
- Exclude vendored doca .cpp files from transport/**/*.cpp glob
- Add DOCA_VERBS_USE_META_THIRD_PARTY macro to gate Meta vs OSS build paths
- Conditionally set wrapper defines and include paths based on build target

Differential Revision: D95653707
…ytorch#976)

Summary:

Make NCCLx v2.28 use the third-party doca-gpunetio library instead of compiling
its own vendored copy. This resolves duplicate symbol errors when tests link both
NCCL (with internal doca) and ctran/pipes (with third-party doca).

Changes:
- Remove vendored doca-gpunetio source/header globs from def_build.bzl
- Remove doca-gpunetio header remapping function (no longer needed)
- Add fbsource//third-party/nvidia-doca/gpunetio:doca_gpunetio dependency
- Add DOCA_VERBS_USE_META_THIRD_PARTY macro to gate Meta vs OSS build paths
- Conditionally set wrapper defines and include paths based on build target

Differential Revision: D95653706
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot. fb-exported meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant