After going back and forth with ChatGPT I’m unable to use OpenCL with Darktable. Any tips to resolve this would be greatly appreciated. I’m on Asahi Remix 44.
I wasn’t familiar with Darktable, but I took a look. I couldn’t get the rpm version to use OpenCl, but the flatpak version from flathub worked fine and OpenCL compiled. How did you install it? Also did you follow the steps on darktable user manual - possible problems & solutions?
For reference this is what I get from debugging OpenCL:
mrostom@macbookair:~/Downloads$ flatpak run org.darktable.Darktable -d opencl
darktable 5.6.1 [linux]
Copyright (C) 2012-2026 Johannes Hanika and other contributors.
Compile options:
Bit depth -> 64 bit
Exiv2 -> 0.28.8
Lensfun -> 0.3.4
Debug -> DISABLED
SSE2 optimizations -> DISABLED
OpenMP -> ENABLED
OpenCL -> ENABLED
Lua -> ENABLED - API version 9.7.0
Colord -> ENABLED
gPhoto2 -> ENABLED - Camera tethering is available
OSMGpsMap -> ENABLED - Map view is available
GMIC -> ENABLED - Compressed LUTs are supported
GraphicsMagick -> ENABLED
ImageMagick -> DISABLED
libavif -> ENABLED
libheif -> ENABLED
libjxl -> ENABLED
LibRaw -> ENABLED - Version 0.22.0-Release
OpenJPEG -> ENABLED
OpenEXR -> ENABLED
WebP -> ENABLED
AI -> DISABLED
See https://www.darktable.org/resources/ for detailed documentation.
See https://github.com/darktable-org/darktable/issues/new/choose to report bugs.
[dt starting] as : darktable -d opencl
[dt_get_sysresource_level] switched to `default'
total mem: 6468MB
available mem: 3234MB
singlebuff: 50MB
[opencl_init] opencl library 'libOpenCL.so.1' found on your system and loaded, preference 'default path'
[opencl_init] found 1 platform
[opencl_init] found 1 device
DEVICE: 0: 'Apple M2 (G14G B0)'
CONF KEY: cldevice_v6_rusticlapplem2
PLATFORM, VENDOR & ID: rusticl, Mesa:Mesa/X.org, ID=0
CANONICAL NAME: rusticlapplem2
DRIVER VERSION: 26.1.6 (git-ffa422e53d)
DEVICE VERSION: OpenCL 3.0 API=300
DEVICE_TYPE: GPU, unified mem
GLOBAL MEM SIZE: 7492 MB
MAX IMAGE ALLOC: 2048 MB
MAX IMAGE SIZE: 16384 x 16384
MAX CONSTANT BUFFER: 65536 KB
LOCAL MEM SIZE: 32 KB
ADDRESS ALIGN: 512 B
COMPUTE UNITS: 10
MAX WORK GROUP SIZE: 1024 (32)
MAX WORK ITEM DIMENSIONS: 3 [ 1024 1024 1024 ]
ASYNC PIXELPIPE: NO
PINNED MEMORY TILING: NO
SUPPORTED ATOMICS: INT32
EVENTS HANDLED: YES
OPENCL FAST MODE: NO
TILING ADVANTAGE: 0.000
DEFAULT DEVICE: NO
KERNEL BUILD DIRECTORY: /app/share/darktable/kernels
KERNEL DIRECTORY: /home/mrostom/.var/app/org.darktable.Darktable/cache/darktable/cached_v6_kernels_for_rusticlAppleM2_2616gitffa422e53d
CL COMPILER COMMAND: -w -DUNKNOWN=1 -I/app/share/darktable/kernels
KERNEL LOADING TIME: 1.6398 sec
[opencl_init] OpenCL successfully initialized. internal numbers and names of available devices:
[opencl_init] 0 'rusticl Apple M2'
[opencl_init] FINALLY: opencl PREFERENCE=YES is AVAILABLE and ENABLED
[opencl_init] opencl_scheduling_profile: 'default'
[opencl_init] opencl_device_priority: '*/!0,*/*/*/!0,*'
[opencl_init] opencl_mandatory_timeout: 1000
[opencl_update_priorities] these are your device priorities:
[opencl_update_priorities] image preview export thumbs preview2
[opencl_update_priorities] 0 -1 0 0 -1
[opencl_update_priorities] show if opencl use is mandatory for a given pixelpipe:
[opencl_update_priorities] image preview export thumbs preview2
[opencl_update_priorities] NO NO NO NO NO
[opencl_synchronization_timeout] synchronization timeout set to 200
UNIFIED MEM SIZE: 1617 MB (25%) reserved for 'rusticlapplem2' id=0
[opencl_update_priorities] these are your device priorities:
[opencl_update_priorities] image preview export thumbs preview2
[opencl_update_priorities] 0 -1 0 0 -1
[opencl_update_priorities] show if opencl use is mandatory for a given pixelpipe:
[opencl_update_priorities] image preview export thumbs preview2
[opencl_update_priorities] NO NO NO NO NO
[opencl_synchronization_timeout] synchronization timeout set to 200