Skip to content

Commit

Permalink
Clarify fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardmgruber committed Feb 5, 2025
1 parent 5396ff9 commit c6bc9df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cub/cub/device/dispatch/tuning/tuning_run_length_encode.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -568,8 +568,8 @@ struct sm100_tuning<LengthT, KeyT, primitive_length::yes, primitive_key::yes, le
static constexpr CacheLoadModifier load_modifier = LOAD_DEFAULT;
using delay_constructor = detail::exponential_backoff_constructor_t<28, 520>;
};

// need to default it back explicitly because it regresses
// Fall back to Policy900 for double, because that one performs better than the above tuning (same key_size)
// TODO(bgruber): in C++20 put a requires(!std::is_same_v<KeyT, double>) onto the above tuning and delete this one
template <class LengthT>
struct sm100_tuning<LengthT, double, primitive_length::yes, primitive_key::yes, length_size::_4, key_size::_8>
: sm90_tuning<LengthT, double, primitive_length::yes, primitive_key::yes, length_size::_4, key_size::_8>
Expand Down

0 comments on commit c6bc9df

Please sign in to comment.