Skip to content
This repository has been archived by the owner on Jan 26, 2024. It is now read-only.

ROCm OpenCL installation detection issue (AMD 6700s, OpenSUSE Tumbleweed) #151

Closed
jmcelroy01 opened this issue Oct 1, 2022 · 1 comment

Comments

@jmcelroy01
Copy link

Hello,

I'm having an issue getting my installation of OpenCL to be detected by other programs. I've installed rocm-opencl, rocm-opencl-devel, rocm-opencl-runtime and rocm-opencl-sdk, all v5.3.0. As I explained here, I'm able to get output from running ./clinfo from the /opt/rocm-5.3.0/opencl/bin directory, but running other programs like clpeak and cpu-x say that no OpenCL platform is found. Is there a symbolic link or aliasing of a command I need to make in order for things to work? My kernel is 5.19.10-1, and other details of my setup are in the link.

@jmcelroy01
Copy link
Author

Made some progress today. Thanks to @ROCmSupport's comment, I was able to get output from running clinfo without needing to navigate to the above /opt/rocm/ directory after adding LD_LIBRARY_PATH=/opt/rocm-5.3.0/opencl/lib to /etc/environment. I also added export LD_LIBRARY_PATH=/opt/rocm-5.3.0/opencl/lib to ~/.zshrc.

This allowed me to finally run the Phoronix OpenCL benchmark on the GPU. Results here. You can see that a number of tests failed to run, I'll have to explore why later.

One question I have is whether /opt/rocm-5.3.0/bin would also work, given the presence of clinfo there.

I'm hoping ROCm 5.4 upgrades to OpenCL 2.1 (5.3), which is what the device supports [ref].

Closing since the original reason for opening the issue has been solved.

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

No branches or pull requests

1 participant