Skip to content

Use CL_DEVICE_MAX_WORK_GROUP_SIZES to implement sycl_ext_oneapi_max_work_group_query in UR #22931

Description

@VerenaBeckham

The sycl_ext_oneapi_max_work_group_query extension currently returns hardcoded INT_MAX values on an OpenCL backend, see

case UR_DEVICE_INFO_MAX_WORK_GROUPS_3D: {

But OpenCL has since introduced CL_DEVICE_MAX_WORK_GROUP_SIZES (see https://registry.khronos.org/OpenCL/specs/unified/html/OpenCL_API.html#CL_DEVICE_MAX_WORK_GROUP_SIZES). I believe this provides at least enough functionality to implement the max_work_groups query.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions