Skip to content

Refactor radix rank sort operations#8331

Open
bernhardmgruber wants to merge 1 commit intoNVIDIA:mainfrom
bernhardmgruber:radix_refactor
Open

Refactor radix rank sort operations#8331
bernhardmgruber wants to merge 1 commit intoNVIDIA:mainfrom
bernhardmgruber:radix_refactor

Conversation

@bernhardmgruber
Copy link
Copy Markdown
Contributor

No description provided.

@bernhardmgruber bernhardmgruber requested a review from a team as a code owner April 8, 2026 18:03
@github-project-automation github-project-automation bot moved this to Todo in CCCL Apr 8, 2026
@cccl-authenticator-app cccl-authenticator-app bot moved this from Todo to In Review in CCCL Apr 8, 2026
Comment on lines 255 to 266
template <class DecomposerT>
struct min_raw_binary_key_f
{
DecomposerT decomposer;

template <class T>
_CCCL_HOST_DEVICE void operator()(T& field)
{
using traits = traits_t<::cuda::std::remove_cv_t<T>>;
using bit_ordered_type = typename traits::bit_ordered_type;
using traits = traits_t<::cuda::std::remove_cv_t<T>>;
using bit_ordered_type = typename traits::bit_ordered_type;
// TODO(bgruber): was it intended to pass decomposer here instead of identity_decomposer_t?
reinterpret_cast<bit_ordered_type&>(field) = traits::min_raw_binary_key(detail::identity_decomposer_t{});
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.

@gevtushenko was this intended to be recursive?

{
static constexpr bool value = false;
};
inline constexpr bool is_fundamental_type = false;
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 prefer if that would be something like is_decomposable

is_fundamental is already taken an means a different thing https://en.cppreference.com/w/cpp/types/is_fundamental.html

{
using traits = traits_t<::cuda::std::remove_cv_t<T>>;
using bit_ordered_type = typename traits::bit_ordered_type;
using traits = traits_t<::cuda::std::remove_cv_t<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: can we move the remove_cv into the traits_t alias?

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 8, 2026

😬 CI Workflow Results

🟥 Finished in 1h 42m: Pass: 88%/269 | Total: 5d 01h | Max: 1h 10m | Hits: 88%/171067

See results here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Review

Development

Successfully merging this pull request may close these issues.

2 participants