Important
|
This specification is a draft. |
Note
|
Khronos® is a registered trademark and SYCL™ and SPIR™ are trademarks of The Khronos Group Inc. OpenCL™ is a trademark of Apple Inc. used by permission by Khronos. |
Note
|
This document is better viewed when rendered as html with asciidoctor. GitHub does not render image icons. |
This document describes an extension that adds features for SYCL work items and groups to be available globally.
Working Draft
This is a preview extension specification, intended to provide early access to a feature for review and community feedback. When the feature matures, this specification may be released as a formal extension.
Because the interfaces defined by this specification are not final and are subject to change they are not intended to be used by shipping software products.
Ruslan Arutyunyan, Intel (ruslan 'dot' arutyunyan 'at' intel 'dot' com)
John Pennycook, Intel (john 'dot' pennycook 'at' intel 'dot' com)
template <int dimensions>
id<dimensions> this_id(); |
Returns the
If prerequisites are not fulfilled the behavior is undefined |
template <int dimensions>
item<dimensions> this_item(); |
Returns the
If prerequisites are not fulfilled the behavior is undefined |
template <int dimensions>
nd_item<dimensions> this_nd_item(); |
Returns the
If prerequisites are not fulfilled the behavior is undefined |
template <int dimensions>
group<dimensions> this_group(); |
Returns the
If prerequisites are not fulfilled the behavior is undefined |
sub_group this_sub_group(); |
Returns the
If prerequisites are not fulfilled the behavior is undefined |
This extension provides a feature-test macro as described in the core SYCL
specification section 6.3.3 "Feature test macros". Therefore, an implementation
supporting this extension must predefine the macro SYCL_EXT_ONEAPI_FREE_FUNCTION_QUERIES
to one of the values defined in the table below. Applications can test for the
existence of this macro to determine if the implementation supports this
feature, or applications can test the macro’s value to determine which of the
extension’s APIs the implementation supports.
Value | Description |
---|---|
1 |
Initial extension version. Base features are supported. |