I have been trying to get opencl to work for my Hawaii based GPU on my opensuse leap 15.3 installation for a few days with very little success. My initial attempt was to use rocm, because I wanted to have opemp offloading available and try out sycl as well as opencl. All attempts failed and I blamed it on the lack of official support. My final attempt was to use the amdgpu-install script to at least get OpenCL with legacy support. After installing and rebooting, clinfo fails with
Error: clGetPlatformIDs(-1001)
Running strace results in (among the cruft)
openat(AT_FDCWD, "/etc/OpenCL/vendors/amdocl64.icd", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = -1 ENOENT (No such file or directory)
Why is the program trying to open a non-existing icd file as a directory? The icd file from the install is in the same directory and called amdocl-orca64.icd