-
Notifications
You must be signed in to change notification settings - Fork 124
Added DEVICE_INFO_PROGRAM_SET_SPECIALIZATION_CONSTANTS
#2539
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
cf78063 to
2b4c661
Compare
a26df8c to
5882d68
Compare
frasercrmck
left a comment
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.
CUDA/HIP LGTM
5882d68 to
8a242e4
Compare
57687c0 to
be7c5e7
Compare
be7c5e7 to
5aded23
Compare
|
@oneapi-src/unified-runtime-native-cpu-write @oneapi-src/unified-runtime-level-zero-write Can you quickly look at this? I've just set it so that Native CPU and Level Zero don't advertise support for specialization constants. |
It might makes sense to get @PietroGhg to review (not sure if he is still in these groups or not) - we will want specialized constants for native cpu though I think. |
It doesn't support them today so it should say so to the user. |
I thought we did, just that we fail tests. |
Both |
okay that's fine, as long as we can easily switch this back on. |
This is similar to the existing `DEVICE_INFO_KERNEL_SET_SPECIALIZATION_CONSTANTS` device info, only it applies to programs rather than kernels. All of the adapters should be updated to report it correctly, and tests have been added.
5aded23 to
128ea02
Compare
|
@oneapi-src/unified-runtime-level-zero-write I want to get this merged, can you look at it? @coldav @PietroGhg It should be as simple as implementing it and returning |
For Native CPU we are going through the "emulated" path for Spec Constants, which means (I may be wrong, it's been a while since I looked into it) that the values for them are set as kernel arguments by the SYCL runtime, so I think that the values for |
THis is similar to the existing
DEVICE_INFO_KERNEL_SET_SPECIALIZATION_CONSTANTSdevice info, onlyit applies to programs rather than kernels. All of the adapters should
be updated to report it correctly, and tests have been added.