-
Notifications
You must be signed in to change notification settings - Fork 790
[SYCL][PI] Fix PI_KERNEL_MAX_SUB_GROUP_SIZE
query for devices without sub groups
#9543
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
Conversation
…ub groups Change the fallback behavior for `PI_KERNEL_MAX_SUB_GROUP_SIZE` to return the maximum sub group size for the device, rather than the maximum work group size for the kernel, on devices where sub groups are not supported. This change makes it consistent with the result of the `PI_DEVICE_INFO_SUB_GROUP_SIZES_INTEL` query. Signed-off-by: Michael Aziz <michael.aziz@intel.com>
PI_KERNEL_MAX_SUB_GROUP_SIZE
query for devices without sub groupsPI_KERNEL_MAX_SUB_GROUP_SIZE
query for devices without sub groups
Signed-off-by: Michael Aziz <michael.aziz@intel.com>
Could you add comments in the code explaining why we need two calls to PI? I understand it's one to get the size and one to get the elements, correct me if I'm wrong. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Signed-off-by: Michael Aziz <michael.aziz@intel.com>
Signed-off-by: Michael Aziz <michael.aziz@intel.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Change the fallback behavior for
PI_KERNEL_MAX_SUB_GROUP_SIZE
to return the maximum sub group size for the device, rather than the maximum work group size for the kernel, on devices where sub groups are not supported. This change makes it consistent with the result of thePI_DEVICE_INFO_SUB_GROUP_SIZES_INTEL
query.