Skip to content

build: remove stale NVCC -diag-suppress=1407 - #1100

Merged
rapids-bot[bot] merged 1 commit into
rapidsai:mainfrom
vyasr:fix/remove-stale-nvcc-1407-suppression
Jun 15, 2026
Merged

build: remove stale NVCC -diag-suppress=1407#1100
rapids-bot[bot] merged 1 commit into
rapidsai:mainfrom
vyasr:fix/remove-stale-nvcc-1407-suppression

Conversation

@vyasr

@vyasr vyasr commented Jun 13, 2026

Copy link
Copy Markdown
Contributor

This PR removes the -diag-suppress=1407 NVCC flag from cmake/Modules/ConfigureCUDA.cmake.

Background

The suppression was added in the initial commit ~2 years ago to silence NVCC warning 1407, which fires when CCCL templates are instantiated in contexts with internal linkage (e.g. anonymous namespaces). The comment noted: "This is not a problem and will be fixed in future versions of CCCL."

The item was tracked as a follow-up in rapidsai/cudf#22771, referenced from PR #1083 discussion.

Why it's safe to remove

  1. The library has zero .cu files — all source under cpp/src/ is .cpp, so the NVCC-specific flag never applied to library compilation.
  2. The only .cu file is cpp/tests/test_allreduce.cu, which uses CCCL templates (cuda::std::plus, cuda::minimum, etc.) inside an anonymous namespace — exactly the pattern that used to trigger the warning.
  3. Verified empirically: compiling test_allreduce.cu with -Werror=all-warnings and without -diag-suppress=1407 using CUDA 12.9 (nvcc V12.9.86) produces zero warning 1407 instances. CCCL has fixed the underlying visibility attribute issue.

Addresses

The suppression was added 2 years ago to silence an NVCC warning about
visibility attributes on CCCL template instantiations with internal
linkage (e.g. in anonymous namespaces). This has since been fixed in
CCCL and the warning no longer fires with current toolchains.

Verified by compiling the only .cu file in the repo
(cpp/tests/test_allreduce.cu) with -Werror=all-warnings and no
suppression — zero warning 1407 instances are emitted.

Closes NVIDIA/cudf#22771 (partial — this addresses the rapidsmpf
follow-up item referenced from PR rapidsai#1083).

Signed-off-by: Vyas Ramasubramani <vyasr@nvidia.com>
@vyasr
vyasr requested a review from a team as a code owner June 13, 2026 00:06
@vyasr vyasr added improvement Improves an existing functionality non-breaking Introduces a non-breaking change labels Jun 13, 2026
@vyasr

vyasr commented Jun 15, 2026

Copy link
Copy Markdown
Contributor Author

/merge

@rapids-bot
rapids-bot Bot merged commit c5175ba into rapidsai:main Jun 15, 2026
66 checks passed
@vyasr
vyasr deleted the fix/remove-stale-nvcc-1407-suppression branch June 15, 2026 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement Improves an existing functionality non-breaking Introduces a non-breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants