diff --git a/tests/extension/oneapi_root_group/root_group.cpp b/tests/extension/oneapi_root_group/root_group.cpp index 70cda4ec7..c021f0fdd 100644 --- a/tests/extension/oneapi_root_group/root_group.cpp +++ b/tests/extension/oneapi_root_group/root_group.cpp @@ -31,11 +31,11 @@ static void check_root_group_api() { auto bundle = sycl::get_kernel_bundle(q.get_context()); auto kernel = bundle.get_kernel(); + auto local_range = sycl::range(Dims...); auto maxWGs = kernel.template ext_oneapi_get_info< sycl::ext::oneapi::experimental::info::kernel_queue_specific:: - max_num_work_group_sync>(q); + max_num_work_groups>(q, local_range, 0); REQUIRE(maxWGs >= 1); - auto local_range = sycl::range(Dims...); auto global_range = local_range; global_range[0] *= maxWGs; REQUIRE(global_range.size() == local_range.size() * maxWGs); @@ -175,11 +175,11 @@ static void check_root_group_barrier() { auto bundle = sycl::get_kernel_bundle(q.get_context()); auto kernel = bundle.get_kernel(); + auto local_range = sycl::range(Dims...); auto maxWGs = kernel.template ext_oneapi_get_info< sycl::ext::oneapi::experimental::info::kernel_queue_specific:: - max_num_work_group_sync>(q); + max_num_work_groups>(q, local_range, 0); REQUIRE(maxWGs >= 1); - auto local_range = sycl::range(Dims...); auto global_range = local_range; global_range[0] *= maxWGs; REQUIRE(global_range.size() == local_range.size() * maxWGs);