-
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.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
If |
Beta Was this translation helpful? Give feedback.
-
that worked thanks I added clvk.icd to /etc/OpenCL/vendors with libOpenCL.so in it. |
Beta Was this translation helpful? Give feedback.
If
clinfo
can find it, so should pyopencl. Just make sure both link against the samelibOpenCL.so.1
. (Useldd
on either to find out which that is.) Note that/etc/OpenCL/vendors
does not contain binaries, it contains text files with names ending in.icd
containing file names of the shared objects with the drivers.