-
Notifications
You must be signed in to change notification settings - Fork 790
[SYCL] Implement latest version of sycl_ext_oneapi_free_function_queries #13257
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
[SYCL] Implement latest version of sycl_ext_oneapi_free_function_queries #13257
Conversation
- Implement latest revision of the proposed extension - Deprecate `sycl::ext::oneapi::experimental::` interfaces - Remove old deprecated interfaces from `sycl::` namespace
d143fad
to
66b21e8
Compare
sycl/test/basic_tests/free_function_queries/free_function_queries_interface.cpp
Outdated
Show resolved
Hide resolved
namespace this_kernel { | ||
template <int Dimensions> root_group<Dimensions> get_root_group() { | ||
return this_nd_item<Dimensions>().ext_oneapi_get_root_group(); | ||
return sycl::ext::oneapi::this_work_item::this_nd_item<Dimensions>() | ||
.ext_oneapi_get_root_group(); | ||
} | ||
} // namespace this_kernel |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a note: We should update the root_group
extension, too. This function should be defined as this_work_item::get_root_group()
to match the others.
ping @KseniyaTikhomirova , @intel/llvm-reviewers-runtime |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
results_acc[0] = that_nd_item == nd_i; | ||
auto nd_item_group = that_nd_item.get_group(); | ||
results_acc[1] = | ||
nd_item_group == sycl::ext::oneapi::experimental::this_group<1>(); | ||
nd_item_group == | ||
sycl::ext::oneapi::this_work_item::get_work_group<1>(); | ||
auto nd_item_id = that_nd_item.get_global_id(); | ||
results_acc[2] = | ||
nd_item_id == sycl::ext::oneapi::experimental::this_id<1>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"this_id" usage - should it be updated too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, these are deprecated interfaces and don't have corresponding overloads in the new spec.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should it be removed then?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The extension specification marks them as deprecated without providing an alternative. That is part of the change in this PR. We will only be able to remove 2025.1 or later.
sycl::ext::oneapi::experimental::
interfacessycl::
namespace