Skip to content

Commit 0dd4f80

Browse files
[SYCL] Adjust XPTI/kernel/content.cpp to pass on more HW (#9542)
Reduction strategy is HW-dependent and as such number of kernel arguments vary between devices.
1 parent 80f050c commit 0dd4f80

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

sycl/test-e2e/XPTI/kernel/content.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@ int main() {
2828
auto inputValues = valuesBuf.get_access<access_mode::read>(cgh);
2929

3030
auto sumR = reduction(sumBuf, cgh, plus<>());
31-
// Reduction kernel is used
32-
// CHECK-OPT:Node create|{{.*}}reduction{{.*}}test1{{.*}}|{{.*}}.cpp:[[# @LINE - 5 ]]:3|{{{.*}}, 1, 1}, {{{.*}}, 1, 1}, {0, 0, 0}, 15
33-
// CHECK-NOOPT:Node create|{{.*}}reduction{{.*}}test1{{.*}}|{{.*}}.cpp:[[# @LINE - 6 ]]:3|{{{.*}}, 1, 1}, {{{.*}}, 1, 1}, {0, 0, 0}, 26
31+
// Reduction kernel is used, strategy and hence number of kernel arguments
32+
// is hw-dependent.
33+
// CHECK-OPT:Node create|{{.*}}reduction{{.*}}test1{{.*}}|{{.*}}.cpp:[[# @LINE - 6 ]]:3|{{{.*}}, 1, 1}, {{{.*}}, 1, 1}, {0, 0, 0}, {{1.*}}
34+
// CHECK-NOOPT:Node create|{{.*}}reduction{{.*}}test1{{.*}}|{{.*}}.cpp:[[# @LINE - 7 ]]:3|{{{.*}}, 1, 1}, {{{.*}}, 1, 1}, {0, 0, 0}, {{2.*}}
3435
cgh.parallel_for<class test1>(
3536
range<1>{1024}, sumR,
3637
[=](id<1> idx, auto &sum) { sum += inputValues[idx]; });

0 commit comments

Comments
 (0)