Bug#1132865: darktable: OpenCL GPU acceleration is not available, darktable-cltest shows OpenCL as enabled
Sami Tapio
tapio.sami at gmail.com
Fri Apr 10 18:06:18 BST 2026
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 <tino.mettler at tikei.de> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-phototools-devel/attachments/20260410/64a41951/attachment.htm>
More information about the Pkg-phototools-devel
mailing list