From bd8b4ccd7857b020b7fa736f3fb2107f4b949d51 Mon Sep 17 00:00:00 2001 From: "Larsen, Steffen" Date: Thu, 26 May 2022 05:38:11 -0700 Subject: [PATCH] [SYCL][XPTI] Increase number of expected args in reduction Signed-off-by: Larsen, Steffen --- SYCL/XPTI/kernel/content.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SYCL/XPTI/kernel/content.cpp b/SYCL/XPTI/kernel/content.cpp index 17d6b055ec..87a94a6076 100644 --- a/SYCL/XPTI/kernel/content.cpp +++ b/SYCL/XPTI/kernel/content.cpp @@ -29,8 +29,8 @@ int main() { auto sumR = reduction(sumBuf, cgh, plus<>()); // Reduction kernel is used - // CHECK-OPT:Node create|{{.*}}reduction{{.*}}test1{{.*}}|{{.*}}.cpp:[[# @LINE - 5 ]]:3|{1024, 1, 1}, {{{.*}}, 1, 1}, {0, 0, 0}, 5 - // CHECK-NOOPT:Node create|{{.*}}reduction{{.*}}test1{{.*}}|{{.*}}.cpp:[[# @LINE - 6 ]]:3|{1024, 1, 1}, {{{.*}}, 1, 1}, {0, 0, 0}, 13 + // CHECK-OPT:Node create|{{.*}}reduction{{.*}}test1{{.*}}|{{.*}}.cpp:[[# @LINE - 5 ]]:3|{1024, 1, 1}, {{{.*}}, 1, 1}, {0, 0, 0}, 6 + // CHECK-NOOPT:Node create|{{.*}}reduction{{.*}}test1{{.*}}|{{.*}}.cpp:[[# @LINE - 6 ]]:3|{1024, 1, 1}, {{{.*}}, 1, 1}, {0, 0, 0}, 14 cgh.parallel_for( range<1>{1024}, sumR, [=](id<1> idx, auto &sum) { sum += inputValues[idx]; });