From 234a5c8f6267e2b531e5ef1ac76729d1d280cdb0 Mon Sep 17 00:00:00 2001 From: Andrei Elovikov Date: Thu, 18 Aug 2022 11:44:17 -0700 Subject: [PATCH] [SYCL] Adjust XPTI/kernel/content.cpp for https://github.com/intel/llvm/pull/6601 https://github.com/intel/llvm/pull/6601 increases number of captured variable and thus number of kernel arguments for reductions. Modify the CHECKs accordingly. --- 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 a2cd7a51a0..e96411cd8e 100644 --- a/SYCL/XPTI/kernel/content.cpp +++ b/SYCL/XPTI/kernel/content.cpp @@ -32,8 +32,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}, 6 - // CHECK-NOOPT:Node create|{{.*}}reduction{{.*}}test1{{.*}}|{{.*}}.cpp:[[# @LINE - 6 ]]:3|{1024, 1, 1}, {{{.*}}, 1, 1}, {0, 0, 0}, 14 + // CHECK-OPT:Node create|{{.*}}reduction{{.*}}test1{{.*}}|{{.*}}.cpp:[[# @LINE - 5 ]]:3|{1024, 1, 1}, {{{.*}}, 1, 1}, {0, 0, 0}, 7 + // CHECK-NOOPT:Node create|{{.*}}reduction{{.*}}test1{{.*}}|{{.*}}.cpp:[[# @LINE - 6 ]]:3|{1024, 1, 1}, {{{.*}}, 1, 1}, {0, 0, 0}, 15 cgh.parallel_for( range<1>{1024}, sumR, [=](id<1> idx, auto &sum) { sum += inputValues[idx]; });