-
Notifications
You must be signed in to change notification settings - Fork 734
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
[SYCL] Optional kernel features: implement split based on reqd-sub-group-size (take 2) #9928
Conversation
2ae117f
to
5d1fd71
Compare
5d1fd71
to
710fd21
Compare
llvm/test/tools/sycl-post-link/device-requirements/reqd-sub-group-size.ll
Outdated
Show resolved
Hide resolved
llvm/test/tools/sycl-post-link/device-requirements/reqd-sub-group-size.ll
Outdated
Show resolved
Hide resolved
// ReqdSubGroupSize != 1 is a WA for ESIMD, no backend | ||
// currently includes 1 as a valid sub-group size. | ||
// TODO: remove this WA when backends support this. | ||
if (ReqdSubGroupSize != 1 && |
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.
I saw that in one of previous commits you also had a check for whether the device image is a ESIMD device image - should we return it back? Just completely ignoring 1
here technically violates the spec
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.
Yea, we should - I removed it because I misunderstood why the workaround wasn't completely working in the first place, so I lightened the restriction to only check the reqd-sub-group-size
for 1. Actually, I think checking if the image is an ESIMD image suffices.
Co-authored-by: Alexey Sachkov <alexey.sachkov@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.
Overall looks good to me.
Tagging @intel/sycl-language-enabling-triage for awareness.
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.
sycl/
part LGTM
It seems post-commit started failing after this with
|
Based off #8167