[solved] OpenCL not working for Intel integrated GPU version 5.0.1

Hello,

I noticed quite a dramatic drop in performance between version 4.8.1 and 5.0.0 and now 5.0.1, especially when exporting jpegs. I recall that with version 4.8.1 OpenCL was available for my laptop and in use. It is not the case anymore and I cannot activate it.

I have an integrated GPU that may cause issues as stated in other posts here, but it was working in the past.

More about my setup :

  • My drivers are up to date, from intel directly and not from Windows

  • When running darktable -d opencl as stated in the manual I get :
    12.0401 [opencl_init] opencl disabled via darktable preferences
    But I cannot change the preferences in the menu :

Does someone have an idea of how to have OpenCL working again ?

Full Output of darktable-cltest.exe hidden to keep the post compact ``` 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 → DISABLED
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 resources | darktable for detailed documentation.
See Sign in to GitHub · GitHub to report bugs.

   6,8513 [dt_get_sysresource_level] switched to 2 as 'large'
   6,8544   total mem:       16068MB
   6,8590   mipmap cache:    2008MB
   6,8600   available mem:   10984MB
   6,8613   singlebuff:      251MB
   6.8642 [opencl_init] opencl disabled via darktable preferences
   6.8655 [opencl_init] opencl library 'OpenCL.dll' found on your system and loaded, preference 'default path'
   6.8977 [opencl_init] found 1 platform

[opencl_init] found 1 device

[dt_opencl_device_init]
DEVICE: 0: ‘Intel(R) Iris(R) Xe Graphics’
CONF KEY: cldevice_v5_intelropenclgraphicsintelririsrxegraphics
PLATFORM, VENDOR & ID: Intel(R) OpenCL Graphics, Intel(R) Corporation, ID=32902
CANONICAL NAME: intelropenclgraphicsintelririsrxegraphics
DRIVER VERSION: 32.0.101.6559
DEVICE VERSION: OpenCL 3.0 NEO
DEVICE_TYPE: GPU, unified mem
GLOBAL MEM SIZE: 7102 MB
MAX MEM ALLOC: 3551 MB
MAX IMAGE SIZE: 16384 x 16384
MAX WORK GROUP SIZE: 512
MAX WORK ITEM DIMENSIONS: 3
MAX WORK ITEM SIZES: [ 512 512 512 ]
ASYNC PIXELPIPE: NO
PINNED MEMORY TRANSFER: NO
AVOID ATOMICS: NO
MICRO NAP: 250
ROUNDUP WIDTH & HEIGHT 16x16
CHECK EVENT HANDLES: 128
TILING ADVANTAGE: 0.000
DEFAULT DEVICE: NO
*** marked as disabled ***
[opencl_init] no suitable devices found.
6.9002 [opencl_init] FINALLY: opencl PREFERENCE=OFF is NOT AVAILABLE and NOT ENABLED.

</details>

https://docs.darktable.org/usermanual/4.6/en/special-topics/mem-performance/#device-specific-opencl-configuration

search your darktablerc file for:
cldevice_v5_intelropenclgraphicsintelririsrxegraphics=a b c d e f g1 i j k
and switch the parameter h from 1 “disable” to 0 “enable”
cldevice_v5_intelropenclgraphicsintelririsrxegraphics=a b c d e f g0 i j k

1 Like

Thanks Martin, I had tested to change this, following this answer to a similar post here [SOLVED] Can I properly enable OpenCL on Windows 11 and Intel Iris Xe graphics in Darktable 4.0? - #16 by olliwa. At the time it hadn’t worked. Maybe I was changing something else at the same time.

I tried it again today, and I can now activate OpenCL. Exports are quicker and the laptop’s fans do not scream anymore, thanks for the help !