Commit 5998d7c
authored
[SYCL] Fix PI_KERNEL_MAX_SUB_GROUP_SIZE in OpenCL backend (#6849)
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.
Signed-off-by: Larsen, Steffen <[email protected]>1 parent 4d0df22 commit 5998d7c
1 file changed
+16
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
865 | 865 | | |
866 | 866 | | |
867 | 867 | | |
868 | | - | |
869 | | - | |
870 | | - | |
871 | | - | |
872 | | - | |
873 | | - | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
874 | 874 | | |
875 | 875 | | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
876 | 886 | | |
877 | 887 | | |
878 | 888 | | |
| |||
0 commit comments