20 inline namespace _V1 {
21 namespace ext::oneapi::this_work_item {
23 #ifdef __SYCL_DEVICE_ONLY__
24 return sycl::detail::Builder::getElement(
29 "Free function calls are not supported on host");
34 return get_nd_item<Dimensions>().get_group();
38 #ifdef __SYCL_DEVICE_ONLY__
43 "Free function calls are not supported on host");
48 namespace ext::oneapi::experimental {
51 "use sycl::ext::oneapi::this_work_item::get_nd_item() instead")
53 return ext::oneapi::this_work_item::get_nd_item<Dims>();
58 "use sycl::ext::oneapi::this_work_item::get_work_group() instead")
59 group<Dims> this_group() {
60 return ext::oneapi::this_work_item::get_work_group<Dims>();
64 "use sycl::ext::oneapi::this_work_item::get_sub_group() instead")
71 "sycl::ext::oneapi::this_work_item::get_nd_item() instead")
72 item<Dims> this_item() {
73 #ifdef __SYCL_DEVICE_ONLY__
78 "Free function calls are not supported on host");
84 "sycl::ext::oneapi::this_work_item::get_nd_item() instead")
86 return this_item<Dims>().get_id();
A unique identifier of an item in an index space.
Identifies an instance of the function object executing at each point in a range.
Identifies an instance of the function object executing at each point in an nd_range.
__SYCL_DEPRECATED("read_image for standard unsampled images is deprecated. " "Instead use fetch_image.") DataT read_image(const unsampled_image_handle &imageHandle
[Deprecated] Read an unsampled image using its handle
sycl::sub_group get_sub_group()
nd_item< Dimensions > get_nd_item()
group< Dimensions > get_work_group()
std::error_code make_error_code(sycl::errc E) noexcept
Constructs an error code using e and sycl_category()