Skip to content

Commit

Permalink
Merge pull request #894 from 0x12CC/remove_get_child_group
Browse files Browse the repository at this point in the history
Remove `get_child_group` tests
  • Loading branch information
steffenlarsen authored Jun 6, 2024
2 parents 689839c + c4dd89e commit 7e1d2a2
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions tests/extension/oneapi_root_group/root_group.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ static void check_root_group_api() {
get_group_linear_range,
get_local_linear_range,
leader,
get_child_group___root_group,
get_child_group___group,
COUNT,
};
};
Expand Down Expand Up @@ -87,11 +85,6 @@ static void check_root_group_api() {
results[checks::get_local_linear_range] =
root.get_local_linear_range() == root.get_local_range().size();
results[checks::leader] = root.leader() == (root.get_local_id() == 0);

auto g = sycl::ext::oneapi::experimental::get_child_group(root);
auto sg = sycl::ext::oneapi::experimental::get_child_group(g);
results[checks::get_child_group___root_group] = g == it.get_group();
results[checks::get_child_group___group] = sg == it.get_sub_group();
};
if constexpr (UseRootSync) {
cgh.parallel_for<KernelName>(nd_range, props, kernel);
Expand Down Expand Up @@ -173,19 +166,6 @@ static void check_root_group_api() {
// leader
CHECK(std::is_same_v<decltype(std::declval<rg>().leader()), bool>);
CHECK(results[checks::leader]);

using sycl::ext::oneapi::experimental::get_child_group;

// get_child_group(root_group)
CHECK(std::is_same_v<decltype(get_child_group(std::declval<rg>())),
sycl::group<Dimensions>>);
CHECK(results[checks::get_child_group___root_group]);

// get_child_group(group)
CHECK(std::is_same_v<decltype(get_child_group(
std::declval<sycl::group<Dimensions>>())),
sycl::sub_group>);
CHECK(results[checks::get_child_group___group]);
}

template <typename KernelName, size_t... Dims>
Expand Down

0 comments on commit 7e1d2a2

Please sign in to comment.