# CUDA et OPENCL

**URL:** <https://darktable.fr/t/cuda-et-opencl/2550>\
**Category:** Sujet Libre\
**Created:** [Décembre 6, 2019, 10:21 UTC](https://darktable.fr/t/cuda-et-opencl/2550 "2019-12-06T10:21:53Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![valmy](https://darktable.fr/letter_avatar_proxy/v4/letter/v/7bcc69/32.png) [@valmy](https://darktable.fr/u/valmy)\
**Post date:** [Décembre 6, 2019, 10:21 UTC](https://darktable.fr/t/cuda-et-opencl/2550/1 "2019-12-06T10:21:53Z")

</div>

Est-ce que CUDA est vraiment un équivalent à Opencl ?  
[https://debian-facile.org/viewtopic.php?id=21539](https://debian-facile.org/viewtopic.php?id=21539)

---

<div class="post-metadata">

**Author:** ![jpg54](https://darktable.fr/user_avatar/darktable.fr/jpg54/32/21_2.png) [@jpg54](https://darktable.fr/u/jpg54)\
**Post date:** [Décembre 6, 2019, 12:01 UTC](https://darktable.fr/t/cuda-et-opencl/2550/2 "2019-12-06T12:01:05Z")

</div>

CUDA ne fonctionne pas bien avec les cartes graphiques intégrées Intel, par contre j’utilise le nouveau driver NEO d’Intel : [https://software.intel.com/en-us/forums/opencl/topic/758168](https://software.intel.com/en-us/forums/opencl/topic/758168)  
l’OpenCL de darktable l’utilise parfaitement :  
[![](https://i.ibb.co/xms3sy6/image.png)](https://ibb.co/xms3sy6)

---

<div class="post-metadata">

**Author:** ![valmy](https://darktable.fr/letter_avatar_proxy/v4/letter/v/7bcc69/32.png) [@valmy](https://darktable.fr/u/valmy)\
**Post date:** [Décembre 6, 2019, 3:30 UTC](https://darktable.fr/t/cuda-et-opencl/2550/3 "2019-12-06T15:30:59Z")

</div>

> [@jpg54](#):
>
> CUDA ne fonctionne pas bien avec les cartes graphiques intégrées Intel, par contre j’utilise le nouveau driver NEO d’Intel : [https://software.intel.com/en-us/forums/opencl/topic/758168](https://software.intel.com/en-us/forums/opencl/topic/758168)  
> l’OpenCL de darktable l’utilise parfaitement :  
> [![](https://i.ibb.co/xms3sy6/image.png)](https://ibb.co/xms3sy6)
> 
> Avec «&nbsp;nouveau&nbsp;» ou pilote nvidia propriétaire ?

---

<div class="post-metadata">

**Author:** ![aurelienpierre](https://darktable.fr/user_avatar/darktable.fr/aurelienpierre/32/31_2.png) [@aurelienpierre](https://darktable.fr/u/aurelienpierre)\
**Post date:** [Décembre 6, 2019, 3:50 UTC](https://darktable.fr/t/cuda-et-opencl/2550/4 "2019-12-06T15:50:52Z")

</div>

Cuda est du calcul distribué sur GPU Nvidia seulement. Sur Linux, le paquet cuda fournit aussi, semble-t-il, la couche de support pour OpenCL. Reste que le même code en Cuda donne systématiquement de meilleurs performances qu’en OpenCL.

Mais Cuda n’existe pas ailleurs que sur Nvidia.

---

<div class="post-metadata">

**Author:** ![valmy](https://darktable.fr/letter_avatar_proxy/v4/letter/v/7bcc69/32.png) [@valmy](https://darktable.fr/u/valmy)\
**Post date:** [Décembre 6, 2019, 3:55 UTC](https://darktable.fr/t/cuda-et-opencl/2550/5 "2019-12-06T15:55:02Z")

</div>

CUDA activé, darktable indique dans ses préférences que l’opencl n’est pas actif.

---

<div class="post-metadata">

**Author:** ![jpg54](https://darktable.fr/user_avatar/darktable.fr/jpg54/32/21_2.png) [@jpg54](https://darktable.fr/u/jpg54)\
**Post date:** [Décembre 6, 2019, 5:47 UTC](https://darktable.fr/t/cuda-et-opencl/2550/6 "2019-12-06T17:47:33Z")

</div>

Tu peux dire sur quelle carte graphique ?

---

<div class="post-metadata">

**Author:** ![aurelienpierre](https://darktable.fr/user_avatar/darktable.fr/aurelienpierre/32/31_2.png) [@aurelienpierre](https://darktable.fr/u/aurelienpierre)\
**Post date:** [Décembre 6, 2019, 7:23 UTC](https://darktable.fr/t/cuda-et-opencl/2550/7 "2019-12-06T19:23:00Z")

</div>

Il te manque probablement les headers OpenCL pour compiler les kernels.

---

<div class="post-metadata">

**Author:** ![valmy](https://darktable.fr/letter_avatar_proxy/v4/letter/v/7bcc69/32.png) [@valmy](https://darktable.fr/u/valmy)\
**Post date:** [Décembre 6, 2019, 7:57 UTC](https://darktable.fr/t/cuda-et-opencl/2550/8 "2019-12-06T19:57:27Z")

</div>

Carte graphique : NVIDIA geForce GT 740M  
système optimus.

---

<div class="post-metadata">

**Author:** ![jpg54](https://darktable.fr/user_avatar/darktable.fr/jpg54/32/21_2.png) [@jpg54](https://darktable.fr/u/jpg54)\
**Post date:** [Décembre 6, 2019, 8:20 UTC](https://darktable.fr/t/cuda-et-opencl/2550/9 "2019-12-06T20:20:08Z")

</div>

Le système m’est pas hybride Intel-NVidia. J’ai une NVidia GTX 1050 et une carte intégrée Intel, avec le nouveau driver NEO, j’ai parfaitement l’OpenCL dans darktable alors que la carte Intel est active :  
[![](https://i.ibb.co/GCWHWpN/image.png)](https://ibb.co/GCWHWpN)

---

<div class="post-metadata">

**Author:** ![valmy](https://darktable.fr/letter_avatar_proxy/v4/letter/v/7bcc69/32.png) [@valmy](https://darktable.fr/u/valmy)\
**Post date:** [Décembre 6, 2019, 9:19 UTC](https://darktable.fr/t/cuda-et-opencl/2550/10 "2019-12-06T21:19:57Z")

</div>

Tu es sur quelle distribution ?

---

<div class="post-metadata">

**Author:** ![jpg54](https://darktable.fr/user_avatar/darktable.fr/jpg54/32/21_2.png) [@jpg54](https://darktable.fr/u/jpg54)\
**Post date:** [Décembre 6, 2019, 9:47 UTC](https://darktable.fr/t/cuda-et-opencl/2550/11 "2019-12-06T21:47:09Z")

</div>

Linux Mint 19.3. Regardes dans les dépôts si NEO y est.  
Voilà ou je l’ai trouvé : [https://launchpad.net/~intel-opencl/+archive/ubuntu/intel-opencl](https://launchpad.net/~intel-opencl/+archive/ubuntu/intel-opencl)  
Après je n’ai pas regardé si ta carte NVidia est bien géré pour l’OpenCL. Il manque peut être quelque chose ?

---

<div class="post-metadata">

**Author:** ![valmy](https://darktable.fr/letter_avatar_proxy/v4/letter/v/7bcc69/32.png) [@valmy](https://darktable.fr/u/valmy)\
**Post date:** [Décembre 7, 2019, 8:03 UTC](https://darktable.fr/t/cuda-et-opencl/2550/12 "2019-12-07T08:03:19Z")

</div>

Merci. Je vais voir …

---

<div class="post-metadata">

**Author:** ![JacoTux](https://darktable.fr/user_avatar/darktable.fr/jacotux/32/67_2.png) [@JacoTux](https://darktable.fr/u/JacoTux)\
**Post date:** [Octobre 28, 2023, 8:31 UTC](https://darktable.fr/t/cuda-et-opencl/2550/13 "2023-10-28T20:31:01Z")

</div>

> [@valmy](#):
>
> CUDA activé, darktable indique dans ses préférences que l’opencl n’est pas actif.

Ce n’est pas ce que j’obtiens  
[![](https://i.ibb.co/R4xqHDJ/Capture-d-cran-2023-10-28-22-07-35.png)](https://ibb.co/R4xqHDJ)

---

<div class="post-metadata">

**Author:** ![jpg54](https://darktable.fr/user_avatar/darktable.fr/jpg54/32/21_2.png) [@jpg54](https://darktable.fr/u/jpg54)\
**Post date:** [Octobre 29, 2023, 7:52 UTC](https://darktable.fr/t/cuda-et-opencl/2550/14 "2023-10-29T07:52:25Z")

</div>

Bonjour Jacques, tu réponds un message de 2019. Je ne sais plus s’il est d’actualité.

---

<div class="post-metadata">

**Author:** ![JacoTux](https://darktable.fr/user_avatar/darktable.fr/jacotux/32/67_2.png) [@JacoTux](https://darktable.fr/u/JacoTux)\
**Post date:** [Octobre 29, 2023, 8:53 UTC](https://darktable.fr/t/cuda-et-opencl/2550/15 "2023-10-29T08:53:02Z")

</div>

> [@jpg54](#):
>
> Bonjour Jacques, tu réponds un message de 2019. Je ne sais plus s’il est d’actualité.

Effectivement à l’époque les préférences ne se présentaient peut-être pas ainsi.  
Toujours est il qu’avec la version actuelle de DT (master en l’espèce) il y a bien concomitance OpenCL et CUDA… faut-il avoir une carte Nvidia, de plus compatible.

Reste que depuis que j’ai complété mes paquets pour que Cuda soit pris en charge je note un ralentissement à l’ouverture d’une image dans la chambre noire. En l’état le meilleur réglage semble être celui que je présente dans ma capture écran ci-dessus.

Je piste les performances en lançant dt avec cette commande

```auto
darktable -d opencl -d perf
```

---

<div class="post-metadata">

**Author:** ![jpg54](https://darktable.fr/user_avatar/darktable.fr/jpg54/32/21_2.png) [@jpg54](https://darktable.fr/u/jpg54)\
**Post date:** [Octobre 29, 2023, 9:26 UTC](https://darktable.fr/t/cuda-et-opencl/2550/16 "2023-10-29T09:26:05Z")

</div>

Ca n’est pas identique chez moi :  
[![](https://i.ibb.co/vYgwVFR/image.png)](https://ibb.co/vYgwVFR)  
et voilà le résultat de la commande :

code: Gtk-WARNING \*\*: 10:19:29.546: Theme parsing error: gtk.css:1649:16: ‹&nbsp;-gtk-icon-size&nbsp;› is not a valid property name

(darktable:28647): Gtk-WARNING \*\*: 10:19:29.546: Theme parsing error: gtk.css:1652:16: ‹&nbsp;-gtk-icon-size&nbsp;› is not a valid property name  
0,2497 [dt\_get\_sysresource\_level] switched to 1 as `default’  
0,2497 total mem: 15835MB  
0,2498 mipmap cache: 1979MB  
0,2498 available mem: 7917MB  
0,2498 singlebuff: 123MB  
0,2498 OpenCL tune mem: WANTED  
0,2498 OpenCL pinned: WANTED  
[opencl\_init] opencl related configuration options:  
[opencl\_init] opencl: ON  
[opencl\_init] opencl\_scheduling\_profile: ‹&nbsp;very fast GPU&nbsp;›  
[opencl\_init] opencl\_library: ‹&nbsp;default path&nbsp;›  
[opencl\_init] opencl\_device\_priority: ‹&nbsp;_/!0,_/_/_/!0,\*&nbsp;›  
[opencl\_init] opencl\_mandatory\_timeout: 400  
0.2510 [dt\_dlopencl\_init] could not find default opencl runtime library ‹&nbsp;libOpenCL&nbsp;›  
0.2510 [dt\_dlopencl\_init] could not find default opencl runtime library ‹&nbsp;libOpenCL.so&nbsp;›  
[opencl\_init] opencl library ‹&nbsp;libOpenCL.so.1&nbsp;› found on your system and loaded  
[opencl\_init] found 1 platform  
[opencl\_init] found 1 device

[dt\_opencl\_device\_init]  
DEVICE: 0: ‹&nbsp;NVIDIA GeForce GTX 1650&nbsp;›  
PLATFORM NAME & VENDOR: NVIDIA CUDA, NVIDIA Corporation  
CANONICAL NAME: nvidiacudanvidiageforcegtx1650  
DRIVER VERSION: 470.161.03  
DEVICE VERSION: OpenCL 3.0 CUDA, SM\_20 SUPPORT  
DEVICE\_TYPE: GPU  
GLOBAL MEM SIZE: 3914 MB  
MAX MEM ALLOC: 979 MB  
MAX IMAGE SIZE: 32768 x 32768  
MAX WORK GROUP SIZE: 1024  
MAX WORK ITEM DIMENSIONS: 3  
MAX WORK ITEM SIZES: [1024 1024 64]  
ASYNC PIXELPIPE: NO  
PINNED MEMORY TRANSFER: WANTED  
MEMORY TUNING: WANTED  
FORCED HEADROOM: 400  
AVOID ATOMICS: NO  
MICRO NAP: 250  
ROUNDUP WIDTH: 16  
ROUNDUP HEIGHT: 16  
CHECK EVENT HANDLES: 128  
PERFORMANCE: 9.546  
TILING ADVANTAGE: 0.000  
DEFAULT DEVICE: NO  
KERNEL BUILD DIRECTORY: /usr/share/darktable/kernels  
KERNEL DIRECTORY: /home/jpg/.cache/darktable/cached\_v1\_kernels\_for\_NVIDIACUDANVIDIAGeForceGTX1650\_47016103  
CL COMPILER OPTION: -cl-fast-relaxed-math  
KERNEL LOADING TIME: 0.1518 sec  
[opencl\_init] OpenCL successfully initialized. Internal numbers and names of available devices:  
[opencl\_init] 0 ‹&nbsp;NVIDIA CUDA NVIDIA GeForce GTX 1650&nbsp;›  
[opencl\_init] FINALLY: opencl is AVAILABLE and ENABLED.  
[dt\_opencl\_update\_priorities] these are your device priorities:  
[dt\_opencl\_update\_priorities] image preview export thumbs preview2  
[dt\_opencl\_update\_priorities] 0 0 0 0 0  
[dt\_opencl\_update\_priorities] show if opencl use is mandatory for a given pixelpipe:  
[dt\_opencl\_update\_priorities] image preview export thumbs preview2  
[dt\_opencl\_update\_priorities] 1 1 1 1 1  
[opencl\_synchronization\_timeout] synchronization timeout set to 0  
[dt\_opencl\_update\_priorities] these are your device priorities:  
[dt\_opencl\_update\_priorities] image preview export thumbs preview2  
[dt\_opencl\_update\_priorities] 0 0 0 0 0  
[dt\_opencl\_update\_priorities] show if opencl use is mandatory for a given pixelpipe:  
[dt\_opencl\_update\_priorities] image preview export thumbs preview2  
[dt\_opencl\_update\_priorities] 1 1 1 1 1  
[opencl\_synchronization\_timeout] synchronization timeout set to 0

(darktable:28647): Gtk-WARNING \*\*: 10:19:30.152: Theme parsing error: gtk.css:1649:16: ‹&nbsp;-gtk-icon-size&nbsp;› is not a valid property name

(darktable:28647): Gtk-WARNING \*\*: 10:19:30.152: Theme parsing error: gtk.css:1652:16: ‹&nbsp;-gtk-icon-size&nbsp;› is not a valid property name

\*\* (darktable:28647): WARNING \*\*: 10:19:30.693: [Lensfun] /home/jpg/.local/share/lensfun/\_lcps.xml:1:28: Database version is 2, but newest supported is only 1!

remote: Enumerating objects: 5, done.  
remote: Counting objects: 100% (5/5), done.  
remote: Compressing objects: 100% (2/2), done.  
remote: Total 5 (delta 3), reused 4 (delta 3), pack-reused 0  
Dépaquetage des objets: 100% (5/5), 1.11 Kio | 227.00 Kio/s, fait.  
Depuis [https://github.com/darktable-org/lua-scripts](https://github.com/darktable-org/lua-scripts)  
d55dae7..867c49b master → origin/master  
erreur : Vos modifications locales aux fichiers suivants seraient écrasées par la fusion :  
contrib/enfuseAdvanced.lua  
Veuillez valider ou remiser vos modifications avant la fusion.[/code]

---

<div class="post-metadata">

**Author:** ![JacoTux](https://darktable.fr/user_avatar/darktable.fr/jacotux/32/67_2.png) [@JacoTux](https://darktable.fr/u/JacoTux)\
**Post date:** [Octobre 29, 2023, 11:17 UTC](https://darktable.fr/t/cuda-et-opencl/2550/17 "2023-10-29T11:17:58Z")

</div>

Ta carte GPU semble compatible CUDA , c’est curieux que tu n’aies pas ses entrées dans les préférences.  
Voilà ce que donne le retour de console à l’ouverture de dt chez moi.

[code]$ darktable -d opencl -d perf  
darktable 4.5.0+1014~g5f25f79812  
Copyright (C) 2012-2023 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.2.0  
Colord → ENABLED  
gPhoto2 → ENABLED  
GMIC → ENABLED - Compressed LUTs supported  
GraphicsMagick → ENABLED  
ImageMagick → DISABLED  
libavif → ENABLED  
libheif → ENABLED  
libjxl → ENABLED  
OpenJPEG → ENABLED  
OpenEXR → ENABLED  
WebP → ENABLED

See [https://www.darktable.org/resources/](https://www.darktable.org/resources/) for detailed documentation.  
See [https://github.com/darktable-org/darktable/issues/new/choose](https://github.com/darktable-org/darktable/issues/new/choose) to report bugs.

```
0,4770 [dt_get_sysresource_level] switched to 2 as `large'
0,4770 total mem: 15829MB
0,4770 mipmap cache: 1978MB
0,4770 available mem: 10821MB
0,4770 singlebuff: 989MB
0.4917 [opencl_init] opencl library 'libOpenCL' found on your system and loaded, preference 'default path'
0.6357 [opencl_init] found 2 platforms
0.6358 [check platform] platform 'Intel(R) OpenCL Graphics' with key 'clplatform_intelropenclgraphics' is NOT active

```

[opencl\_init] found 1 device

[dt\_opencl\_device\_init]  
DEVICE: 0: ‹&nbsp;Quadro P620&nbsp;›  
PLATFORM NAME & VENDOR: NVIDIA CUDA, NVIDIA Corporation  
CANONICAL NAME: nvidiacudaquadrop620  
DRIVER VERSION: 535.113.01  
DEVICE VERSION: OpenCL 3.0 CUDA, SM\_20 SUPPORT  
DEVICE\_TYPE: GPU, dedicated mem  
GLOBAL MEM SIZE: 1985 MB  
MAX MEM ALLOC: 496 MB  
MAX IMAGE SIZE: 16384 x 32768  
MAX WORK GROUP SIZE: 1024  
MAX WORK ITEM DIMENSIONS: 3  
MAX WORK ITEM SIZES: [1024 1024 64]  
ASYNC PIXELPIPE: NO  
PINNED MEMORY TRANSFER: NO  
USE HEADROOM: 400Mb  
AVOID ATOMICS: NO  
MICRO NAP: 250  
ROUNDUP WIDTH & HEIGHT 16x16  
CHECK EVENT HANDLES: 128  
TILING ADVANTAGE: 0.000  
DEFAULT DEVICE: NO  
KERNEL BUILD DIRECTORY: /usr/share/darktable/kernels  
KERNEL DIRECTORY: /home/jacotux/.cache/darktable/cached\_v2\_kernels\_for\_NVIDIACUDAQuadroP620\_53511301  
CL COMPILER OPTION: -cl-fast-relaxed-math  
KERNEL LOADING TIME: 0.0868 sec  
[opencl\_init] OpenCL successfully initialized. internal numbers and names of available devices:  
[opencl\_init] 0 ‹&nbsp;NVIDIA CUDA Quadro P620&nbsp;›  
0.7800 [opencl\_init] FINALLY: opencl is AVAILABLE and ENABLED.  
[opencl\_init] opencl\_scheduling\_profile: ‹&nbsp;default&nbsp;›  
[opencl\_init] opencl\_device\_priority: ‹&nbsp;_/!0,_/_/_&nbsp;›  
[opencl\_init] opencl\_mandatory\_timeout: 200  
[dt\_opencl\_update\_priorities] these are your device priorities:  
[dt\_opencl\_update\_priorities] image preview export thumbs preview2  
[dt\_opencl\_update\_priorities] 0 -1 0 0 -1  
[dt\_opencl\_update\_priorities] show if opencl use is mandatory for a given pixelpipe:  
[dt\_opencl\_update\_priorities] image preview export thumbs preview2  
[dt\_opencl\_update\_priorities] 0 0 0 0 0  
[opencl\_synchronization\_timeout] synchronization timeout set to 200  
[dt\_opencl\_update\_priorities] these are your device priorities:  
[dt\_opencl\_update\_priorities] image preview export thumbs preview2  
[dt\_opencl\_update\_priorities] 0 -1 0 0 -1  
[dt\_opencl\_update\_priorities] show if opencl use is mandatory for a given pixelpipe:  
[dt\_opencl\_update\_priorities] image preview export thumbs preview2  
[dt\_opencl\_update\_priorities] 0 0 0 0 0  
[opencl\_synchronization\_timeout] synchronization timeout set to 200[/code]

Et la suite en passant une image dans la chambre noire  
A préciser que 15 modules s’activent à ce moment, soit par défaut soit par préférence personnelle.

`346,9090 [dt_dev_load_raw] loading the image. took 0,286 secs (1,782 CPU)
  347,5330 [histogram] took 0,000 secs (0,000 CPU) scope draw
  347,6953 [dt_dev_process_image_job] loading image. took 0,000 secs (0,000 CPU)
  347,7639 [dt_opencl_check_tuning] use 1584MB (headroom=ON, pinning=OFF) on device `NVIDIA CUDA Quadro P620' id=0
  347,7642 [dev_pixelpipe] took 0,000 secs (0,000 CPU) initing base buffer [full]
  347,7796 [histogram] took 0,000 secs (0,000 CPU) scope draw
  347,7823 [dev_pixelpipe] took 0,018 secs (0,033 CPU) [full] processed `rawprepare' on GPU, blended on GPU
  347,7896 [dev_pixelpipe] took 0,007 secs (0,008 CPU) [full] processed `temperature' on GPU, blended on GPU
  347,8422 [dev_pixelpipe] took 0,053 secs (0,057 CPU) [full] processed `highlights' on GPU, blended on GPU
  347,9113 [dev_pixelpipe] took 0,069 secs (0,232 CPU) [full] processed `hotpixels' on CPU, blended on CPU
  347,9314 [opencl copy_buffer_to_buffer] could not copy buffer on device 0: CL_MEM_OBJECT_ALLOCATION_FAILURE
  347,9647 [opencl_demosaic] markesteijn problem 'CL_MEM_OBJECT_ALLOCATION_FAILURE'
  347,9690 [default_process_tiling_opencl_roi] [full] couldn't run process_cl() for module 'demosaic' in tiling mode: CL_MEM_OBJECT_ALLOCATION_FAILURE
  347,9690 Error: process_tiling_CL [full] demosaic ( 0/ 0) 6252x4162 scale=1,0000 --> ( 0/ 0) 1664x1108 scale=0,2662 device=0 (nvidiacudaquadrop620), CL_MEM_OBJECT_ALLOCATION_FAILURE
  347,9691 pixelpipe process CL [full] demosaic ( 0/ 0) 6252x4162 scale=1,0000 --> ( 0/ 0) 1664x1108 scale=0,2662 couldn't run module on GPU, falling back to CPU
  349,4801 [resample_plain] plan 0,000 secs (0,000 CPU) resample 0,134 secs (1,528 CPU)
  349,5319 [dev_pixelpipe] took 1,621 secs (17,001 CPU) [full] processed `demosaic' on CPU, blended on CPU
  349,5896 [dev_pixelpipe] took 0,058 secs (0,052 CPU) [full] processed `denoiseprofile' on GPU, blended on GPU
  349,6145 [dev_pixelpipe] took 0,025 secs (0,025 CPU) [full] processed `lens' on GPU, blended on GPU
  349,6940 [histogram] took 0,000 secs (0,000 CPU) scope draw
  349,8014 [dev_pixelpipe] took 0,187 secs (1,050 CPU) [full] processed `cacorrectrgb' on CPU, blended on CPU
  349,8084 [dev_pixelpipe] took 0,007 secs (0,007 CPU) [full] processed `exposure' on GPU, blended on GPU
  349,8112 [dev_pixelpipe] took 0,003 secs (0,002 CPU) [full] processed `colorin' on GPU, blended on GPU
  349,8139 [dt_ioppr_transform_image_colorspace_cl] IOP_CS_LAB-->IOP_CS_RGB took 0,002 secs (0,002 GPU) [channelmixerrgb]
  349,8181 [dev_pixelpipe] took 0,007 secs (0,003 CPU) [full] processed `channelmixerrgb' on GPU, blended on GPU
  349,8228 [dev_pixelpipe] took 0,005 secs (0,004 CPU) [full] processed `colorbalancergb' on GPU, blended on GPU
  349,8284 [dev_pixelpipe] took 0,006 secs (0,005 CPU) [full] processed `filmicrgb' on GPU, blended on GPU
  349,8319 [dt_ioppr_transform_image_colorspace_cl] IOP_CS_RGB-->IOP_CS_LAB took 0,003 secs (0,003 GPU) [colorout]
  349,8468 [dev_pixelpipe] took 0,018 secs (0,015 CPU) [full] processed `colorout' on GPU, blended on GPU
  349,8613 [dev_pixelpipe] took 0,015 secs (0,066 CPU) [full] processed `gamma' on CPU, blended on CPU
  349,8614 [opencl_profiling] profiling device 0 ('NVIDIA CUDA Quadro P620'):
  349,8614 [opencl_profiling] spent 0,0373 seconds in [Write Image (from host to device)]
  349,8614 [opencl_profiling] spent 0,0045 seconds in rawprepare_1f
  349,8614 [opencl_profiling] spent 0,0049 seconds in whitebalance_1f_xtrans
  349,8614 [opencl_profiling] spent 0,0056 seconds in highlights_initmask
  349,8614 [opencl_profiling] spent 0,0076 seconds in highlights_dilatemask
  349,8614 [opencl_profiling] spent 0,0000 seconds in [Write Buffer (from host to device)]
  349,8614 [opencl_profiling] spent 0,0228 seconds in highlights_chroma
  349,8614 [opencl_profiling] spent 0,0000 seconds in [Read Buffer (from device to host)]
  349,8614 [opencl_profiling] spent 0,0107 seconds in highlights_opposed
  349,8614 [opencl_profiling] spent 0,0566 seconds in [Read Image (from device to host)]
  349,8614 [opencl_profiling] spent 0,0142 seconds in markesteijn_initial_copy
  349,8614 [opencl_profiling] spent 0,0130 seconds in [Copy Buffer to Buffer (on device)]
  349,8614 [opencl_profiling] spent 0,0010 seconds in denoiseprofile_precondition_Y0U0V0
  349,8614 [opencl_profiling] spent 0,0284 seconds in denoiseprofile_decompose
  349,8614 [opencl_profiling] spent 0,0037 seconds in denoiseprofile_reduce_first
  349,8614 [opencl_profiling] spent 0,0000 seconds in denoiseprofile_reduce_second
  349,8614 [opencl_profiling] spent 0,0069 seconds in denoiseprofile_synthesize
  349,8614 [opencl_profiling] spent 0,0030 seconds in [Copy Image (on device)]
  349,8614 [opencl_profiling] spent 0,0010 seconds in denoiseprofile_backtransform_Y0U0V0
  349,8615 [opencl_profiling] spent 0,0013 seconds in md_vignette
  349,8615 [opencl_profiling] spent 0,0209 seconds in md_lens_correction
  349,8615 [opencl_profiling] spent 0,0009 seconds in exposure
  349,8615 [opencl_profiling] spent 0,0010 seconds in colorin_unbound
  349,8615 [opencl_profiling] spent 0,0010 seconds in colorspaces_transform_lab_to_rgb_matrix
  349,8615 [opencl_profiling] spent 0,0013 seconds in channelmixerrgb_CAT16
  349,8615 [opencl_profiling] spent 0,0023 seconds in colorbalancergb
  349,8615 [opencl_profiling] spent 0,0006 seconds in filmic_mask_clipped_pixels
  349,8615 [opencl_profiling] spent 0,0020 seconds in filmicrgb_chroma
  349,8615 [opencl_profiling] spent 0,0009 seconds in colorspaces_transform_rgb_matrix_to_lab
  349,8615 [opencl_profiling] spent 0,0026 seconds in colorout
  349,8615 [opencl_profiling] spent 0,2559 seconds totally in command queue (with 1 event missing)
  349,8641 [dev_process_image] pixel pipeline took 2,100 secs (18,564 CPU) processing `DSCF0216.RAF'
  349,8665 [histogram] took 0,000 secs (0,000 CPU) scope draw
  349,8736 [dt_dev_process_image_job] loading image. took 0,000 secs (0,002 CPU)
  349,8736 [dt_dev_process_image_job] loading image. took 0,000 secs (0,000 CPU)
  349,8798 [dev_process_image] pixel pipeline took 0,006 secs (0,034 CPU) processing `DSCF0216.RAF'
  349,8940 [histogram] took 0,000 secs (0,000 CPU) scope draw
  349,8956 [dt_dev_process_image_job] loading image. took 0,000 secs (0,000 CPU)
  349,9053 [dt_dev_process_image_job] loading image. took 0,000 secs (0,000 CPU)
  349,9227 [dt_dev_process_image_job] loading image. took 0,000 secs (0,000 CPU)
  349,9405 [dt_dev_process_image_job] loading image. took 0,000 secs (0,000 CPU)
  349,9882 [dev_pixelpipe] took 0,000 secs (0,000 CPU) initing base buffer [preview]
  349,9897 [dev_pixelpipe] took 0,001 secs (0,000 CPU) [preview] processed `rawprepare' on CPU, blended on CPU
  349,9917 [dev_pixelpipe] took 0,002 secs (0,000 CPU) [preview] processed `temperature' on CPU, blended on CPU
  349,9933 [dev_pixelpipe] took 0,001 secs (0,003 CPU) [preview] processed `highlights' on CPU, blended on CPU
  349,9954 [dev_pixelpipe] took 0,002 secs (0,011 CPU) [preview] processed `hotpixels' on CPU, blended on CPU
  350,0969 [dev_pixelpipe] took 0,101 secs (0,897 CPU) [preview] processed `demosaic' on CPU, blended on CPU
  350,2305 [dev_pixelpipe] took 0,134 secs (1,295 CPU) [preview] processed `denoiseprofile' on CPU, blended on CPU
  350,2721 [dev_pixelpipe] took 0,042 secs (0,375 CPU) [preview] processed `lens' on CPU, blended on CPU
  350,4078 [dev_pixelpipe] took 0,136 secs (0,798 CPU) [preview] processed `cacorrectrgb' on CPU, blended on CPU
  350,4139 [dev_pixelpipe] took 0,006 secs (0,036 CPU) [preview] processed `exposure' on CPU, blended on CPU
  350,4198 [dev_pixelpipe] took 0,006 secs (0,027 CPU) [preview] processed `colorin' on CPU, blended on CPU
  350,4225 [dt_ioppr_transform_image_colorspace] IOP_CS_LAB-->IOP_CS_RGB took 0,002 secs (0,022 CPU) [channelmixerrgb]
  350,4381 [dev_pixelpipe] took 0,018 secs (0,168 CPU) [preview] processed `channelmixerrgb' on CPU, blended on CPU
  350,4926 [dev_pixelpipe] took 0,054 secs (0,585 CPU) [preview] processed `colorbalancergb' on CPU, blended on CPU
  350,5202 [dev_pixelpipe] took 0,028 secs (0,310 CPU) [preview] processed `filmicrgb' on CPU, blended on CPU
  350,5225 [dt_ioppr_transform_image_colorspace] IOP_CS_RGB-->IOP_CS_LAB took 0,002 secs (0,024 CPU) [colorout]
  350,5307 [dev_pixelpipe] took 0,010 secs (0,085 CPU) [preview] processed `colorout' on CPU, blended on CPU
  350,5342 [dev_pixelpipe] took 0,003 secs (0,025 CPU) [preview] processed `gamma' on CPU, blended on CPU
  350,5399 [dt_ioppr_transform_image_colorspace_rgb] RGB-->RGB took 0,006 secs (0,030 CPU) [final histogram]
  350,5411 histogram calculation 256 bins 2 -> -1 compensate 0 3 channels 1205120 pixels took 0,001 secs (0,011 CPU)
  350,5413 [histogram] took 0,007 secs (0,041 CPU) final histogram
  350,5427 [dev_process_image] pixel pipeline took 0,555 secs (4,658 CPU) processing `DSCF0216.RAF'
  350,5752 [histogram] took 0,004 secs (0,001 CPU) scope draw
  352,6869 [histogram] took 0,001 secs (0,001 CPU) scope draw
  352,8576 [histogram] took 0,001 secs (0,001 CPU) scope draw`

On voit que certaines tâches sont dédiées au CPU d’autres au GPU

---

<div class="post-metadata">

**Author:** ![Cobert](https://darktable.fr/letter_avatar_proxy/v4/letter/c/5daacb/32.png) [@Cobert](https://darktable.fr/u/Cobert)\
**Post date:** [Octobre 29, 2023, 11:39 UTC](https://darktable.fr/t/cuda-et-opencl/2550/18 "2023-10-29T11:39:18Z")

</div>

Sur la master, j’ai aussi la rubrique pilotes opencl, tout les pilotes étaientt cochés par défaut.  
Je n’ai gardé que cuda.  
@jacotux  
Chez moi «&nbsp;démosaic&nbsp;» est sur le GPU, d’après la trace il semble qu’il y ai un pb d’allocation.

Cordialement.

`5,3353 [dt_dev_load_raw] loading the image. took 1,333 secs (5,721 CPU)
     5,8240 [histogram] took 0,000 secs (0,000 CPU) scope draw
     5,8475 [dt_dev_process_image_job] loading image. took 0,000 secs (0,000 CPU)
     5,8677 [histogram] took 0,000 secs (0,002 CPU) scope draw
     5,8833 [histogram] took 0,000 secs (0,000 CPU) scope draw
     5,8960 [histogram] took 0,000 secs (0,000 CPU) scope draw
     5,9135 [histogram] took 0,000 secs (0,000 CPU) scope draw
     5,9293 [histogram] took 0,000 secs (0,000 CPU) scope draw
     5,9445 [dt_opencl_check_tuning] use 5170MB (headroom=OFF, pinning=OFF) on device `NVIDIA CUDA NVIDIA GeForce RTX 3060 Ti' id=0
     5,9446 [dev_pixelpipe] took 0,000 secs (0,000 CPU) initing base buffer [full]
     5,9493 [histogram] took 0,000 secs (0,000 CPU) scope draw
     5,9517 [dev_pixelpipe] took 0,007 secs (0,013 CPU) [full] processed `rawprepare' on GPU, blended on GPU
     6,2056 [dev_pixelpipe] module `rawprepare' min: (0,000471) max: (1,068696) [full]
     6,2072 [dev_pixelpipe] took 0,002 secs (0,001 CPU) [full] processed `temperature' on GPU, blended on GPU
     6,4536 [dev_pixelpipe] module `temperature' min: (0,000654) max: (1,276772) [full]
     6,4605 [dev_pixelpipe] took 0,007 secs (0,003 CPU) [full] processed `highlights' on GPU, blended on GPU
     6,7062 [dev_pixelpipe] module `highlights' min: (0,000654) max: (1,276772) [full]
     6,7497 [resample_cl] plan 0,003 secs (0,003 CPU) resample 0,005 secs (0,002 CPU)
     6,7601 [dev_pixelpipe] took 0,054 secs (0,025 CPU) [full] processed `demosaic' on GPU, blended on GPU
     6,7819 [dev_pixelpipe] module `demosaic' min: (0,001121; 0,000000; 0,000000) max: (1,212149; 1,235821; 1,263200) [full]
     6,7827 [dev_pixelpipe] took 0,001 secs (0,000 CPU) [full] processed `exposure' on GPU, blended on GPU
     6,8046 [dev_pixelpipe] module `exposure' min: (0,002217; 0,000000; 0,000000) max: (1,968758; 2,007198; 2,051658) [full]
     6,8052 [dev_pixelpipe] took 0,001 secs (0,000 CPU) [full] processed `crop' on GPU, blended on GPU
     6,8270 [dev_pixelpipe] module `crop' min: (0,002217; 0,000000; 0,000000) max: (1,968758; 2,007198; 2,051658) [full]
     6,8285 [dev_pixelpipe] took 0,002 secs (0,000 CPU) [full] processed `colorin' on GPU, blended on GPU
     6,8503 [dev_pixelpipe] module `colorin' min: (2,419650; -7,183880; -4,697680) max: (129,840057; 15,173584; 27,577257) [full]
     6,8528 [dt_ioppr_transform_image_colorspace_cl] IOP_CS_LAB-->IOP_CS_RGB took 0,002 secs (0,000 GPU) [channelmixerrgb]
     6,8538 [dev_pixelpipe] took 0,003 secs (0,000 CPU) [full] processed `channelmixerrgb' on GPU, blended on GPU
     6,8756 [dev_pixelpipe] module `channelmixerrgb' min: (0,001720; 0,000000; 0,000000) max: (1,841117; 2,014867; 2,479171) [full]
     6,8849 [dev_pixelpipe] took 0,009 secs (0,005 CPU) [full] processed `diffuse' on GPU, blended on GPU
     6,9067 [dev_pixelpipe] module `diffuse' min: (0,000000; 0,000000; 0,000000) max: (1,845252; 2,018082; 2,484316) [full]
     6,9097 [dev_pixelpipe] took 0,003 secs (0,000 CPU) [full] processed `filmicrgb' on GPU, blended on GPU
     6,9315 [dev_pixelpipe] module `filmicrgb' min: (0,000089; 0,000000; 0,000000) max: (0,780945; 0,823388; 0,935949) [full]
     6,9337 [dt_ioppr_transform_image_colorspace_cl] IOP_CS_RGB-->IOP_CS_LAB took 0,002 secs (0,000 GPU) [colorout]
     6,9363 [dev_pixelpipe] took 0,005 secs (0,000 CPU) [full] processed `colorout' on GPU, blended on GPU
     6,9580 [dev_pixelpipe] module `colorout' min: (0,000000; 0,000000; 0,000000) max: (0,878124; 0,920086; 0,978001) [full]
     6,9609 [dev_pixelpipe] took 0,003 secs (0,023 CPU) [full] processed `gamma' on CPU, blended on CPU
     6,9787 [dev_pixelpipe] module `gamma' min: (0,000000; 0,000000; 0,000000) max: (0,000000; 0,00000`

---

<div class="post-metadata">

**Author:** ![jpg54](https://darktable.fr/user_avatar/darktable.fr/jpg54/32/21_2.png) [@jpg54](https://darktable.fr/u/jpg54)\
**Post date:** [Octobre 29, 2023, 2:15 UTC](https://darktable.fr/t/cuda-et-opencl/2550/19 "2023-10-29T14:15:47Z")

</div>

Voilà mon système :

`Système d'exploitation : openSUSE Tumbleweed 20230505
Version de KDE Plasma : 5.27.4
Version de KDE Frameworks : 5.105.0
Version de Qt : 5.15.9
Version de noyau : 6.2.12-1-default (64-bit)
Plate-forme graphique : X11
Processeurs : 8 × Intel® Core™ i5-8300H CPU @ 2.30GHz
Mémoire : 15,5 Gio de mémoire vive
Processeur graphique : NVIDIA GeForce GTX 1650/PCIe/SSE2
Fabricant : ASUSTeK COMPUTER INC.
Nom du produit : VivoBook_ASUSLaptop X571GT_A571GT
Version du système : 1.0`  
En principe avec I4-8300H, j’ai aussi le OpenGL Intel. Je n’ai pas installé les drivers.

---

<div class="post-metadata">

**Author:** ![JacoTux](https://darktable.fr/user_avatar/darktable.fr/jacotux/32/67_2.png) [@JacoTux](https://darktable.fr/u/JacoTux)\
**Post date:** [Octobre 29, 2023, 10:34 UTC](https://darktable.fr/t/cuda-et-opencl/2550/20 "2023-10-29T22:34:30Z")

</div>

@ Cobert

j’ai changé de setup, en fait celui qui est proposé par défaut.

[![](https://i.ibb.co/1RP76zD/Capture-d-cran-2023-10-29-23-10-21.png)](https://ibb.co/1RP76zD)

Et cela change la donne

` 30,6599 [dt_dev_load_raw] loading the image. took 0,246 secs (1,775 CPU)
    31,2647 [histogram] took 0,000 secs (0,000 CPU) scope draw
    31,4298 [dt_dev_process_image_job] loading image. took 0,000 secs (0,000 CPU)
    31,4907 [dev_pixelpipe] took 0,000 secs (0,000 CPU) initing base buffer [full]
    31,5171 [histogram] took 0,000 secs (0,000 CPU) scope draw
    31,5512 [dev_pixelpipe] took 0,060 secs (0,059 CPU) [full] processed `rawprepare' on GPU, blended on GPU
    31,5943 [dev_pixelpipe] took 0,043 secs (0,031 CPU) [full] processed `temperature' on GPU, blended on GPU
    31,6732 [dev_pixelpipe] took 0,079 secs (0,016 CPU) [full] processed `highlights' on GPU, blended on GPU
    31,7564 [dev_pixelpipe] took 0,083 secs (0,203 CPU) [full] processed `hotpixels' on CPU, blended on CPU
    33,8424 [resample_cl] plan 0,001 secs (0,001 CPU) resample 0,028 secs (0,001 CPU)
    34,9952 [dev_pixelpipe] took 3,239 secs (0,052 CPU) [full] processed `demosaic' on GPU with tiling, blended on CPU
    35,2293 [dev_pixelpipe] took 0,234 secs (0,040 CPU) [full] processed `denoiseprofile' on GPU, blended on GPU
    35,2765 [dev_pixelpipe] took 0,047 secs (0,010 CPU) [full] processed `lens' on GPU, blended on GPU
    35,4725 [dev_pixelpipe] took 0,196 secs (0,864 CPU) [full] processed `cacorrectrgb' on CPU, blended on CPU
    35,4960 [dev_pixelpipe] took 0,023 secs (0,010 CPU) [full] processed `exposure' on GPU, blended on GPU
    35,5112 [dev_pixelpipe] took 0,015 secs (0,005 CPU) [full] processed `colorin' on GPU, blended on GPU
    35,5246 [dt_ioppr_transform_image_colorspace_cl] IOP_CS_LAB-->IOP_CS_RGB took 0,013 secs (0,003 GPU) [channelmixerrgb]
    35,5419 [dev_pixelpipe] took 0,031 secs (0,007 CPU) [full] processed `channelmixerrgb' on GPU, blended on GPU
    35,5606 [dev_pixelpipe] took 0,019 secs (0,002 CPU) [full] processed `colorbalancergb' on GPU, blended on GPU
    35,5786 [dev_pixelpipe] took 0,018 secs (0,004 CPU) [full] processed `filmicrgb' on GPU, blended on GPU
    35,5915 [dt_ioppr_transform_image_colorspace_cl] IOP_CS_RGB-->IOP_CS_LAB took 0,012 secs (0,003 GPU) [colorout]
    35,6173 [dev_pixelpipe] took 0,039 secs (0,006 CPU) [full] processed `colorout' on GPU, blended on GPU
    35,6370 [dev_pixelpipe] took 0,020 secs (0,038 CPU) [full] processed `gamma' on CPU, blended on CPU
    35,6398 [dev_process_image] pixel pipeline took 4,149 secs (1,353 CPU) processing `DSCF0216.RAF'
    35,6418 [histogram] took 0,000 secs (0,000 CPU) scope draw
    35,6490 [dt_dev_process_image_job] loading image. took 0,000 secs (0,000 CPU)
    35,6491 [dt_dev_process_image_job] loading image. took 0,000 secs (0,001 CPU)
    35,7733 [dev_process_image] pixel pipeline took 0,124 secs (0,492 CPU) processing `DSCF0216.RAF'
    35,7864 [histogram] took 0,000 secs (0,000 CPU) scope draw
    35,7876 [dt_dev_process_image_job] loading image. took 0,000 secs (0,000 CPU)
    35,8485 [dev_pixelpipe] took 0,000 secs (0,000 CPU) initing base buffer [preview]
    35,8528 [dev_pixelpipe] took 0,004 secs (0,011 CPU) [preview] processed `rawprepare' on GPU, blended on GPU
    35,8552 [dev_pixelpipe] took 0,002 secs (0,002 CPU) [preview] processed `temperature' on GPU, blended on GPU
    35,8578 [dev_pixelpipe] took 0,002 secs (0,003 CPU) [preview] processed `highlights' on GPU, blended on GPU
    35,8631 [dev_pixelpipe] took 0,005 secs (0,023 CPU) [preview] processed `hotpixels' on CPU, blended on CPU
    36,0163 [dev_pixelpipe] took 0,153 secs (0,156 CPU) [preview] processed `demosaic' on GPU, blended on GPU
    36,1115 [dev_pixelpipe] took 0,095 secs (0,040 CPU) [preview] processed `denoiseprofile' on GPU, blended on GPU
    36,1526 [dev_pixelpipe] took 0,041 secs (0,006 CPU) [preview] processed `lens' on GPU, blended on GPU
    36,3039 [dev_pixelpipe] took 0,151 secs (0,791 CPU) [preview] processed `cacorrectrgb' on CPU, blended on CPU
    36,3196 [dev_pixelpipe] took 0,016 secs (0,009 CPU) [preview] processed `exposure' on GPU, blended on GPU
    36,3284 [dev_pixelpipe] took 0,009 secs (0,001 CPU) [preview] processed `colorin' on GPU, blended on GPU
    36,3369 [dt_ioppr_transform_image_colorspace_cl] IOP_CS_LAB-->IOP_CS_RGB took 0,008 secs (0,000 GPU) [channelmixerrgb]
    36,3482 [dev_pixelpipe] took 0,020 secs (0,000 CPU) [preview] processed `channelmixerrgb' on GPU, blended on GPU
    36,3613 [dev_pixelpipe] took 0,013 secs (0,000 CPU) [preview] processed `colorbalancergb' on GPU, blended on GPU
    36,3750 [dev_pixelpipe] took 0,014 secs (0,000 CPU) [preview] processed `filmicrgb' on GPU, blended on GPU
    36,3832 [dt_ioppr_transform_image_colorspace_cl] IOP_CS_RGB-->IOP_CS_LAB took 0,008 secs (0,000 GPU) [colorout]
    36,4025 [dev_pixelpipe] took 0,028 secs (0,012 CPU) [preview] processed `colorout' on GPU, blended on GPU
    36,4137 [dev_pixelpipe] took 0,011 secs (0,045 CPU) [preview] processed `gamma' on CPU, blended on CPU
    36,4208 [dt_ioppr_transform_image_colorspace_rgb] RGB-->RGB took 0,007 secs (0,035 CPU) [final histogram]`

@ Jean-Paul  
Le fait de ne pas avoir la pilote pour OpenCL Intel fait peut-être que dt ne prenne pas ce CPU en charge.

[Page suivante](https://darktable.fr/t/cuda-et-opencl/2550.md?page=2)
