|
Is there a way to get clvk https://github.com/kpet/clvk working with pyopencl on linux? I tried copying the opencl libraries clvk generates to /etc/OpenCL/vendor and ~/.local/etc/OpencL/vendor and added the libraries to my LD_LIBRARY_PATH but neither helped finding it via cl.get_platforms() I get the usual platform error. Clinfo finds clvk and normal C programs work as well. |
Replies: 2 comments
|
If |
|
that worked thanks I added clvk.icd to /etc/OpenCL/vendors with libOpenCL.so in it. |
If
clinfocan find it, so should pyopencl. Just make sure both link against the samelibOpenCL.so.1. (Uselddon either to find out which that is.) Note that/etc/OpenCL/vendorsdoes not contain binaries, it contains text files with names ending in.icdcontaining file names of the shared objects with the drivers.