-
Notifications
You must be signed in to change notification settings - Fork 4
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][Graph] Add exceptions on using spec constants, kernel bundles and reductions #290
Conversation
Bensuo
commented
Aug 7, 2023
•
edited
Loading
edited
- Add exceptions when using spec constants, kernel bundles and reductions
- Unit tests for spec constants and kernel bundles.
- Refactored handler throwing code to remove templates.
- Moved and renamed unsupported features enum to graph header.
- Add exceptions when using spec constants and kernel bundles - Unit tests for both of these. - Refactored handler throwing code to remove templates. - Moved and renamed unsupported features enum to graph header.
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, I'm hopeful that removing templates from handler::throwIfGraphAssociated
will solve the Windows CI fail, but I can try verify that locally.
Yup, this branch does fix the linking error on Windows |
- Add exceptions on reduction use - Updated reduction tests to be XFAIL - Tweak exception message wording
…reble/llvm into ben/spec-const-bundle-exception
@EwanC I've also pushed changes adding exceptions for Reductions here to make use of the refactored error handling code. Tagging for re-review, sorry! |
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.
Reductions LGTM, minor comment at unittesting it
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.
In a previous PR, I changed the parametrized throwIfGraphAssociated function into a template function to be in line with other throw functions used by handle (as suggest by @reble in his comment #276 (comment) ).
I understand that changing back the template function into a parametrized function fixes the Windows compilation issue, but we should be aware that less consistent with the other throw functions of this file (and it also may impact performances as it makes the inlining of this function less intuitive for the compiler?)
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
- Also updates Linux ABI symbols
I've changed this back to a template but kept the definition in the header to avoid the template specializations 👍 |
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
…and reductions (#290) - Add exceptions when using spec constants, reductions and kernel bundles - Unit tests added for these. - Refactored handler throwing code to remove templates specializations. - Moved and renamed unsupported features enum to graph header. - Updated reduction tests to be XFAIL - Tweak exception message wording - Update ABI symbol tests. --------- Co-authored-by: Ewan Crawford <[email protected]>