top of page
Rechercher
  • Jean Buet

Darktable – Impossible d’activer OpenCL

Dernière mise à jour : 13 nov. 2021

Pour des raisons historiques Darktable bloque l’utilisation de la librairie OpenCL sur certaines GPU, dont les très répandues Intel UHD620 ou UHD630. Ce sont notamment des GPU embarquées dans les processeurs Intel.

Pour Activer OpenCL : Configuration > ‘’CPU/GPU/Mémoire’’ Cochez la case : Activer le support d’open CL

Si cette case est grisée allez dans le répertoire darktable/bin (sous windows : C:\Program Files\darktable\bin) et exécutez le programme darktable-cltest

S’il vous affiche une trentaine de ligne, regardez vers la fin et vous verrez surement que votre device graphic est Blacklisté.

0.100230 [opencl_init] found opencl runtime library 'OpenCL.dll'
0.100230 [opencl_init] opencl library 'OpenCL.dll' found on your system and loaded
0.200553 [opencl_init] found 1 platform
0.200553 [opencl_init] found 1 device
0.200553 [opencl_init] discarding device 0 `Intel(R) UHD Graphics 630' because the driver `OpenCL 3.0 NEO ' is blacklisted.
0.216080 [opencl_init] no suitable devices found.
0.216080 [opencl_init] FINALLY: opencl is NOT AVAILABLE on this system.
0.216080 [opencl_init] initial status of opencl enabled flag is OFF.

Si c’est le cas, bonne nouvelle, il y a une solution simple :

  1. Editer le fichier de config darktablerc(Sous windows, il se trouve dans le répertoire C:\Users\[votre Nom]\AppData\Local\darktable)

  2. Modifier la ligne : opencl_disable_drivers_blacklist=FALSE en remplaçant le FALSE par TRUE => opencl_disable_drivers_blacklist=TRUE

Relancer darktable-cltest et vous devriez avoir une bonne centaine de ligne qui s’affiche cette fois-ci et notamment à l’endroit ou avant vous aviez la notification de Blacklistage, vous devriez voir :

0.115910 [opencl_init] found opencl runtime library 'OpenCL.dll'
0.115910 [opencl_init] opencl library 'OpenCL.dll' found on your system and loaded
0.215946 [opencl_init] found 1 platform
0.215946 [opencl_init] found 1 device
0.215946 [opencl_init] device 0 `Intel(R) UHD Graphics 630' supports image sizes of 16384 x 16384
0.231479 [opencl_init] device 0 `Intel(R) UHD Graphics 630' allows GPU memory allocations of up to 4095MB
[opencl_init] device 0: Intel(R) UHD Graphics 630
 GLOBAL_MEM_SIZE: 13047MB
 MAX_WORK_GROUP_SIZE: 256
 MAX_WORK_ITEM_DIMENSIONS: 3
 MAX_WORK_ITEM_SIZES: [ 256 256 256 ]
 DRIVER_VERSION: 27.20.100.9316
 DEVICE_VERSION: OpenCL 3.0 NEO
(...)

Dernière étape : Maintenant les cases de configuration OpenCL ne sont plus grisées dans Darktable, il ne vous reste plus qu’a les activer et vérifier que Darktable utilise bien OpenCL


0 commentaire
bottom of page