Repository navigation
Implement the new tuning API for DispatchSegmentedRadixSort - #7844
Conversation
DispatchSegmentedRadixSort
9b88142 to
a77429e
Compare
2ea9d1a to
d526210
Compare
| using dispatch_t = cub:: | ||
| DispatchSegmentedRadixSort<cub::SortOrder::Ascending, key_t, value_t, begin_offset_it_t, end_offset_it_t, offset_t>; |
There was a problem hiding this comment.
Nitpick: I would not say that removing the alias is an improvement
There was a problem hiding this comment.
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
| template <typename LegacyActivePolicy> | ||
| _CCCL_API constexpr auto convert_policy() -> radix_sort_policy |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
🥳 CI Workflow Results🟩 Finished in 3h 16m: Pass: 100%/249 | Total: 5d 03h | Max: 3h 15m | Hits: 92%/154912See results here. |
cub.bench.segmented_radix_sort.keys.basefor SM75;80;90;100Fixes: #7642