Skip to content

Commit

Permalink
[SYCL][Doc] Clarify ways to set sub-group sizes (intel#10118)
Browse files Browse the repository at this point in the history
The sycl_ext_oneapi_kernel_properties extension doesn't explain that the
various sub-group size properties are compatible with the
SYCL_EXT_ONEAPI_FUNCTION_PROPERTY macro, so clarify that in
sycl_ext_oneapi_named_sub_group_sizes.

Signed-off-by: John Pennycook <john.pennycook@intel.com>
  • Loading branch information
Pennycook authored Jun 28, 2023
1 parent 693caa5 commit 3285e0f
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
== Notice

[%hardbreaks]
Copyright (C) 2019-2022 Intel Corporation. All rights reserved.
Copyright (C) 2019-2023 Intel Corporation. All rights reserved.

Khronos(R) is a registered trademark and SYCL(TM) and SPIR(TM) are trademarks
of The Khronos Group Inc. OpenCL(TM) is a trademark of Apple Inc. used by
Expand Down Expand Up @@ -212,6 +212,12 @@ NOTE: No special handling is required to detect this case, since
`sub_group_size_primary` and `sub_group_size_automatic` are simply named
shorthands for properties associated with `sub_group_size_key`.

The `sub_group_size`, `sub_group_size_primary` and `sub_group_size_automatic`
properties can be associated with a kernel launch using one of the overloaded
kernel invocation commands or associated with a kernel definition using the
`get(properties_tag)` mechanism. The properties can be associated with a device
function using the `SYCL_EXT_ONEAPI_FUNCTION_PROPERTY` macro.

There are special requirements whenever a device function defined in one
translation unit makes a call to a device function that is defined in a second
translation unit. In such a case, the second device function is always declared
Expand Down

0 comments on commit 3285e0f

Please sign in to comment.