We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac59ae0 commit 81d2657Copy full SHA for 81d2657
sycl/include/CL/sycl/intel/reduction.hpp
@@ -394,6 +394,7 @@ class reduction_impl {
394
enable_if_t<IsKnownIdentityOp<_T, _BinaryOperation>::value> * = nullptr>
395
reduction_impl(accessor_type &Acc, const T &Identity)
396
: MAcc(Acc), MIdentity(getIdentity()) {
397
+ (void)Identity;
398
assert(Acc.get_count() == 1 &&
399
"Only scalar/1-element reductions are supported now.");
400
// For now the implementation ignores the identity value given by user
0 commit comments