-
Notifications
You must be signed in to change notification settings - Fork 771
[SYCL][RTC] Query kernels by source code name #17032
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
Signed-off-by: Julian Oppermann <julian.oppermann@codeplay.com>
Signed-off-by: Julian Oppermann <julian.oppermann@codeplay.com>
Signed-off-by: Julian Oppermann <julian.oppermann@codeplay.com>
d4ac69a
to
9659324
Compare
Signed-off-by: Julian Oppermann <julian.oppermann@codeplay.com>
Signed-off-by: Julian Oppermann <julian.oppermann@codeplay.com>
// name to mangled is not yet supported. So we cannot yet do this: | ||
// sycl::kernel k2 = kbExe2.ext_oneapi_get_kernel("ff_templated<int>"); | ||
// The templated function name was registered. | ||
sycl::kernel k2 = kbExe2.ext_oneapi_get_kernel("ff_templated<int>"); |
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.
so awesome! This makes me happy.
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.
Shout-out to @premanandrao and @jzc who did the heavy lifting for this feature 🙏
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 had some comments, and the one about the docs is a must-have. But otherwise great.
Signed-off-by: Julian Oppermann <julian.oppermann@codeplay.com>
@sommerlukas and I coordinated about this. He will merge #11985 once this PR (#17032) is merged. We believe that #17032 is the last missing implementation piece, and then all of the features specified on #11985 will be working. |
@intel/llvm-gatekeepers This is ready to land, thanks! |
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.