Hi all,
I just noticed this: if I try to do a slideshow on a single image (using 1 for debugging purposes) where I used the module Diffuse or Sharpen (preset “add local contrast”), darktable (3.8.0) seems to hang forever.
I ran again darktable from the terminal with “-d opencl -d perf”, and I noticed that the processing is excruciatingly slow because of tiling. Here’s what the terminal says:
733,156404 [default_process_tiling_cl_ptp] use tiling on module ‘diffuse’ for image with full size 4299 x 2865
733,156432 [default_process_tiling_cl_ptp] (47 x 32) tiles with max dimensions 2140 x 2140 and overlap 1024
733,156436 [default_process_tiling_cl_ptp] tile (0, 0) with 2140 x 2140 at origin [0, 0]
754,673257 [default_process_tiling_cl_ptp] tile (0, 1) with 2140 x 2140 at origin [0, 92]
776,086378 [default_process_tiling_cl_ptp] tile (0, 2) with 2140 x 2140 at origin [0, 184]
797,651121 [default_process_tiling_cl_ptp] tile (0, 3) with 2140 x 2140 at origin [0, 276]
…
at which point I terminate the process because with 20 sec per tile and 47 x 32 tiles, that would amount to around 500 min wait time (for a slideshow of a single image!).
In darktable’s preference opencl is on and I left the parameters for processing at their default value:
- host memory limit for tiling: 1500 MB
- min amount of memory for a single buffer in tiling: 16
- open cl: on
- scheduling profile: default
This is what the terminal reports about opencl and GPU:
0.112876 [opencl_init] opencl related configuration options:
0.112893 [opencl_init]
0.112896 [opencl_init] opencl: 1
0.112897 [opencl_init] opencl_scheduling_profile: ‘default’
0.112899 [opencl_init] opencl_library: ‘’
0.112902 [opencl_init] opencl_memory_requirement: 768
0.112904 [opencl_init] opencl_memory_headroom: 400
0.112906 [opencl_init] opencl_device_priority: ‘/!0,///!0,*’
0.112909 [opencl_init] opencl_mandatory_timeout: 200
0.112911 [opencl_init] opencl_size_roundup: 16
0.112913 [opencl_init] opencl_async_pixelpipe: 0
0.112914 [opencl_init] opencl_synch_cache: active module
0.112917 [opencl_init] opencl_number_event_handles: 25
0.112919 [opencl_init] opencl_micro_nap: 1000
0.112920 [opencl_init] opencl_use_pinned_memory: 0
0.112922 [opencl_init] opencl_use_cpu_devices: 0
0.112924 [opencl_init] opencl_avoid_atomics: 0
0.112925 [opencl_init]
0.113040 [opencl_init] found opencl runtime library ‘/System/Library/Frameworks/OpenCL.framework/Versions/Current/OpenCL’
0.113065 [opencl_init] opencl library ‘/System/Library/Frameworks/OpenCL.framework/Versions/Current/OpenCL’ found on your system and loaded
0.113070 [opencl_init] found 1 platform
0.123694 [opencl_init] found 2 devices
0.123730 [opencl_init] discarding CPU device 0 Intel(R) Core(TM) i5-1038NG7 CPU @ 2.00GHz'. 0.123745 [opencl_init] device 1
Intel(R) Iris™ Plus Graphics’ supports image sizes of 16384 x 16384
0.123748 [opencl_init] device 1 Intel(R) Iris(TM) Plus Graphics' allows GPU memory allocations of up to 384MB [opencl_init] device 1: Intel(R) Iris(TM) Plus Graphics CANONICAL_NAME: intelri GLOBAL_MEM_SIZE: 1536MB MAX_WORK_GROUP_SIZE: 256 MAX_WORK_ITEM_DIMENSIONS: 3 MAX_WORK_ITEM_SIZES: [ 256 256 256 ] DRIVER_VERSION: 1.2(Nov 30 2021 21:37:29) DEVICE_VERSION: OpenCL 1.2 0.126281 [opencl_init] options for OpenCL compiler: -w -cl-fast-relaxed-math -DUNKNOWN=1 -I/Applications/darktable.app/Contents/Resources/share/darktable/kernels 0.126601 [opencl_init] compiling program
demosaic_ppg.cl’ …
0.126771 [opencl_load_program] loaded cached binary program from file ‘/Users/gp/.cache/darktable/cached_kernels_for_IntelRIrisTMPlusGraphics_12Nov302021213729/demosaic_ppg.cl.bin’ MD5: ‘2eaae229d53a295428553b86397ee691’
0.126777 [opencl_load_program] successfully loaded program from ‘/Applications/darktable.app/Contents/Resources/share/darktable/kernels/demosaic_ppg.cl’ MD5: ‘2eaae229d53a295428553b86397ee691’
0.128074 [opencl_build_program] successfully built program
0.128093 [opencl_build_program] BUILD STATUS: 0
I wonder what the problem is and whether there is a way around it. My system is a MacBook Pro 2020, with a 2GHz Quad-core intel core i5, with 16 GB of RAM, and integrated graphics Intel Iris Plus Graphics 1536 MB.
Thanks in advance for any advice!
giuseppe