-
Notifications
You must be signed in to change notification settings - Fork 771
[SYCL] Add SYCL registered kernel metadata into property sets #16821
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] Add SYCL registered kernel metadata into property sets #16821
Conversation
LGTM from the SYCL-RTC side, thanks! |
We also need at least an E2E test. It might be added in a follow up PR, but we need it. |
I observed that after device code split, the resulting modules always contain all |
@jopperm good point, I've updated the PR with the functionality to do this, take another look |
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. Just a reminder that we need a follow up PR with E2E testing.
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.
Thanks for adding the filtering!
llvm/test/tools/sycl-post-link/sycl-registered-kernels-empty.ll
Outdated
Show resolved
Hide resolved
@jzc @steffenlarsen E2E failures seem unrelated and anecdotally (#17032) go away after merging with tip -- can you update the PR and land it, please? |
This PR adds full support for the `registered_kernel_names` property to query kernels by their souce code name (and instantiate template kernels), leveraging the new `[[__sycl_detail__::__registered_kernels__(...)]]` attribute added in #16485 and #16821. Also, `kernel_bundle::ext_oneapi_get_raw_kernel_name` is implemented following the draft spec #11985. --------- Signed-off-by: Julian Oppermann <julian.oppermann@codeplay.com>
For the sycl kernel compiler extension, see #11985, #16485