Hi Isuru, Thank you very much. > conda install ocl_icd_wrapper_apple Works for me, works on GPU ok. Yeah, it’s a pity Apple dropped OpenCL support.
— Pavel > On 17. Jun 2021, at 07:16, Isuru Fernando <isu...@gmail.com> wrote: > > 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 > > <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 > <mailto: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 > <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 > <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 <mailto:pyopencl@tiker.net> > To unsubscribe send an email to pyopencl-le...@tiker.net > <mailto:pyopencl-le...@tiker.net>
_______________________________________________ PyOpenCL mailing list -- pyopencl@tiker.net To unsubscribe send an email to pyopencl-le...@tiker.net