Skip to content

Commit 230a2e5

Browse files
[SYCL][Reduction] Prefer fast_reduce to fast_atomics
Complementary change to intel/llvm#6890.
1 parent 18b3729 commit 230a2e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SYCL/XPTI/kernel/content.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ int main() {
3232

3333
auto sumR = reduction(sumBuf, cgh, plus<>());
3434
// Reduction kernel is used
35-
// CHECK-OPT:Node create|{{.*}}reduction{{.*}}test1{{.*}}|{{.*}}.cpp:[[# @LINE - 5 ]]:3|{1024, 1, 1}, {{{.*}}, 1, 1}, {0, 0, 0}, 7
36-
// CHECK-NOOPT:Node create|{{.*}}reduction{{.*}}test1{{.*}}|{{.*}}.cpp:[[# @LINE - 6 ]]:3|{1024, 1, 1}, {{{.*}}, 1, 1}, {0, 0, 0}, 15
35+
// CHECK-OPT:Node create|{{.*}}reduction{{.*}}test1{{.*}}|{{.*}}.cpp:[[# @LINE - 5 ]]:3|{1024, 1, 1}, {{{.*}}, 1, 1}, {0, 0, 0}, 14
36+
// CHECK-NOOPT:Node create|{{.*}}reduction{{.*}}test1{{.*}}|{{.*}}.cpp:[[# @LINE - 6 ]]:3|{1024, 1, 1}, {{{.*}}, 1, 1}, {0, 0, 0}, 26
3737
cgh.parallel_for<class test1>(
3838
range<1>{1024}, sumR,
3939
[=](id<1> idx, auto &sum) { sum += inputValues[idx]; });

0 commit comments

Comments
 (0)