Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

[SYCL] Add tests for reductions skipping reducer combines #1697

Open
wants to merge 2 commits into
base: intel
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix formatting
Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
steffenlarsen committed Mar 27, 2023
commit 8c260260df8fe6a5b38afdf42f0a5eac9f3a9cbf
15 changes: 5 additions & 10 deletions SYCL/Reduction/reduction_utils.hpp
Original file line number Diff line number Diff line change
@@ -307,8 +307,7 @@ auto init_to_identity() {

template <typename Name, typename T, bool HasIdentity, class BinaryOperation,
template <int> typename RangeTy, int Dims,
typename PropListTy = property_list,
typename IdFilterFuncT = AllIdOp>
typename PropListTy = property_list, typename IdFilterFuncT = AllIdOp>
int testInner(queue &Q, OptionalIdentity<T, HasIdentity> Identity, T Init,
BinaryOperation BOp, const RangeTy<Dims> &Range,
PropListTy PropList = {}, IdFilterFuncT IdFilterFunc = {}) {
@@ -396,8 +395,7 @@ int testInner(queue &Q, OptionalIdentity<T, HasIdentity> Identity, T Init,

template <typename Name, typename T, class BinaryOperation,
template <int> typename RangeTy, int Dims,
typename PropListTy = property_list,
typename IdFilterFuncT = AllIdOp>
typename PropListTy = property_list, typename IdFilterFuncT = AllIdOp>
int test(queue &Q, T Identity, T Init, BinaryOperation BOp,
const RangeTy<Dims> &Range, PropListTy PropList = {},
IdFilterFuncT IdFilterFunc = {}) {
@@ -407,8 +405,7 @@ int test(queue &Q, T Identity, T Init, BinaryOperation BOp,

template <typename Name, typename T, class BinaryOperation,
template <int> typename RangeTy, int Dims,
typename PropListTy = property_list,
typename IdFilterFuncT = AllIdOp>
typename PropListTy = property_list, typename IdFilterFuncT = AllIdOp>
int test(queue &Q, T Init, BinaryOperation BOp, const RangeTy<Dims> &Range,
PropListTy PropList = {}, IdFilterFuncT IdFilterFunc = {}) {
return testInner<Name>(Q, OptionalIdentity<T>(), Init, BOp, Range, PropList);
@@ -518,8 +515,7 @@ int testUSMInner(queue &Q, OptionalIdentity<T, HasIdentity> Identity, T Init,
}

template <typename Name, typename T, class BinaryOperation, int Dims,
typename PropListTy = property_list,
typename IdFilterFuncT = AllIdOp>
typename PropListTy = property_list, typename IdFilterFuncT = AllIdOp>
int testUSM(queue &Q, T Identity, T Init, BinaryOperation BOp,
const range<Dims> &Range, usm::alloc AllocType,
property_list PropList = {}, IdFilterFuncT IdFilterFunc = {}) {
@@ -528,8 +524,7 @@ int testUSM(queue &Q, T Identity, T Init, BinaryOperation BOp,
}

template <typename Name, typename T, class BinaryOperation, int Dims,
typename PropListTy = property_list,
typename IdFilterFuncT = AllIdOp>
typename PropListTy = property_list, typename IdFilterFuncT = AllIdOp>
int testUSM(queue &Q, T Init, BinaryOperation BOp, const range<Dims> &Range,
usm::alloc AllocType, property_list PropList = {},
IdFilterFuncT IdFilterFunc = {}) {