ROCm / ROCm-OpenCL-Runtime

ROCm OpenOpenCL Runtime
170 stars 60 forks source link

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

Closed jmcelroy01 closed 1 year ago

jmcelroy01 commented 1 year ago

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 commented 1 year ago

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.