Skip to content

Replace enum by static constexpr in CUB/Thrust - #6480

Merged
bernhardmgruber merged 7 commits into
NVIDIA:mainfrom
bernhardmgruber:no_enum2
Nov 11, 2025
Merged

bernhardmgruber merged 7 commits into
NVIDIA:mainfrom
bernhardmgruber:no_enum2

Conversation

@bernhardmgruber

Copy link
Copy Markdown
Contributor

No description provided.

@copy-pr-bot

copy-pr-bot Bot commented Nov 4, 2025

Copy link
Copy Markdown
Contributor

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.

@cccl-authenticator-app cccl-authenticator-app Bot moved this from Todo to In Progress in CCCL Nov 4, 2025
Comment thread cub/benchmarks/bench/merge/keys.cu Resolved
Comment thread cub/cub/block/block_radix_rank.cuh Resolved
Comment thread cub/cub/block/block_radix_rank.cuh Resolved
Comment thread cub/cub/block/block_shuffle.cuh Resolved
@bernhardmgruber

Copy link
Copy Markdown
Contributor Author

I would like to avoid any other refactoring than replacing enumerators by static constexpr etc., since this PR is already touching a lot of places. I will take the feedback provided here into a follow-up PR.

@bernhardmgruber
bernhardmgruber marked this pull request as ready for review November 4, 2025 16:46
@bernhardmgruber
bernhardmgruber requested review from a team as code owners November 4, 2025 16:46
@cccl-authenticator-app cccl-authenticator-app Bot moved this from In Progress to In Review in CCCL Nov 4, 2025
@github-project-automation github-project-automation Bot moved this from In Review to In Progress in CCCL Nov 4, 2025
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-project-automation github-project-automation Bot moved this from In Progress to In Review in CCCL Nov 6, 2025
@github-actions

This comment has been minimized.

@bernhardmgruber
bernhardmgruber force-pushed the no_enum2 branch 2 times, most recently from b1c460f to b648eb2 Compare November 6, 2025 18:56
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@bernhardmgruber

Copy link
Copy Markdown
Contributor Author

/ok to test 4633c22

@github-actions

Copy link
Copy Markdown
Contributor

🥳 CI Workflow Results

🟩 Finished in 5h 06m: Pass: 100%/124 | Total: 7d 07h | Max: 5h 05m | Hits: 52%/167602

See results here.

@bernhardmgruber
bernhardmgruber merged commit 06f2025 into NVIDIA:main Nov 11, 2025
137 checks passed
@github-project-automation github-project-automation Bot moved this from In Review to Done in CCCL Nov 11, 2025
@bernhardmgruber
bernhardmgruber deleted the no_enum2 branch November 11, 2025 20:50
Naraenda pushed a commit to ROCm/rocm-libraries that referenced this pull request Oct 26, 2026
…expr in CUB/Thrust (NVIDIA/cccl#6480)

Upstream: NVIDIA/cccl@06f2025

HIP counterpart (system/hip): none; system/hip has no anonymous-enum constants of this form. Ported enum -> static constexpr in system/cuda (agent_launcher.h, core/util.h, reduce.h, reduce_by_key.h, set_operations.h); util.h conflict resolved to static constexpr bool value while keeping local ::cuda::std::true_type/false_type. test/ counterpart: none. Not compiled, tests not run (per human)

Co-Authored-By: Claude <noreply@anthropic.com>
Naraenda pushed a commit to ROCm/rocm-libraries that referenced this pull request Oct 29, 2026
…expr in CUB/Thrust (NVIDIA/cccl#6480)

Upstream: NVIDIA/cccl@06f2025

HIP counterpart (system/hip): none; system/hip has no anonymous-enum constants of this form. Ported enum -> static constexpr in system/cuda (agent_launcher.h, core/util.h, reduce.h, reduce_by_key.h, set_operations.h); util.h conflict resolved to static constexpr bool value while keeping local ::cuda::std::true_type/false_type. test/ counterpart: none. Not compiled, tests not run (per human)

Co-Authored-By: Claude <noreply@anthropic.com>
Naraenda pushed a commit to ROCm/rocm-libraries that referenced this pull request Oct 29, 2026
…expr in CUB/Thrust (NVIDIA/cccl#6480)

Upstream: NVIDIA/cccl@06f2025

HIP counterpart (system/hip): none; system/hip has no anonymous-enum constants of this form. Ported enum -> static constexpr in system/cuda (agent_launcher.h, core/util.h, reduce.h, reduce_by_key.h, set_operations.h); util.h conflict resolved to static constexpr bool value while keeping local ::cuda::std::true_type/false_type. test/ counterpart: none. Not compiled, tests not run (per human)

Co-Authored-By: Claude <noreply@anthropic.com>
Naraenda pushed a commit to ROCm/rocm-libraries that referenced this pull request Oct 30, 2026
…expr in CUB/Thrust (NVIDIA/cccl#6480)

Upstream: NVIDIA/cccl@06f2025

HIP counterpart (system/hip): none; system/hip has no anonymous-enum constants of this form. Ported enum -> static constexpr in system/cuda (agent_launcher.h, core/util.h, reduce.h, reduce_by_key.h, set_operations.h); util.h conflict resolved to static constexpr bool value while keeping local ::cuda::std::true_type/false_type. test/ counterpart: none. Not compiled, tests not run (per human)

Co-Authored-By: Claude <noreply@anthropic.com>
Beanavil pushed a commit to ROCm/rocm-libraries that referenced this pull request Oct 30, 2026
…expr in CUB/Thrust (NVIDIA/cccl#6480)

Upstream: NVIDIA/cccl@06f2025

HIP counterpart (system/hip): none; system/hip has no anonymous-enum constants of this form. Ported enum -> static constexpr in system/cuda (agent_launcher.h, core/util.h, reduce.h, reduce_by_key.h, set_operations.h); util.h conflict resolved to static constexpr bool value while keeping local ::cuda::std::true_type/false_type. test/ counterpart: none. Not compiled, tests not run (per human)

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants