Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardmgruber committed Jun 10, 2024
1 parent 253b8fb commit 35ed630
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cub/cub/device/dispatch/dispatch_merge.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,9 @@ struct DispatchMerge
// Cannot check output iterators, since they could be discard iterators, which do not have the right value_type
static_assert(::cuda::std::is_same<value_t<KeyIt2>, KeyT>::value, "");
static_assert(::cuda::std::is_same<value_t<ValueIt2>, ValueT>::value, "");
static_assert(::cuda::std::is_invocable<CompareOp, KeyT, KeyT>::value, "Comparison operator cannot compare two keys");
static_assert(::cuda::std::is_same<::cuda::std::invoke_result_t<CompareOp, KeyT, KeyT>, bool>::value,
"Comparison operator cannot compare two keys");
static_assert(::cuda::std::__invokable<CompareOp, KeyT, KeyT>::value, "Comparison operator cannot compare two keys");
static_assert(::cuda::std::is_convertible<typename ::cuda::std::__invoke_of<CompareOp, KeyT, KeyT>::type, bool>::value,
"Comparison operator must be convertible to bool");

void* d_temp_storage;
std::size_t& temp_storage_bytes;
Expand Down

0 comments on commit 35ed630

Please sign in to comment.