KhronosGroup / KhronosGroup/SYCL-Docs

info::kernel_device_specific::max_sub_group_size on backends with work-group size dependence

Open
#287 3 comments 0 reactions 1 assignee Claimed by @Pennycook View on GitHub
enhancement
Dominant language
JavaScript
Stars
158
Forks
80
Avg merge
7d 6h
Merged PRs (30d)
5

Description

On OpenCL the closest parallel to `kernel::get_info(device)` is [`clGetKernelSubGroupInfo` with `CL_​KERNEL_​MAX_​SUB_​GROUP_​SIZE_​FOR_​NDRANGE`](https://registry.khronos.org/OpenCL/sdk/2.2/docs/man/html/clGetKernelSubGroupInfo.html). However, this particular information query requires information about the size of the work-group that the returned sub-group size is a max for. However, the SYCL 2020 specification only states:

> Returns the maximum sub-group size for this kernel.

for [`info::kernel_device_specific::max_sub_group_size`](https://registry.khronos.org/SYCL/specs/sycl-2020/html/sycl-2020.html#_kernel_information_descriptors). In a case like this, what work-group size is it the max sub-group size for? Should this be clarified?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.