Skip to content

Commit 005411b

Browse files
Apply feedback from elstehle
1 parent b399c4f commit 005411b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

cub/benchmarks/bench/scan/exclusive/by_key.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ static void scan(nvbench::state& state, nvbench::type_list<KeyT, ValueT, OffsetT
8484
using val_input_it_t = const ValueT*;
8585
using val_output_it_t = ValueT*;
8686
using equality_op_t = ::cuda::std::equal_to<>;
87-
using offset_t = ::cuda::std::make_unsigned_t<OffsetT>;
87+
using offset_t = cub::detail::choose_offset_t<OffsetT>;
8888

8989
#if !TUNE_BASE
9090
using policy_t = policy_hub_t;

cub/cub/device/dispatch/dispatch_scan.cuh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,8 @@ template <
165165
typename KernelLauncherFactory = detail::TripleChevronFactory>
166166
struct DispatchScan
167167
{
168-
static_assert(::cuda::std::is_unsigned_v<OffsetT>, "DispatchScan only supports unsigned offset types");
168+
static_assert(::cuda::std::is_unsigned_v<OffsetT> && sizeof(OffsetT) >= 4,
169+
"DispatchScan only supports unsigned offset types of at least 4-bytes");
169170

170171
//---------------------------------------------------------------------
171172
// Constants and Types

0 commit comments

Comments
 (0)