Closed rbavery closed 3 years ago
Our implementation (the opencl backend) was tested for and targeted towards dedicated GPU's. I have a very limited knowledge of macos, but from what I have heard, the supported OpenCL version on macos was very old, and hence it is probably not going to work. If you want to use our implementation on a CPU-only machine, I would suggest using the "python-mp" backend instead. It is surprisingly fast on small-ish datasets.
Thanks a bunch @mortvest , the python-mp backend works well.
I'm trying to run the example on my Macbook Pro (no GPU) to test. I'm new to pyOpenCL but I read on the docs that it supports both CPU and GPU.
I installed pyopencl from conda-forge:
pyopencl 2018.2.5 py37h9888f84_0 conda-forge
And first tried to run the example with this installation:
I get this error
I then saw https://github.com/conda-forge/pyopencl-feedstock/issues/26#issuecomment-423554880 so I then installed
pocl
in my conda environment withconda install -c conda-forge osx-pocl-opencl pocl pyopencl==2018.2.5
But when I ran the example again, I got a dead kernel error (I'm running it in a jupyter notebook).
Any tips on how to set up the environment on a CPU-only machine?