Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AMD Mesa OpenCL not recognized. #55

Open
brucethemoose opened this issue Jan 21, 2023 · 0 comments
Open

AMD Mesa OpenCL not recognized. #55

brucethemoose opened this issue Jan 21, 2023 · 0 comments

Comments

@brucethemoose
Copy link

brucethemoose commented Jan 21, 2023

Running Arch Linux, KNLMeans does not recognize my AMD (integrated) GPU, even though clinfo does.

Looks like its a problem with the oclutils library. This is what I get from running its little example utility:

❯ ./OclUtilsExample
OpenCL: File locking mechanism enabled. Will probably fail if run under a queueing system.
-------------------------------------------------------------------------------------------------------------
OpenCL: Getting a list of platform(s)... done.
OpenCL: Initializing the 3 available platforms...
        (1/3) NVIDIA Corporation
        (2/3) Mesa
        (3/3) Mesa/X.org
OpenCL: Initialize platform "NVIDIA CUDA"'s device(s)
OpenCL: WARNING: Can't find a usable CPU!
OpenCL: Attempt to acquire lock on file /tmp/OpenCL_Platform0_Device0__NVIDIA_CUDA_NVIDIA_GeForce_RTX_2060_with_Max_Q_Design.lck...Success!
ERROR: Unknown OpenCL platform "mesa"! Exiting.
fish: Job 1, './OclUtilsExample' terminated by signal SIGABRT (Abort)

And that looks like an issue of simply not recognizing "mesa" as a valid platform:

https://github.com/nbigaouette/oclutils/blob/183589c63d47c05a0304c92f9cbcf77994167563/src/OclUtils.cpp#L462-L474

EDIT: Doesn't seem to work with ROCM either.

I think this means AMD GPUs are incompatible with this on linux.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant