I can’t enable OpenCL GPU Acceleration. (I hope I am not spamming by duplicating other OpenCL threads!)
Basically, it seems that clinfo finds a device, but darktable-cltest does not. I think the following snippets are the relevant bits:
$ cat /etc/os-release
NAME="Arch Linux"
$ lscpu
Model name: 12th Gen Intel(R) Core(TM) i3-12100
$ clinfo
Number of platforms 1
Platform Name Intel(R) OpenCL Graphics (integrated)
Platform Version OpenCL 3.0
Number of devices 1
Device Name Intel(R) UHD Graphics 730
Device Version OpenCL 3.0 NEO
$ darktable-cltest
darktable 5.6.1 [linux]
Compile options:
OpenCL -> ENABLED
[dt_get_sysresource_level] switched to `default'
total mem: 15726MB
available mem: 7863MB
singlebuff: 122MB
[opencl_init] opencl library 'libOpenCL' found on your system and loaded, preference 'default path'
[opencl_init] found 1 platform
[check platform] platform 'Intel(R) OpenCL Graphics (integrated)' with key 'clplatform_intelropenclgraphicsintegrated' is NOT active
[opencl_init] found 0 device
[opencl_init] FINALLY: opencl PREFERENCE=YES is NOT AVAILABLE and NOT ENABLED
Based on other posts in the forum, I already tried deleting all “opencl” and “clplatform” lines from ~/.config/darktable/darktablerc.
Here are the full compile options, in case that reveals anything surprising:
Compile options:
Bit depth -> 64 bit
Exiv2 -> 0.28.9
Lensfun -> 0.3.4
Debug -> DISABLED
SSE2 optimizations -> ENABLED
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 -> ENABLED
If I understand correctly, my darktablerc has no config settings for Intel UHD 730 integrated graphics, because it has never seen it as a “found” device. I think these are all of the OpenCL bits from darktablerc:
Thank you for all of your assistance. I had previously assumed that OpenCL was simply not available without an Nvidia or AMD card, but it sounds like the Intel integrated GPUs can, in theory, work.
The full output of darktable-cltest -d verbose is attached. Also attached is the clinfo output.
On Arch, I installed two packages earlier today: intel-compute-runtime and clinfo. I already had ocl-icd installed.