llvm
llvm copied to clipboard
[SYCL] Fix PI_KERNEL_MAX_SUB_GROUP_SIZE in OpenCL backend
Currently PI_KERNEL_MAX_SUB_GROUP_SIZE in the PI OpenCL backend uses the max work item sizes as the input to the corresponding OpenCL query to avoid truncation. However, using the max work item sizes in all dimensions may exceed the total max work items limitations. To prevent this limit from being exceeded, this commit changes the query to only use the max work-item size in the first dimension and using 1s in the other dimensions.
/verify with https://github.com/intel/llvm-test-suite/pull/1266
/verify with https://github.com/intel/llvm-test-suite/pull/1266