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.
The
sycl_ext_oneapi_max_work_group_queryextension currently returns hardcoded INT_MAX values on an OpenCL backend, seellvm/unified-runtime/source/adapters/opencl/device.cpp
Line 256 in 65ac067
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 themax_work_groupsquery.