Skip to content

Commit 4615064

Browse files
bb-syclactions-usersarnex
authored andcommitted
[GHA] Uplift Linux GPU RT version to 25.18.33578.6 (#18673)
Scheduled drivers uplift --------- Signed-off-by: Sarnie, Nick <[email protected]> Co-authored-by: GitHub Actions <[email protected]> Co-authored-by: Sarnie, Nick <[email protected]>
1 parent 5057bdb commit 4615064

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

sycl/test-e2e/ESIMD/group_barrier.cpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
namespace syclex = sycl::ext::oneapi::experimental;
2020

21-
static constexpr int WorkGroupSize = 16;
21+
static constexpr int WorkGroupSize = 32;
2222

2323
static constexpr int VL = 16;
2424

@@ -33,20 +33,18 @@ template <bool UseThisWorkItemAPI> bool test(sycl::queue &q) {
3333
auto Bundle =
3434
sycl::get_kernel_bundle<sycl::bundle_state::executable>(q.get_context());
3535
auto Kernel = Bundle.template get_kernel<MyKernel<UseThisWorkItemAPI>>();
36-
sycl::range<1> LocalRange{WorkGroupSize};
36+
sycl::range<3> LocalRange{WorkGroupSize, 1, 1};
3737
auto MaxWGs = Kernel.template ext_oneapi_get_info<
3838
syclex::info::kernel_queue_specific::max_num_work_groups>(q, LocalRange,
3939
0);
4040
auto GlobalRange = LocalRange;
41-
GlobalRange[0] *= MaxWGs / VL;
4241
size_t WorkItemCount = GlobalRange.size() * VL;
4342
sycl::buffer<int> DataBuf{WorkItemCount};
44-
const auto Range = sycl::nd_range<1>{GlobalRange, LocalRange};
45-
43+
const auto Range = sycl::nd_range<3>{GlobalRange, LocalRange};
4644
q.submit([&](sycl::handler &h) {
4745
sycl::accessor Data{DataBuf, h};
4846
h.parallel_for<MyKernel<UseThisWorkItemAPI>>(
49-
Range, Props, [=](sycl::nd_item<1> it) SYCL_ESIMD_KERNEL {
47+
Range, Props, [=](sycl::nd_item<3> it) SYCL_ESIMD_KERNEL {
5048
int ID = it.get_global_linear_id();
5149
__ESIMD_NS::simd<int, VL> V(ID, 1);
5250
// Write data to another kernel's data to verify the barrier works.

0 commit comments

Comments
 (0)