KhronosGroup / KhronosGroup/SYCL-Docs

Missing preferred work-group size multiple query on device

Open
#282 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
158
Forks
80
Avg merge
7d 6h
Merged PRs (30d)
5

Description

Right now it's possible to query the `kernel` for `kernel_device_specific::preferred_work_group_size_multiple` (see [Table 136. Device-specific kernel information descriptors](https://registry.khronos.org/SYCL/specs/sycl-2020/html/sycl-2020.html#_kernel_information_descriptors)), which in OpenCL corresponds to [CL_KERNEL_PREFERRED_WORK_GROUP_SIZE_MULTIPLE](https://registry.khronos.org/OpenCL/specs/3.0-unified/html/OpenCL_API.html#CL_KERNEL_PREFERRED_WORK_GROUP_SIZE_MULTIPLE), but it's not possible to query the `device` for the preferred work-group size. That number might be different, and it should be slightly easier to obtain than the kernel one. It would correspond to the OpenCL parameter [CL_DEVICE_PREFERRED_WORK_GROUP_SIZE_MULTIPLE](https://registry.khronos.org/OpenCL/specs/3.0-unified/html/OpenCL_API.html#CL_DEVICE_PREFERRED_WORK_GROUP_SIZE_MULTIPLE).

Though, the device query is specific to OpenCL 3.0, so there might need to be a way to specify a default for when the device doesn't support this query.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by comparing the existing kernel_device_specific::preferred_work_group_size_multiple documentation with the SYCL and OpenCL descriptors linked in the issue. Determine how a device-level query and a default for devices without the OpenCL 3.0 query should be specified. Done means the relevant SYCL specification text clearly defines the query and fallback behavior.

Written by the indexing model from the issue text.

Assessment

Domain
documentation
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.