I’m getting the CL_OUT_OF_RESOURCES errors on processing the filmicrgb & colorout kernels. I have no idea why. I believe there is enough resources for the OpenCL. The dt_ioppr_transform_image_colorspace operation precede both errors. Maybe the culprit?
I ran dt with various resourcelevel setting. None helped.
Could someone help me please figure out why these errors appear and how to avoid them to prevent pixelpipe processing from failing to CPU? I run dt on ARM SBC, therefore any unnecessary slowing down the pixelpipe processing hurts a lot.
tux@rock5b ~> darktable -d perf -d opencl -d tiling --conf resourcelevel="large"
[dt_detect_cpu_features] Not implemented for this architecture.
[dt_detect_cpu_features] Please contribute a patch.
0.0001 [dt_init] SSE2 is unavailable, some functions will be noticeably slower.
[dt_detect_cpu_features] Not implemented for this architecture.
[dt_detect_cpu_features] Please contribute a patch.
0,0716 [dt_get_sysresource_level] switched to 2 as `large'
0,0717 total mem: 15967MB
0,0717 mipmap cache: 1995MB
0,0717 available mem: 10915MB
0,0717 singlebuff: 249MB
0,0717 OpenCL tune mem: WANTED
0,0717 OpenCL pinned: OFF
[opencl_init] opencl related configuration options:
[opencl_init] opencl: ON
[opencl_init] opencl_scheduling_profile: 'default'
[opencl_init] opencl_library: 'default path'
[opencl_init] opencl_device_priority: '*/!0,*/*/*/!0,*'
[opencl_init] opencl_mandatory_timeout: 400
0.0762 [dt_dlopencl_init] could not find default opencl runtime library 'libOpenCL'
0.0763 [dt_dlopencl_init] could not find default opencl runtime library 'libOpenCL.so'
[opencl_init] opencl library 'libOpenCL.so.1' found on your system and loaded
arm_release_ver: g13p0-01eac0, rk_so_ver: 3
[opencl_init] found 1 platform
[opencl_init] found 1 device
[dt_opencl_device_init]
DEVICE: 0: 'Mali-G610 r0p0'
PLATFORM NAME & VENDOR: ARM Platform, ARM
CANONICAL NAME: armplatformmalig610r0p0
DRIVER VERSION: 3.0
DEVICE VERSION: OpenCL 3.0 v1.g13p0-01eac0.a8b6f0c7e1f83c654c60d1775112dbe4
DEVICE_TYPE: GPU
GLOBAL MEM SIZE: 15960 MB
MAX MEM ALLOC: 15960 MB
MAX IMAGE SIZE: 65536 x 65536
MAX WORK GROUP SIZE: 1024
MAX WORK ITEM DIMENSIONS: 3
MAX WORK ITEM SIZES: [ 1024 1024 1024 ]
ASYNC PIXELPIPE: YES
PINNED MEMORY TRANSFER: NO
MEMORY TUNING: WANTED
FORCED HEADROOM: 400
AVOID ATOMICS: NO
MICRO NAP: 250
ROUNDUP WIDTH: 16
ROUNDUP HEIGHT: 16
CHECK EVENT HANDLES: 1024
PERFORMANCE: 4.130
TILING ADVANTAGE: 0.000
DEFAULT DEVICE: NO
KERNEL BUILD DIRECTORY: /opt/darktable/share/darktable/kernels
KERNEL DIRECTORY: /home/tux/.cache/darktable/cached_v1_kernels_for_ARMPlatformMaliG610r0p0_30
CL COMPILER OPTION:
KERNEL LOADING TIME: 0.0070 sec
[opencl_init] OpenCL successfully initialized. Internal numbers and names of available devices:
[opencl_init] 0 'ARM Platform Mali-G610 r0p0'
[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 -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
...
392.0407 [dt_dev_process_image_job] loading image. took 0.000 secs (0.000 CPU)
392.3154 [dev_pixelpipe] took 0.000 secs (0.000 CPU) initing base buffer [full]
392.3428 [dev_pixelpipe] took 0.027 secs (0.051 CPU) [full] processed `rawprepare' on GPU, blended on GPU
392.3519 [dev_pixelpipe] took 0.009 secs (0.014 CPU) [full] processed `temperature' on GPU, blended on GPU
392.4608 [dev_pixelpipe] took 0.109 secs (0.023 CPU) [full] processed `highlights' on GPU, blended on GPU
392.7028 [resample_cl] plan 0.000 secs (0.000 CPU) resample 0.002 secs (0.000 CPU)
392.7029 [dev_pixelpipe] took 0.242 secs (0.001 CPU) [full] processed `demosaic' on GPU, blended on GPU
392.7071 [dev_pixelpipe] took 0.004 secs (0.000 CPU) [full] processed `exposure' on GPU, blended on GPU
392.7116 [dev_pixelpipe] took 0.004 secs (0.002 CPU) [full] processed `colorin' on GPU, blended on GPU
392.7206 [dt_ioppr_transform_image_colorspace_cl] IOP_CS_LAB-->IOP_CS_RGB took 0.005 secs (0.001 GPU) [channelmixerrgb]
392.7209 [dev_pixelpipe] took 0.009 secs (0.001 CPU) [full] processed `channelmixerrgb' on GPU, blended on GPU
392.7495 [histogram] took 0.000 secs (0.000 CPU) scope draw
392.8199 [histogram] took 0.000 secs (0.000 CPU) scope draw
393.1160 [dt_opencl_enqueue_kernel_2d] kernel 210 on device 0: CL_OUT_OF_RESOURCES
393.1169 [opencl_filmicrgb] couldn't enqueue kernel! CL_OUT_OF_RESOURCES
393.1169 [pixelpipe_process_CL] [full] filmicrgb ( 0/ 0) 1152x 768 scale=0.2500 --> ( 0/ 0) 1152x 768 scale=0.2500 couldn't run module on GPU, falling back to CPU
393.2754 [dev_pixelpipe] took 0.554 secs (0.698 CPU) [full] processed `filmicrgb' on CPU, blended on CPU
393.3244 [dt_ioppr_transform_image_colorspace_cl] IOP_CS_RGB-->IOP_CS_LAB took 0.045 secs (0.038 GPU) [colorout]
393.3762 [pixelpipe_process_CL] [full] colorout ( 0/ 0) 1152x 768 scale=0.2500 --> ( 0/ 0) 1152x 768 scale=0.2500 cl input data to host
393.3764 [dev_pixelpipe] took 0.101 secs (0.091 CPU) [full] processed `colorout' on GPU, blended on GPU
393.3975 [dev_pixelpipe] took 0.021 secs (0.036 CPU) [full] processed `gamma' on CPU, blended on CPU
393.3976 [opencl_profiling] profiling device 0 ('ARM Platform Mali-G610 r0p0'):
393.3976 [opencl_profiling] spent 0.0233 seconds in [Write Image (from host to device)]
393.3977 [opencl_profiling] spent 0.0111 seconds in rawprepare_1f
393.3977 [opencl_profiling] spent 0.0091 seconds in whitebalance_1f
393.3977 [opencl_profiling] spent 0.0121 seconds in highlights_initmask
393.3977 [opencl_profiling] spent 0.0158 seconds in highlights_dilatemask
393.3977 [opencl_profiling] spent 0.0000 seconds in [Write Buffer (from host to device)]
393.3977 [opencl_profiling] spent 0.0225 seconds in highlights_chroma
393.3977 [opencl_profiling] spent 0.0000 seconds in [Read Buffer (from device to host)]
393.3978 [opencl_profiling] spent 0.0098 seconds in highlights_opposed
393.3978 [opencl_profiling] spent 0.0089 seconds in border_interpolate
393.3978 [opencl_profiling] spent 0.0364 seconds in rcd_border_green
393.3978 [opencl_profiling] spent 0.0310 seconds in rcd_border_redblue
393.3978 [opencl_profiling] spent 0.0142 seconds in rcd_populate
393.3978 [opencl_profiling] spent 0.0399 seconds in rcd_step_1_1
393.3979 [opencl_profiling] spent 0.0087 seconds in rcd_step_1_2
393.3979 [opencl_profiling] spent 0.0037 seconds in rcd_step_2_1
393.3979 [opencl_profiling] spent 0.0134 seconds in rcd_step_3_1
393.3979 [opencl_profiling] spent 0.0102 seconds in rcd_step_4_1
393.3979 [opencl_profiling] spent 0.0042 seconds in rcd_step_4_2
393.3979 [opencl_profiling] spent 0.0143 seconds in rcd_step_5_1
393.3979 [opencl_profiling] spent 0.0228 seconds in rcd_step_5_2
393.3980 [opencl_profiling] spent 0.0156 seconds in rcd_write_output
393.3980 [opencl_profiling] spent 0.1282 seconds in interpolation_resample
393.3980 [opencl_profiling] spent 0.0011 seconds in exposure
393.3980 [opencl_profiling] spent 0.0011 seconds in colorin_unbound
393.3980 [opencl_profiling] spent 0.0119 seconds in [Copy Image (on device)]
393.3980 [opencl_profiling] spent 0.0011 seconds in colorspaces_transform_lab_to_rgb_matrix
393.3981 [opencl_profiling] spent 0.0015 seconds in channelmixerrgb_CAT16
393.3981 [opencl_profiling] spent 0.0007 seconds in filmic_mask_clipped_pixels
393.3981 [opencl_profiling] spent 0.0375 seconds in [Read Image (from device to host)]
393.3982 [opencl_profiling] spent 0.0021 seconds in colorspaces_transform_rgb_matrix_to_lab
393.3982 [opencl_profiling] spent 0.0037 seconds in colorout
393.3982 [opencl_profiling] spent 0.5159 seconds totally in command queue (with 1 event missing)
393.3992 [dev_process_image] pixel pipeline took 1.099 secs (0.933 CPU) processing `DSC03584.ARW'
393.5466 [histogram] took 0.000 secs (0.001 CPU) scope draw
393.9585 [dev_pixelpipe] took 0.000 secs (0.000 CPU) initing base buffer [preview]
393.9634 [dev_pixelpipe] took 0.005 secs (0.013 CPU) [preview] processed `rawprepare' on CPU, blended on CPU
393.9652 [dev_pixelpipe] took 0.002 secs (0.002 CPU) [preview] processed `temperature' on CPU, blended on CPU
393.9696 [dev_pixelpipe] took 0.004 secs (0.005 CPU) [preview] processed `highlights' on CPU, blended on CPU
393.9850 [dev_pixelpipe] took 0.015 secs (0.015 CPU) [preview] processed `demosaic' on CPU, blended on CPU
393.9857 [dev_pixelpipe] took 0.001 secs (0.001 CPU) [preview] processed `exposure' on CPU, blended on CPU
393.9866 [dev_pixelpipe] took 0.001 secs (0.002 CPU) [preview] processed `colorin' on CPU, blended on CPU
393.9871 [dt_ioppr_transform_image_colorspace] IOP_CS_LAB-->IOP_CS_RGB took 0.000 secs (0.001 CPU) [channelmixerrgb]
393.9920 [dev_pixelpipe] took 0.005 secs (0.024 CPU) [preview] processed `channelmixerrgb' on CPU, blended on CPU
394.0040 [dev_pixelpipe] took 0.012 secs (0.044 CPU) [preview] processed `filmicrgb' on CPU, blended on CPU
394.0045 [dt_ioppr_transform_image_colorspace] IOP_CS_RGB-->IOP_CS_LAB took 0.000 secs (0.001 CPU) [colorout]
394.0061 [dev_pixelpipe] took 0.002 secs (0.010 CPU) [preview] processed `colorout' on CPU, blended on CPU
394.0082 [dev_pixelpipe] took 0.000 secs (0.000 CPU) [preview] processed `gamma' on CPU, blended on CPU
394.0109 [dt_ioppr_transform_image_colorspace_rgb] RGB-->RGB took 0.003 secs (0.003 CPU) [final histogram]
394.0113 histogram calculation 256 bins 2 -> -1 compensate 0 3 channels 75825 pixels took 0.000 secs (0.001 CPU)
394.0118 [histogram] took 0.004 secs (0.004 CPU) final histogram
394.0120 [dev_process_preview] pixel pipeline processing took 0.432 secs (0.586 CPU)