From 033457548d1e6ec99b7b99c4e9c4eab299c60da2 Mon Sep 17 00:00:00 2001 From: "Larsen, Steffen" Date: Tue, 21 Mar 2023 03:26:07 -0700 Subject: [PATCH] [SYCL][Reduction] Adjust ctor tests for reducer element New changes seek to add the notion of a "reducer element" to reducers in an attempt to unify handling of handling of reductions with and without identities. This commit adjusts the ctor test according to these changes. Signed-off-by: Larsen, Steffen --- SYCL/Reduction/reduction_ctor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SYCL/Reduction/reduction_ctor.cpp b/SYCL/Reduction/reduction_ctor.cpp index 6ee4fa48b3..d7eb0f9c3b 100644 --- a/SYCL/Reduction/reduction_ctor.cpp +++ b/SYCL/Reduction/reduction_ctor.cpp @@ -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()) && @@ -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()) &&