My system is using the Open Source AMD GPU driver. However for darktable I use the closed source opencl compiler. I’ve just extracted the required individual files from the closed source driver packages (RPM) for that:
$ find /opt/amdgpu-pro/lib64 -type f
/opt/amdgpu-pro/lib64/libOpenCL.so.1
/opt/amdgpu-pro/lib64/libamdocl12cl64.so
/opt/amdgpu-pro/lib64/libamdocl64.so
/opt/amdgpu-pro/lib64/libdrm.so.2.4.0
/opt/amdgpu-pro/lib64/libdrm_amdgpu.so.1.0.0
/opt/amdgpu-pro/lib64/libdrm_radeon.so.1.0.1
/opt/amdgpu-pro/lib64/libkms.so.1.0.0
and
cat /etc/OpenCL/vendors/amdocl64.icd
libamdocl64.so
This works fine with:
LD_LIBRARY_PATH=/opt/amdgpu-pro/lib64 darktable
to get OpenCL support it darktable.
P.S.: Midnight Commander is able to browse RPM files, so it is quite easy to copy out files from packages with it.