Skip to content

Commit 68a84f0

Browse files
committed
adjust test
Signed-off-by: Sidorov, Dmitry <[email protected]>
1 parent 1aeedf7 commit 68a84f0

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

sycl/test/check_device_code/narrow-barrier-explicit-spirv-call.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,17 @@ struct GroupBarrierKernel {
3232
local[i] = i;
3333
}
3434

35-
sycl::group_barrier(it.get_group());
35+
__spirv_ControlBarrier(/*WG scope*/ 2, /*WG scope*/ 2,
36+
/*global + local*/ 912);
3637
for (int offset = 1; offset < item_range; offset *= 2) {
3738
local[item_id] += local[item_id + offset];
38-
__spirv_ControlBarrier(2, 2, 912);
39+
__spirv_ControlBarrier(/*WG scope*/ 2, /*WG scope*/ 2,
40+
/*global + local*/ 912);
3941
}
4042

4143
if (it.get_group().leader()) {
42-
__spirv_ControlBarrier(2, 2, 912);
44+
__spirv_ControlBarrier(/*WG scope*/ 2, /*WG scope*/ 2,
45+
/*global + local*/ 912);
4346
sum[group_id] = local[0];
4447
}
4548
}

0 commit comments

Comments
 (0)