-
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
Remove dependency on pyopencl when dpctl==0.14.0 is out #52
Comments
Thank you for this proposal, @oleksandr-pavlyk. While I think having Would it be possible to define a SPIR-V kernel and have it compiled and loaded instead? |
TY for the suggestion @oleksandr-pavlyk , on my side I was also able to reproduce this using But in fact we were after Also, Those two missing attributes being available, certainly |
Also, the way we use |
Maybe we can rename this issue to "remove dependency to pyopencl when |
Dependency on |
As discussed in IntelPython/dpctl#886
preferred_wor_groups_size_multiple
is a device-specific property of a kernel, rather than the property ofdpctl.SyclDevice
.clinfo
retrieves exactly as such. The following Python code uses SPIR-V from simple kernel taken from dpctl example (https://github.com/IntelPython/dpctl/tree/master/examples/pybind11/use_dpctl_sycl_kernel/resource):Using it:
Incorporating this snippet into "sklean-numba-dpex" allows to drop "pyopencl" as dependency.
In the interest of full disclose,
clinfo
uses simple add kernel (c[i] = a[i] + b[i]
for float32 input) instead of "double_it".Once can compile such a kernel using
clang
as indicated in README of reference example and then save its content as byte object in the used example.The text was updated successfully, but these errors were encountered: