Skip to content

Implement the new tuning API for DispatchSegmentedRadixSort - #7844

Merged
bernhardmgruber merged 9 commits into
NVIDIA:mainfrom
bernhardmgruber:tuning_segmented_radix
Mar 2, 2026
Merged

bernhardmgruber merged 9 commits into
NVIDIA:mainfrom
bernhardmgruber:tuning_segmented_radix

Conversation

@bernhardmgruber

@bernhardmgruber bernhardmgruber commented Mar 2, 2026 •

Copy link
Copy Markdown
Contributor
  • No SASS changes for cub.bench.segmented_radix_sort.keys.base for SM75;80;90;100

Fixes: #7642

@bernhardmgruber
bernhardmgruber requested review from a team as code owners March 2, 2026 10:08
@github-project-automation github-project-automation Bot moved this to Todo in CCCL Mar 2, 2026
@bernhardmgruber bernhardmgruber changed the title Implement the new tuning API for DispatchSegmentedRadixSort Implement the new tuning API for DispatchSegmentedRadixSort Mar 2, 2026
@cccl-authenticator-app cccl-authenticator-app Bot moved this from Todo to In Review in CCCL Mar 2, 2026
@bernhardmgruber
bernhardmgruber force-pushed the tuning_segmented_radix branch from 9b88142 to a77429e Compare March 2, 2026 10:11
@bernhardmgruber
bernhardmgruber force-pushed the tuning_segmented_radix branch from 2ea9d1a to d526210 Compare March 2, 2026 10:16
Comment on lines -22 to -23
using dispatch_t = cub::
DispatchSegmentedRadixSort<cub::SortOrder::Ascending, key_t, value_t, begin_offset_it_t, end_offset_it_t, offset_t>;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick: I would not say that removing the alias is an improvement

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But we are no longer using the DispatchSegmentedRadixSort struct, but the new dispatch function. I can create a function pointer here, but then we loose deduction of all template arguments but the first two :S

Comment on lines +932 to +933
template <typename LegacyActivePolicy>
_CCCL_API constexpr auto convert_policy() -> radix_sort_policy

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Question: When do we actually deprecate those? We should set a definite version where we mark those as deprecated so that users have a clear path forward before 4.0

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can deprecate them when #7465 is done, because then users no longer need to rely on passing custom policy hubs to dispatchers. They can use the public tuning API and we can issue warnings if they use anything else.

@bernhardmgruber
bernhardmgruber enabled auto-merge (squash) March 2, 2026 14:45
@github-actions

github-actions Bot commented Mar 2, 2026

Copy link
Copy Markdown
Contributor

🥳 CI Workflow Results

🟩 Finished in 3h 16m: Pass: 100%/249 | Total: 5d 03h | Max: 3h 15m | Hits: 92%/154912

See results here.

@bernhardmgruber
bernhardmgruber merged commit 20b92ee into NVIDIA:main Mar 2, 2026
266 checks passed
@bernhardmgruber
bernhardmgruber deleted the tuning_segmented_radix branch March 2, 2026 18:03
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.

Implement the new tuning API for DispatchSegmentedRadixSort

3 participants