-
Notifications
You must be signed in to change notification settings - Fork 130
[SYCL] Add identityless reduction test cases #1640
[SYCL] Add identityless reduction test cases #1640
Conversation
This commit adds test cases to existing tests for testing reductions where the identity is unspecified and unknown. Signed-off-by: Larsen, Steffen <[email protected]>
Signed-off-by: Larsen, Steffen <[email protected]>
/verify with intel/llvm#8562 |
template <typename Name, typename T, class BinaryOperation> | ||
void tests(queue &Q, T Identity, T Init, BinaryOperation BOp, range<1> Range) { | ||
NumErrors += test<Name>(Q, Identity, Init, BOp, Range); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit, if possible:
template <typename Name, typename... ArgTys>
void tests(ArgTys &&Args) {
NumErrors += test<Name>(std::forward<ArgTys>(Args)...);
}
Same in other places.
@@ -48,6 +53,22 @@ int main() { | |||
|
|||
tests<class C1>(Q, CustomVec<long long>(0), CustomVec<long long>(99), | |||
CustomVecPlus<long long>{}, range<2>{33, MaxWGSize}); | |||
tests<class C2>(Q, CustomVec<long long>(99), CustomVecPlus<long long>{}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we really need to keep the one with the identity param? Especially given the new test cases below to test that path.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it makes sense to test for custom types to make sure that runtime identities also work correctly for custom types.
Signed-off-by: Larsen, Steffen <[email protected]>
Signed-off-by: Larsen, Steffen <[email protected]>
Signed-off-by: Larsen, Steffen <[email protected]>
Signed-off-by: Larsen, Steffen <[email protected]>
/verify with intel/llvm#8562 |
1 similar comment
/verify with intel/llvm#8562 |
Signed-off-by: Larsen, Steffen <[email protected]>
Signed-off-by: Larsen, Steffen <[email protected]>
Some test cases are disabled temporarily due to a known bug in reductions. A patch for this will follow after intel/llvm#8562. |
Verified with intel/llvm#8562. |
Auto pulldown and update tc files for xmain-cand branch on 20230313
This commit adds test cases to existing tests for testing reductions where the identity is unspecified and unknown. --------- Signed-off-by: Larsen, Steffen <[email protected]>
) This commit adds test cases to existing tests for testing reductions where the identity is unspecified and unknown. --------- Signed-off-by: Larsen, Steffen <[email protected]>
This commit adds test cases to existing tests for testing reductions where the identity is unspecified and unknown.