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

[SYCL][Reduction] Adjust ctor tests for reducer element #1672

Open
wants to merge 1 commit into
base: intel
Choose a base branch
from
Open
Changes from all commits
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
4 changes: 2 additions & 2 deletions SYCL/Reduction/reduction_ctor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ void test_reducer(Reduction &Redu, T A, T B) {

typename Reduction::binary_operation BOp;
T ExpectedValue = BOp(A, B);
assert(ExpectedValue == detail::ReducerAccess{Reducer}.getElement(0) &&
assert(ExpectedValue == *detail::ReducerAccess{Reducer}.getElement(0) &&
"Wrong result of binary operation.");
assert(
toBool(Reducer.identity() == Redu.getIdentityContainer().getIdentity()) &&
Expand All @@ -40,7 +40,7 @@ void test_reducer(Reduction &Redu, T Identity, BinaryOperation BOp, T A, T B) {

T ExpectedValue = BOp(A, B);
assert(
toBool(ExpectedValue == detail::ReducerAccess{Reducer}.getElement(0)) &&
toBool(ExpectedValue == *detail::ReducerAccess{Reducer}.getElement(0)) &&
"Wrong result of binary operation.");
assert(
toBool(Reducer.identity() == Redu.getIdentityContainer().getIdentity()) &&
Expand Down