Skip to content

Remove num_ from tuning policy members - #9717

Merged
bernhardmgruber merged 1 commit into
NVIDIA:mainfrom
bernhardmgruber:remove_num_in_policy
Jul 6, 2026
Merged

bernhardmgruber merged 1 commit into
NVIDIA:mainfrom
bernhardmgruber:remove_num_in_policy

Conversation

@bernhardmgruber

Copy link
Copy Markdown
Contributor

Increases consistency among tuning policies

Fixes part of: #9378

Increases consistency among tuning policies
@bernhardmgruber
bernhardmgruber requested review from a team as code owners July 6, 2026 10:03
@bernhardmgruber
bernhardmgruber requested a review from shwina July 6, 2026 10:03
@github-project-automation github-project-automation Bot moved this to Todo in CCCL Jul 6, 2026
@cccl-authenticator-app cccl-authenticator-app Bot moved this from Todo to In Review in CCCL Jul 6, 2026
@bernhardmgruber bernhardmgruber mentioned this pull request Jul 6, 2026
17 tasks done
@coderabbitai

coderabbitai Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 3611fa22-5a4a-4611-8a6c-a06f8ff007cb

📥 Commits

Reviewing files that changed from the base of the PR and between 4c7d3e6 and b1bd8c6.

📒 Files selected for processing (5)
  • cub/benchmarks/bench/radix_sort/policy_selector.h
  • cub/cub/device/dispatch/kernels/kernel_radix_sort.cuh
  • cub/cub/device/dispatch/tuning/tuning_radix_sort.cuh
  • cub/test/catch2_test_device_radix_sort_env.cu
  • cub/test/catch2_test_device_radix_sort_env_api.cu

📝 Walkthrough

Summary by CodeRabbit

  • Bug Fixes
    • Updated radix sort policy configuration to use the latest partition-setting names across tuning and test paths.
    • Improved consistency in radix sort policy initialization, helping existing benchmarks and test setups continue to work with the renamed fields.

Walkthrough

Renames num_private_partitions to private_partitions in RadixSortHistogramPolicy and rank_num_private_partitions to rank_private_partitions in RadixSortOnesweepPolicy, updating equality operators, stream output, and all call sites in kernels, benchmarks, and tests to match.

Changes

Private partition field rename

Layer / File(s) Summary
Policy struct field rename
cub/cub/device/dispatch/tuning/tuning_radix_sort.cuh
RadixSortHistogramPolicy and RadixSortOnesweepPolicy members renamed, with equality operators, operator<<, and make_reg_scaled_radix_sort_onesweep_policy updated to match.
Kernel and benchmark call site updates
cub/cub/device/dispatch/kernels/kernel_radix_sort.cuh, cub/benchmarks/bench/radix_sort/policy_selector.h
Histogram and onesweep kernel policy instantiations and benchmark temp storage size calculation updated to reference the renamed fields.
Test policy initialization updates
cub/test/catch2_test_device_radix_sort_env.cu, cub/test/catch2_test_device_radix_sort_env_api.cu
Designated initializers and policy selector operators updated to use private_partitions / rank_private_partitions.

Suggested reviewers: gevtushenko, miscco

important: verify no other call sites (e.g. serialization, tuning scripts, or generated policy databases outside this diff) still reference the old field names, or this rename will fail to compile elsewhere.


Comment @coderabbitai help to get the list of available commands.

@github-actions

This comment has been minimized.

@bernhardmgruber
bernhardmgruber enabled auto-merge (squash) July 6, 2026 19:47
@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

🥳 CI Workflow Results

🟩 Finished in 10h 32m: Pass: 100%/287 | Total: 7d 13h | Max: 1h 07m | Hits: 40%/521155

See results here.

@bernhardmgruber
bernhardmgruber merged commit afe488e into NVIDIA:main Jul 6, 2026
607 of 612 checks passed
@bernhardmgruber
bernhardmgruber deleted the remove_num_in_policy branch July 7, 2026 07:12
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.

2 participants