Skip to content

[SYCL] Fix PI_KERNEL_MAX_SUB_GROUP_SIZE in OpenCL backend #6849

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 23, 2022

Conversation

steffenlarsen
Copy link
Contributor

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.

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]>
@steffenlarsen steffenlarsen requested a review from a team as a code owner September 22, 2022 10:32
@steffenlarsen
Copy link
Contributor Author

/verify with intel/llvm-test-suite#1266

@steffenlarsen steffenlarsen marked this pull request as draft September 22, 2022 13:48
Signed-off-by: Larsen, Steffen <[email protected]>
@steffenlarsen
Copy link
Contributor Author

/verify with intel/llvm-test-suite#1266

@steffenlarsen steffenlarsen marked this pull request as ready for review September 22, 2022 18:39
@steffenlarsen steffenlarsen merged commit 5998d7c into intel:sycl Sep 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants