-
Notifications
You must be signed in to change notification settings - Fork 790
[SYCL] Support cl_khr_il_program extension #315
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: Alexander Batashev <[email protected]>
Signed-off-by: Alexander Batashev <[email protected]>
Signed-off-by: Alexander Batashev <[email protected]>
Signed-off-by: Alexander Batashev <[email protected]>
Signed-off-by: Alexander Batashev <[email protected]>
Signed-off-by: Alexander Batashev <[email protected]>
Signed-off-by: Alexander Batashev <[email protected]>
Signed-off-by: Alexander Batashev <[email protected]>
Signed-off-by: Alexander Batashev <[email protected]>
Out of interest do you think a similar method of querying the OpenCL runtime in use could be used for Queue creation: https://github.com/intel/llvm/blob/sycl/sycl/include/CL/sycl/detail/queue_impl.hpp#L145 And is this an alteration that might be done in the future? As I think that's one, if not the only location that still relies on the CL_VERSION_2_0 define at the moment. I've also had some small issues with it as the CL_VERSION_2_0 macro always seems to exist if you have an OpenCL > 2.0 compliant runtime when compiling, even if you intend to use something lower... Although, that may just be me doing something odd... |
I think we should do this. |
I sadly do not have a patch ready right now, I've got a dirty hack in place at the moment as a quick work around. However, I'd be happy to work on one but it may be a little while till I get around to it unfortunately. Although this is one of the few locations I've had issues with OpenCL < 2.0 (the other being the invocation this pull request fixes), but if I find any others I will do my best to supply fixes for them in the future. |
clCreateProgramWithIL is used by SYCL, and this function is only available with OpenCL 2.1 or later. For OpenCL < 2.1 there is an extension cl_khr_il_program which makes the same function available under a different name: clCreateProgramWithILKHR. Make SYCL runtime check for its availability and use it.
Signed-off-by: Alexander Batashev [email protected]