Antonio Puertas Gallardo <antonio.puertasgallardo(a)gmail.com> writes:
I have an error after the successfully installation of pyopenCL:
I have the openCL driver working but I can't get pyOpenCL running:
Here the error:
[root@hpc35p examples]# python demo.py
Traceback (most recent call last):
File "demo.py", line 6, in <module>
import pyopencl as cl
2-py2.7-linux-x86_64.egg/pyopencl/__init__.py", line 37, in <module>
import pyopencl.cffi_cl as _cl
2-py2.7-linux-x86_64.egg/pyopencl/cffi_cl.py", line 39, in <module>
from pyopencl._cffi import ffi as _ffi
py2.7-linux-x86_64.egg/pyopencl/_cffi.so: undefined symbol:
Your OpenCL header does not match your libOpenCL.so--possibly they were
installed separately from each other.
You can either make sure you install both from the same source, or force
PyOpenCL onto an old version by adding
CL_PRETEND_VERSION = "1.2"
to siteconf.py and then rebuilding.
But then, I see that you are using anaconda--you might as well use the
PyOpenCL package from conda-forge, which should avoid all this trouble.