Running flatpak run --command=darktable-cltest org.darktable.Darktable gives me:
darktable 5.0.0
Copyright (C) 2012-2024 Johannes Hanika and other contributors.
Compile options:
Bit depth -> 64 bit
Debug -> DISABLED
SSE2 optimizations -> ENABLED
OpenMP -> ENABLED
OpenCL -> ENABLED
Lua -> ENABLED - API version 9.4.0
Colord -> ENABLED
gPhoto2 -> ENABLED
GMIC -> ENABLED - Compressed LUTs are supported
GraphicsMagick -> ENABLED
ImageMagick -> DISABLED
libavif -> ENABLED
libheif -> ENABLED
libjxl -> ENABLED
LibRaw -> ENABLED - Version 0.22.0-Devel202403
OpenJPEG -> ENABLED
OpenEXR -> ENABLED
WebP -> ENABLED
See https://www.darktable.org/resources/ for detailed documentation.
See https://github.com/darktable-org/darktable/issues/new/choose to report bugs.
0.2473 [dt_get_sysresource_level] switched to 1 as `default'
0.2473 total mem: 31822MB
0.2473 mipmap cache: 3977MB
0.2473 available mem: 15911MB
0.2473 singlebuff: 248MB
0.2477 [opencl_init] opencl disabled via darktable preferences
0.2477 [dt_dlopencl_init] could not find default opencl runtime library 'libOpenCL'
0.2477 [dt_dlopencl_init] could not find default opencl runtime library 'libOpenCL.so'
0.2478 [opencl_init] opencl library 'libOpenCL.so.1' found on your system and loaded, preference 'default path'
0.2712 [opencl_init] found 1 platform
0.2713 [check platform] platform 'rusticl' with key 'clplatform_rusticl' is NOT active
[opencl_init] found 0 device
0.2713 [opencl_init] FINALLY: opencl PREFERENCE=OFF is NOT AVAILABLE and NOT ENABLED.
I see nothing about my AMD Radeon RX 6700 XT there. Is it not being used?
It seems that darktable-cltest could find the rusticl driver installed. However, Radeon is not enabled by default for rusticl. You can enable it by setting the environment variable RUSTICL_ENABLE=radeonsi, i.e. run RUSTICL_ENABLE=radeonsi flatpak run --command=darktable-cltest org.darktable.Darktable and see what it says.
That says, I have the exact same GPU. Unfortunately, for me the rusticl driver detects my card (with the environment variable set) but then panics and darktable fails to start. Donāt know if the MESA/rusticl version used by the flatpak is buggy - rusticl is quite new still and has only recently started working well for darktable (for me at least).
Iāve had much better luck in the past running darktable inside a distrobox (Iām running Aeon Desktop and using the Tumbleweed based distrobox image). rusticl seems to work there. Iām just using darktable from the repos, and maybe installed rusticl separately. Just checked and it still works fine after updating everything to latest versions.
The crash with the flatpak seems to be during kernel compilation:
I have Radeon RX 6600 and in order to use OpenCL I installed on Fedora the following rocm packages, not rusticl. DT with OpenCL works really well so far.
RUSTICL_ENABLE=radeonsi flatpak run --command=darktable-cltest org.darktable.Darktable
darktable 5.0.0
Copyright (C) 2012-2024 Johannes Hanika and other contributors.
Compile options:
Bit depth -> 64 bit
Debug -> DISABLED
SSE2 optimizations -> ENABLED
OpenMP -> ENABLED
OpenCL -> ENABLED
Lua -> ENABLED - API version 9.4.0
Colord -> ENABLED
gPhoto2 -> ENABLED
GMIC -> ENABLED - Compressed LUTs are supported
GraphicsMagick -> ENABLED
ImageMagick -> DISABLED
libavif -> ENABLED
libheif -> ENABLED
libjxl -> ENABLED
LibRaw -> ENABLED - Version 0.22.0-Devel202403
OpenJPEG -> ENABLED
OpenEXR -> ENABLED
WebP -> ENABLED
See https://www.darktable.org/resources/ for detailed documentation.
See https://github.com/darktable-org/darktable/issues/new/choose to report bugs.
0.2681 [dt_get_sysresource_level] switched to 1 as `default'
0.2681 total mem: 31822MB
0.2681 mipmap cache: 3977MB
0.2681 available mem: 15911MB
0.2681 singlebuff: 248MB
0.2766 [opencl_init] opencl disabled via darktable preferences
0.2766 [dt_dlopencl_init] could not find default opencl runtime library 'libOpenCL'
0.2767 [dt_dlopencl_init] could not find default opencl runtime library 'libOpenCL.so'
0.2767 [opencl_init] opencl library 'libOpenCL.so.1' found on your system and loaded, preference 'default path'
0.5748 [opencl_init] found 1 platform
0.5749 [check platform] platform 'rusticl' with key 'clplatform_rusticl' is NOT active
[opencl_init] found 0 device
0.5749 [opencl_init] FINALLY: opencl PREFERENCE=OFF is NOT AVAILABLE and NOT ENABLED.
RUST_BACKTRACE=full flatpak run --command=darktable-cltest org.darktable.Darktable
darktable 5.0.0
Copyright (C) 2012-2024 Johannes Hanika and other contributors.
Compile options:
Bit depth -> 64 bit
Debug -> DISABLED
SSE2 optimizations -> ENABLED
OpenMP -> ENABLED
OpenCL -> ENABLED
Lua -> ENABLED - API version 9.4.0
Colord -> ENABLED
gPhoto2 -> ENABLED
GMIC -> ENABLED - Compressed LUTs are supported
GraphicsMagick -> ENABLED
ImageMagick -> DISABLED
libavif -> ENABLED
libheif -> ENABLED
libjxl -> ENABLED
LibRaw -> ENABLED - Version 0.22.0-Devel202403
OpenJPEG -> ENABLED
OpenEXR -> ENABLED
WebP -> ENABLED
See https://www.darktable.org/resources/ for detailed documentation.
See https://github.com/darktable-org/darktable/issues/new/choose to report bugs.
0.2398 [dt_get_sysresource_level] switched to 1 as `default'
0.2398 total mem: 31822MB
0.2398 mipmap cache: 3977MB
0.2398 available mem: 15911MB
0.2398 singlebuff: 248MB
0.2401 [opencl_init] opencl disabled via darktable preferences
0.2402 [dt_dlopencl_init] could not find default opencl runtime library 'libOpenCL'
0.2402 [dt_dlopencl_init] could not find default opencl runtime library 'libOpenCL.so'
0.2403 [opencl_init] opencl library 'libOpenCL.so.1' found on your system and loaded, preference 'default path'
0.2629 [opencl_init] found 1 platform
0.2629 [check platform] platform 'rusticl' with key 'clplatform_rusticl' is NOT active
[opencl_init] found 0 device
0.2630 [opencl_init] FINALLY: opencl PREFERENCE=OFF is NOT AVAILABLE and NOT ENABLED.
The executable name can be specified as the first command line argument. If there is an executable with that name inside the AppImage, it will be run instead of the default one. So, just specify darktable-cltest as the first argument when running AppImage
You can create a symlink to the AppImage file and run it via the symlink. If inside the AppImage there is an executable with a name that matches the symlink name, it will be launched instead of the default one. That is, you can simply run the AppImage via a symlink named darktable-cltest.
See now my message was confusing. I never got GPU acceleration for the AppImage working. What I mean worked was running ./darktable.AppImage darktable-cltest.
Clues on how to get GPU acceleration working based on the below output?
./darktable.AppImage darktable-cltest
Setting $HOME to /var/home/username/AppImages/darktable.AppImage.home
darktable 5.0.1
Copyright (C) 2012-2025 Johannes Hanika and other contributors.
Compile options:
Bit depth -> 64 bit
Debug -> DISABLED
SSE2 optimizations -> ENABLED
OpenMP -> ENABLED
OpenCL -> ENABLED
Lua -> ENABLED - API version 9.4.0
Colord -> ENABLED
gPhoto2 -> ENABLED
GMIC -> ENABLED - Compressed LUTs are supported
GraphicsMagick -> ENABLED
ImageMagick -> DISABLED
libavif -> ENABLED
libheif -> ENABLED
libjxl -> ENABLED
LibRaw -> ENABLED - Version 0.22.0-Devel202403
OpenJPEG -> ENABLED
OpenEXR -> ENABLED
WebP -> ENABLED
See https://www.darktable.org/resources/ for detailed documentation.
See https://github.com/darktable-org/darktable/issues/new/choose to report bugs.
0.2841 [dt_get_sysresource_level] switched to 1 as `default'
0.2842 total mem: 31822MB
0.2842 mipmap cache: 3977MB
0.2842 available mem: 15911MB
0.2842 singlebuff: 248MB
0.2896 [opencl_init] opencl disabled via darktable preferences
0.2897 [dt_dlopencl_init] could not find default opencl runtime library 'libOpenCL'
0.2897 [dt_dlopencl_init] could not find default opencl runtime library 'libOpenCL.so'
0.2899 [opencl_init] opencl library 'libOpenCL.so.1' found on your system and loaded, preference 'default path'
0.2899 [opencl_init] 0 platforms detected, error: Unknown OpenCL error
0.2899 [opencl_init] FINALLY: opencl PREFERENCE=OFF is NOT AVAILABLE and NOT ENABLED.
This part does not look promising:
0.2896 [opencl_init] opencl disabled via darktable preferences
0.2897 [dt_dlopencl_init] could not find default opencl runtime library 'libOpenCL'
0.2897 [dt_dlopencl_init] could not find default opencl runtime library 'libOpenCL.so'
0.2899 [opencl_init] opencl library 'libOpenCL.so.1' found on your system and loaded, preference 'default path'
0.2899 [opencl_init] 0 platforms detected, error: Unknown OpenCL error
0.2899 [opencl_init] FINALLY: opencl PREFERENCE=OFF is NOT AVAILABLE and NOT ENABLED.
But Iām not sure where I should start look for a solution.
the program does find an openCL runtime ( ālibOpenCL.so.1ā )
then it reports an āUnknown OpenCL errorā
(The two lines ācould not find default opencl runtime libraryā appear because several possible names are tried. )
There are also openCL options in darktablerc (~/.config/darktable/darktablerc on my home-compiled setup), one of which is (for me) opencl=TRUE
Note that @kofa mounted the appimage as a filesystem. That should allow you to see whatās packed in there (and perhaps get it to run using system libraries).
I closed darktable and opened darktablerc. Now it said FALSE again.
I set it to true once again and ran darktable-cltest:
0.2851 [dt_dlopencl_init] could not find default opencl runtime library 'libOpenCL'
0.2851 [dt_dlopencl_init] could not find default opencl runtime library 'libOpenCL.so'
0.2853 [opencl_init] opencl library 'libOpenCL.so.1' found on your system and loaded, preference 'default path'
0.2853 [opencl_init] 0 platforms detected, error: Unknown OpenCL error
0.2853 [opencl_init] FINALLY: opencl PREFERENCE=ON is NOT AVAILABLE and NOT ENABLED.