Skip to content

Commit

Permalink
Not that good
Browse files Browse the repository at this point in the history
  • Loading branch information
gevtushenko committed Jun 7, 2023
1 parent 0cf1181 commit 3534daa
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions cub/device/dispatch/dispatch_scan.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ struct sm90_tuning
static constexpr int threads = 128;
static constexpr int items = 15;

using delay_constructor = detail::exponential_backoff_constructor_t<32, 1140>;
using delay_constructor = detail::default_delay_constructor_t<AccumT>;
};

template <class AccumT>
Expand All @@ -235,28 +235,22 @@ struct sm90_tuning<AccumT, 2, true>
using delay_constructor = detail::fixed_delay_constructor_t<376, 1125>;
};

template <class AccumT, bool Primitive>
struct sm90_tuning<AccumT, 4, Primitive>
template <class AccumT>
struct sm90_tuning<AccumT, 4, true>
{
static constexpr int threads = 128;
static constexpr int items = 24;

using delay_constructor =
cub::detail::conditional_t<Primitive,
detail::fixed_delay_constructor_t<648, 1245>,
detail::exponential_backoff_constructor_t<64, 1245>>;
using delay_constructor = detail::fixed_delay_constructor_t<648, 1245>;
};

template <class AccumT, bool Primitive>
struct sm90_tuning<AccumT, 8, Primitive>
template <class AccumT>
struct sm90_tuning<AccumT, 8, true>
{
static constexpr int threads = 224;
static constexpr int items = 24;

using delay_constructor =
cub::detail::conditional_t<Primitive,
detail::fixed_delay_constructor_t<632, 1290>,
detail::exponential_backoff_constructor_t<64, 1290>>;
using delay_constructor = detail::fixed_delay_constructor_t<632, 1290>;
};

#if CUB_IS_INT128_ENABLED
Expand Down

0 comments on commit 3534daa

Please sign in to comment.