Skip to content

Lost openCL after using pocl on MacOs #515

Closed

Description

@yves-surrel

I have tried pocl on my Mac mini M1, where I had previously a working install of PyOpenCL.

I removed pocl, but now I get the infamous message clGetPlatformIDs failed: PLATFORM_NOT_FOUND_KHR.

How to get back to the previous situation? I hope pocl has not messed up some internals in the OS file system.

Activity

  1. inducer commented on Oct 13, 2021

    @inducer
    Owner
    • How'd you install pyopencl?
    • If you set up a fresh conda environment as described in the docs, do you get a working system?
    • You can rest assured that no aspect of pyopencl installation should modify (at least intentionally) your global system. Of course, if you sudo python setup.py install, it will attempt to install itself into your system-wide interpreter... but don't do that. Just use a virtualenv.
  2. yves-surrel commented on Oct 13, 2021

    @yves-surrel
    Author

    I made a new conda environment, and simply did conda install pyopencl
    I get the error clGetPlatformIDs failed: PLATFORM_NOT_FOUND_KHRin this new environment.

    My fear of messing up system files was more about pocl, not PyOpenCL that I have been using successfully for years, thanks for that!

    There may be something broken in the way the native MacOS OpenCL is found, because Apple does not do things as other vendors do, AFAIU.

  3. inducer commented on Oct 13, 2021

    @inducer
    Owner

    Did you also conda install pocl?

  4. yves-surrel commented on Oct 13, 2021

    @yves-surrel
    Author
  5. yves-surrel commented on Oct 13, 2021

    @yves-surrel
    Author

    Maybe the pocl uninstall in the previous environment (not the new one) is incomplete and it messes something at a global level?
    Should we reinstall a full miniconda?

  6. inducer commented on Oct 13, 2021

    @inducer
    Owner

    Yes, when in doubt, always start from a clean slate.

  7. Repository owner locked and limited conversation to collaborators on Oct 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions