Hi Pavel,

We've removed using Apple's OpenCL implementation by default as it's
deprecated
and has more bugs in each macOS update.
For eg:
https://github.com/conda-forge/pyopencl-feedstock/pull/64#issuecomment-842598938

To get back the previous behaviour, you can do,

    conda install ocl_icd_wrapper_apple

Or you can use PoCL which is being actively maintained by doing,

    conda install pocl

Isuru


On Wed, Jun 16, 2021 at 3:02 PM Pavel Aleynikov <pavel.aleyni...@gmail.com>
wrote:

> Dear developers,
>
> pyopencl stopped working for me on macos (worked fine before I updated
> conda evn)
>
> $ conda install pyopencl
>
> >>>import pyopencl as cl
> >>>cl.get_platforms()
> gives:
>
> LogicError: clGetPlatformIDs failed: PLATFORM_NOT_FOUND_KHR
>
>
> I read this https://documen.tician.de/pyopencl/misc.html#installation. And
> understand that the issue is probably with Khronos ICD Loader? In
> particular I see no “apple.icd” file in my system after installation.
> I still have `apple.icd` in conda cache of
>
> /Users/alpxp/miniconda3/pkgs/ocl_icd_wrapper_apple-1.0.0-hbcb3906_0/etc/OpenCL/vendors/apple.icd
> but copying it to $CONDA_PREFIX/etc/OpenCL/vendors/apple.icd did not help.
>
> Also:
> (main_env) $ clinfo
> Number of platforms                               0
>
> I also found https://gitlab.tiker.net/inducer/pyopencl/-/issues/21, but
> that issue seem to be fixed, so probably not related.
>
> Where should I look?
> Thank you
> —
> Pavel
>
> _______________________________________________
> PyOpenCL mailing list -- pyopencl@tiker.net
> To unsubscribe send an email to pyopencl-le...@tiker.net
>
_______________________________________________
PyOpenCL mailing list -- pyopencl@tiker.net
To unsubscribe send an email to pyopencl-le...@tiker.net

Reply via email to