Skip to content

Commit 16e4ed2

Browse files
[pre-commit.ci] auto code formatting
1 parent 97bcd51 commit 16e4ed2

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

include/cuco/reduction_functors.cuh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,10 @@ class reduction_functor : detail::reduction_functor_base {
141141
value_type>::value;
142142

143143
static_assert(atomic_invocable_ || naive_invocable_,
144-
"Invalid operator signature. Valid signatures are "
145-
"(T const&, T const&)->T and (cuda::atomic<T, Scope>&, T const&)->T.");
146-
static_assert(!(__nv_is_extended_device_lambda_closure_type(Func) || __nv_is_extended_host_device_lambda_closure_type(Func)),
144+
"Invalid operator signature. Valid signatures are "
145+
"(T const&, T const&)->T and (cuda::atomic<T, Scope>&, T const&)->T.");
146+
static_assert(!(__nv_is_extended_device_lambda_closure_type(Func) ||
147+
__nv_is_extended_host_device_lambda_closure_type(Func)),
147148
"Extended __device__/__host__ __device__ lambdas are not supported."
148149
" Use a named function object instead.");
149150
};

tests/static_reduction_map/reduction_functors_test.cu

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,7 @@ TEMPLATE_TEST_CASE_SIG(
180180
(uint32_t, cuco::detail::reduce_count_impl<uint32_t>, false),
181181
(uint64_t, cuco::detail::reduce_count_impl<uint64_t>, false))
182182
{
183-
test_case_impl(
184-
cuco::reduction_functor<Func, Value>(cuco::identity_value<Value>(0)),
185-
equiv_count<Value>(),
186-
UsesExternalSync);
183+
test_case_impl(cuco::reduction_functor<Func, Value>(cuco::identity_value<Value>(0)),
184+
equiv_count<Value>(),
185+
UsesExternalSync);
187186
}

0 commit comments

Comments
 (0)