Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update root_group extension tests to use new query API #985

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions tests/extension/oneapi_root_group/root_group.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ static void check_root_group_api() {
auto bundle =
sycl::get_kernel_bundle<sycl::bundle_state::executable>(q.get_context());
auto kernel = bundle.get_kernel<KernelName>();
auto local_range = sycl::range<Dimensions>(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<Dimensions>(Dims...);
auto global_range = local_range;
global_range[0] *= maxWGs;
REQUIRE(global_range.size() == local_range.size() * maxWGs);
Expand Down Expand Up @@ -175,11 +175,11 @@ static void check_root_group_barrier() {
auto bundle =
sycl::get_kernel_bundle<sycl::bundle_state::executable>(q.get_context());
auto kernel = bundle.get_kernel<KernelName>();
auto local_range = sycl::range<Dimensions>(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, 3);
REQUIRE(maxWGs >= 1);
auto local_range = sycl::range<Dimensions>(Dims...);
auto global_range = local_range;
global_range[0] *= maxWGs;
REQUIRE(global_range.size() == local_range.size() * maxWGs);
Expand Down
Loading