On Wed, 14 Nov 2018 16:30:15 -0200
V Amo BTS <gisele.lima.cama...@gmail.com> wrote:

> Hello to all,
> 
> I got an import error after installing nvidia toolkit and cuda, using
> spyder:
> 
> 
> *ImportError: /usr/local/cuda-10.0/targets/x86_64-linux/lib/libOpenCL.so.1:
> version `OPENCL_2.1' not found (required by
> /usr/lib/python3/dist-packages/pyopencl/_cffi.abi3.so
> <http://cffi.abi3.so>)*
> 
> Spyder 4.0.0b1
> 
> *Python 3.6.6 64bits, Qt 5.9.3, PyQt5 5.9.2 on Linux *
> 
> 
> Since I have no experience installing these programs. Can anyone help me,
> please?

Hi all,

I guess this is related to the version 1.2 of the libopencl from CUDA. 
Probably your system provides a libOpenCL version 2.1 and pyopencl has
been installed to use it. 
Recently, you installed cuda which changes the order library are
chosen (probably using the LD_LIBRARY_PATH) and the one from cuda gets
selected, but it is less advanced then the one from your system.

There is a simple "solution": try to move away the one from cuda and check if 
it fixes the issue, like:
```
sudo mv /usr/local/cuda-10.0/targets/x86_64-linux/lib/libOpenCL.so.1  
/usr/local/cuda-10.0/targets/x86_64-linux/lib/libOpenCL.so_from_cuda_do_not_use
```

and check if it works.

Cheers,
-- 
Jérôme Kieffer

_______________________________________________
PyOpenCL mailing list
PyOpenCL@tiker.net
https://lists.tiker.net/listinfo/pyopencl

Reply via email to