Hi Tino,

I reinstalled ROCm drivers as requested, the result did not change. And
darktable-cltest still showed: failed to compile program `demosaic_ppg.cl'

I did a bunch of related package reinstalls and commands following below
and got the ROCm acceleration working. I'm not sure what did the trick.
rm -rf ~/.cache/darktable/cached_v5_kernels_*
in darktablerc, deleted lines starting with: cldevice_v5_
sudo apt install --reinstall rocm-llvm rocm-opencl7.2.1 rocm-core7.2.1
sudo dpkg -i --force-overwrite
/var/cache/apt/archives/rocm-core_7.2.1.70201-81~24.04_amd64.deb (2
packages claimed same file)
sudo apt install ocl-icd-opencl-dev
Got rid of  rocm-opencl-icd:amd64: /etc/OpenCL/vendors/amdocl64.icd file
and kept the one provided by rocm-opencl7.2.1, after this darktable sees
only one platform, with 2 devices. CPU and GPU.
echo "/opt/rocm-7.2.1/lib" | sudo tee /etc/ld.so.conf.d/10-rocm-opencl.conf
sudo ldconfig

RustiCL still not working, don't know if it is better/faster than ROCm
within darktable. Thanks for all the help.

BR,
Sami


On Fri, 10 Apr 2026 at 16:21, Tino Mettler <[email protected]> wrote:

> Am Fri, Apr 10, 2026 at 00:42:40 +0300 schrieb Sami Tapio:
> > Hi Tino,
> >
> > first of all, I would need more specific information to exactly what
> > packages to reinstall, as this situation resembles me of RPM hell over 2
> > decades ago. I did disable the AMD repo and did try to reinstall affected
> > packages...
>
> Hi Sami,
>
> this should reinstall the ROCm drivers:
>
> apt purge mesa-opencl-icd
> apt install rocm-opencl7.2.1
>
> Regards,
> Tino
>

Reply via email to