Skip to content

Commit 0be594f

Browse files
[SYCL][NFC] Fix unused arguments in reductions (#6092)
Signed-off-by: Larsen, Steffen <[email protected]>
1 parent 35c2e00 commit 0be594f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

sycl/include/CL/sycl/reduction.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ std::enable_if_t<Extent != dynamic_extent &&
143143
T, BinaryOperation, 1, Extent,
144144
ext::oneapi::detail::default_reduction_algorithm<
145145
true, access::placeholder::false_t, 1>>>
146-
reduction(span<T, Extent> Span, BinaryOperation,
146+
reduction(span<T, Extent>, BinaryOperation,
147147
const property_list &PropList = {}) {
148148
// TODO: implement reduction that works even when identity is not known.
149149
(void)PropList;

sycl/include/sycl/ext/oneapi/reduction.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2116,7 +2116,7 @@ void reduCGFuncImplArray(
21162116
ReduTupleT<OutAccT...> OutAccsTuple, std::tuple<ReducerT...> &ReducersTuple,
21172117
ReduTupleT<Ts...> IdentitiesTuple, ReduTupleT<BOPsT...> BOPsTuple,
21182118
std::array<bool, sizeof...(Reductions)> InitToIdentityProps,
2119-
std::index_sequence<Is...> ReduIndices) {
2119+
std::index_sequence<Is...>) {
21202120
using ReductionPack = std::tuple<Reductions...>;
21212121
(reduCGFuncImplArrayHelper<Pow2WG, IsOneWG,
21222122
std::tuple_element_t<Is, ReductionPack>>(
@@ -2419,7 +2419,7 @@ void reduAuxCGFuncImplArray(
24192419
ReduTupleT<InAccT...> InAccsTuple, ReduTupleT<OutAccT...> OutAccsTuple,
24202420
ReduTupleT<Ts...> IdentitiesTuple, ReduTupleT<BOPsT...> BOPsTuple,
24212421
std::array<bool, sizeof...(Reductions)> InitToIdentityProps,
2422-
std::index_sequence<Is...> ReduIndices) {
2422+
std::index_sequence<Is...>) {
24232423
using ReductionPack = std::tuple<Reductions...>;
24242424
(reduAuxCGFuncImplArrayHelper<UniformPow2WG, IsOneWG,
24252425
std::tuple_element_t<Is, ReductionPack>>(

0 commit comments

Comments
 (0)