Hi Christoffer, Hi Andreas,
I had a similar bug. For me it appeared since the loaded package and the OpenCL version
did not match. To solve it under Windows just use the precompiled binaries
Most important is to make sure that you choose xxxcl12xxx if you have OpenCL 1.2 installed
or xxxcl21xxx depending on our driver.
Download the binaries, pip install in the anaconda prompt and it should work. You can try
both variants one of it will most likely work.
Am 08.11.2017 um 17:33 schrieb Andreas Kloeckner
Christoffer Zakrisson <christoffer_z(a)hotmail.com> writes:
> Hello Everyone!
> When trying to import the pyopencl module I experience the following error
>>>> import pyopencl as cl
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "[my home folder]\Anaconda3\lib\site-packages\pyopencl\__init__.py",
line 37, in <module>
> import pyopencl.cffi_cl as _cl
> File "[my home folder]\Anaconda3\lib\site-packages\pyopencl\cffi_cl.py",
line 39, in <module>
> from pyopencl._cffi import ffi as _ffi
> ImportError: DLL load failed: The specified module could not be found.
> I'm on Windows 10 running python 3.5.4 through Anaconda with pyopencl 2017.2 from
conda-forge, installed through Anaconda. My system is an i5 4670K with an R9 290 running
driver version 17.11.1 with OpenCL Version 23.20.788.0.
> My attempts at a solution is further described in the following question on
Which OpenCL dll is pyopencl referencing right now? (It *should* be
referencing the one inside of the anaconda directory that got installed
along with it.)
PyOpenCL mailing list