Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor RLE tuning #3127

Merged
merged 10 commits into from
Dec 12, 2024
Merged
2 changes: 1 addition & 1 deletion cub/benchmarks/bench/run_length_encode/encode.cu
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ static void rle(nvbench::state& state, nvbench::type_list<T, OffsetT>)
accum_t,
device_reduce_by_key_policy_hub>;
#else
using policy_t = cub::detail::device_run_length_encode_policy_hub<accum_t, T>;
using policy_t = cub::detail::rle::encode::policy_hub<accum_t, T>;
using dispatch_t = cub::DispatchReduceByKey<
keys_input_it_t,
unique_output_it_t,
Expand Down
2 changes: 1 addition & 1 deletion cub/cub/device/device_run_length_encode.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ struct DeviceRunLengthEncode

using key_t = cub::detail::non_void_value_t<UniqueOutputIteratorT, cub::detail::value_t<InputIteratorT>>;

using policy_t = detail::device_run_length_encode_policy_hub<accum_t, key_t>;
using policy_t = detail::rle::encode::policy_hub<accum_t, key_t>;

return DispatchReduceByKey<
InputIteratorT,
Expand Down
4 changes: 2 additions & 2 deletions cub/cub/device/dispatch/dispatch_rle.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,8 @@ template <typename InputIteratorT,
typename EqualityOpT,
typename OffsetT,
typename SelectedPolicy =
detail::device_non_trivial_runs_policy_hub<cub::detail::non_void_value_t<LengthsOutputIteratorT, OffsetT>,
cub::detail::value_t<InputIteratorT>>>
detail::rle::non_trivial_runs::policy_hub<cub::detail::non_void_value_t<LengthsOutputIteratorT, OffsetT>,
cub::detail::value_t<InputIteratorT>>>
struct DeviceRleDispatch
{
/******************************************************************************
Expand Down
Loading
Loading