Although there is an article about using ROCm, as I couldn’t get it to work, I have tried again but without using Distrobox. In my case I needed it in Darktable, to be able to use OpenCL, and I managed to do it. This way, I got OpenCL working and ROCm 6.1.2 version, all in Tumbleweed.
First of all, we need to add repository https://repo.radeon.com/rocm/zyp/zypper/
(I called it AMD ROCm).
Next, you need to install next packages:
zypper in rocm-opencl rocm-opencl-devel rocminfo rocm-smi-lib hsa-ext-rocr-dev comgr clinfo clpeak
After that, reboot, and check status with
clinfo | egrep -m 6 "Name|Vendor|Version".
If it doesn’t give “fatal error”, it should show the information similar to:
Platform Name AMD Accelerated Parallel Processing
Platform Vendor Advanced Micro Devices, Inc.
Platform Version OpenCL 2.1 AMD-APP (3614.0)
Platform Name AMD Accelerated Parallel Processing
Device Name gfx1102
Device Vendor Advanced Micro Devices, Inc.
And to know if latest ROCm driver is installed:
rpm -qa | grep rocm-core
in my case
rocm-core-6.1.2.60102-sles154.119.x86_64
This way, I have managed to use it in Darktable, Blender and Davinci Resolve. In each of these applications, OpenCL must be ENABLED before it can be used.