OpenCL-AMD-Fedora icon indicating copy to clipboard operation
OpenCL-AMD-Fedora copied to clipboard

Did not work until I did this ONE SIMPLE trick!

Open power-max opened this issue 2 years ago • 0 comments

Following the install of this script, OpenCL was still not working. Output of clinfo is as follows:

[powwermax@primarydesktoppc ~]$ clinfo
dlerror: libamdocl64.so: cannot open shared object file: No such file or directory
Number of platforms                               0

The libamdocl64.so object file does exist in the following locations:

[powermax@primarydesktoppc ~]$ sudo find /opt/  -name libamdocl64.so
[sudo] password for powermax: 
/opt/rocm-5.2.0/lib/libamdocl64.so
/opt/rocm-5.2.0/opencl/lib/libamdocl64.so

Mind, this is not a clean installation for me, as I have tried installing and removing the ROCm and AMD pro stuff several times using different installers and scripts. I am not sure which is the appropriate one to use for this script. I choose the first one simply bt the fact the file path is shorter.

Running export LD_LIBRARY_PATH=/opt/rocm-5.2.0/lib/:$LD_LIBRARY_PATH fixed the issue for me.

power-max avatar Sep 19 '22 03:09 power-max