Skip to content

Use modularized CCCL headers - #5736

Open
miscco wants to merge 3 commits into
rapidsai:mainfrom
miscco:use_modularized_cccl_headers
Open

miscco wants to merge 3 commits into
rapidsai:mainfrom
miscco:use_modularized_cccl_headers

Conversation

@miscco

@miscco miscco commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Replace the <cuda/std/algorithm> umbrella include in similarity_functor.cuh with <cuda/std/algorithm.min.h>, the only algorithm it uses. The 16 files that call cuda::std::min or cuda::std::max but only got them through transitive includes now include <cuda/std/algorithm.min.h> / <cuda/std/algorithm.max.h> explicitly. There are no other code changes.

The modular <cuda/std/algorithm.<name>.h> headers exist since CCCL 3.4.0, and rapids-cmake pins CCCL 3.6.0. They avoid parsing the whole algorithm umbrella and keep these files from depending on what other headers happen to include. See NVIDIA/cccl#12535 for the compile-time investigation behind this.

Replace the <cuda/std/algorithm>, <cuda/ptx> and <cuda/execution> umbrella
includes with the modular headers for the facilities each file uses, and
include those headers explicitly in files that only reached them through
transitive includes.
@copy-pr-bot

copy-pr-bot Bot commented Nov 9, 2026

Copy link
Copy Markdown

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

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.

1 participant