llvm icon indicating copy to clipboard operation
llvm copied to clipboard

[SYCL] Fix PI_KERNEL_MAX_SUB_GROUP_SIZE in OpenCL backend

Open steffenlarsen opened this issue 2 years ago • 2 comments

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.

steffenlarsen avatar Sep 22 '22 10:09 steffenlarsen

/verify with https://github.com/intel/llvm-test-suite/pull/1266

steffenlarsen avatar Sep 22 '22 10:09 steffenlarsen

/verify with https://github.com/intel/llvm-test-suite/pull/1266

steffenlarsen avatar Sep 22 '22 14:09 steffenlarsen