Skip to content

Commit 3285e0f

Browse files
authored
[SYCL][Doc] Clarify ways to set sub-group sizes (#10118)
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 <[email protected]>
1 parent 693caa5 commit 3285e0f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

sycl/doc/extensions/proposed/sycl_ext_oneapi_named_sub_group_sizes.asciidoc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
== Notice
2121

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

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

215+
The `sub_group_size`, `sub_group_size_primary` and `sub_group_size_automatic`
216+
properties can be associated with a kernel launch using one of the overloaded
217+
kernel invocation commands or associated with a kernel definition using the
218+
`get(properties_tag)` mechanism. The properties can be associated with a device
219+
function using the `SYCL_EXT_ONEAPI_FUNCTION_PROPERTY` macro.
220+
215221
There are special requirements whenever a device function defined in one
216222
translation unit makes a call to a device function that is defined in a second
217223
translation unit. In such a case, the second device function is always declared

0 commit comments

Comments
 (0)