-
Notifications
You must be signed in to change notification settings - Fork 18
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
Add experimental split constraints API #212
Conversation
Check-perf-impact results: (7a518c63eb0655471fea6a4902fc0af7) ❓ No new benchmark data submitted. ❓ |
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.
clang-tidy made some suggestions
7680a72
to
7ad0ff1
Compare
Check-perf-impact results: (5a19ced85f862a00d0114dd241122462) ❓ No new benchmark data submitted. ❓ |
7ad0ff1
to
29433eb
Compare
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!
29433eb
to
fdf0897
Compare
This adds a new experimental::constrain_split() API that can be used to limit the ways in which a kernel can be split, similar to how ND-range kernels are constrained to be split along work group boundaries.
fdf0897
to
e887460
Compare
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
This adds a new
experimental::constrain_split()
API that can be used to limit the ways in which a kernel can be split, similar to how ND-range kernels are constrained to be split along work group boundaries.The implementation is rather trivial, as it mostly reuses the already existing task geometry mechanism we have. The only addition of note is that if an ND-range kernel is additionally constrained, the effective constraint will be the last common multiple
LCM(wg-size, user-constraint)