I’m running darktable on Fedora 38, Wayland, OpenCL enabled with amdgpu and rocm. Sometimes the image displayed with the half completely black, or corrupted sometimes. Screenshot shown below.
Running with darktable -d opencl
shows nothing noticeable to my eye, but I attached nonetheless,
[dt_get_sysresource_level] switched to 3 as `unrestricted'
total mem: 32000MB
mipmap cache: 4000MB
available mem: 512015MB
singlebuff: 32000MB
OpenCL tune mem: OFF
OpenCL pinned: OFF
[opencl_init] opencl related configuration options:
[opencl_init] opencl: ON
[opencl_init] opencl_scheduling_profile: 'very fast GPU'
[opencl_init] opencl_library: 'default path'
[opencl_init] opencl_device_priority: '*/!0,*/*/*/!0,*'
[opencl_init] opencl_mandatory_timeout: 400
[opencl_init] opencl library 'libOpenCL.so.1' found on your system and loaded
[opencl_init] found 1 platform
[opencl_init] found 1 device
[dt_opencl_device_init]
DEVICE: 0: 'gfx803'
CANONICAL NAME: gfx803
PLATFORM NAME & VENDOR: AMD Accelerated Parallel Processing, Advanced Micro Devices, Inc.
DRIVER VERSION: 3513.0 (HSA1.1,LC)
DEVICE VERSION: OpenCL 1.2
DEVICE_TYPE: GPU
GLOBAL MEM SIZE: 4096 MB
MAX MEM ALLOC: 3482 MB
MAX IMAGE SIZE: 16384 x 16384
MAX WORK GROUP SIZE: 256
MAX WORK ITEM DIMENSIONS: 3
MAX WORK ITEM SIZES: [ 1024 1024 1024 ]
ASYNC PIXELPIPE: NO
PINNED MEMORY TRANSFER: NO
MEMORY TUNING: NO
FORCED HEADROOM: 400
AVOID ATOMICS: NO
MICRO NAP: 250
ROUNDUP WIDTH: 16
ROUNDUP HEIGHT: 16
CHECK EVENT HANDLES: 128
PERFORMANCE: 2.719
TILING ADVANTAGE: 0.000
DEFAULT DEVICE: NO
KERNEL DIRECTORY: /usr/share/darktable/kernels
CL COMPILER OPTION: -cl-fast-relaxed-math
0.360776 [opencl_fopen_stat] could not open file `/home/luke/.cache/darktable/cached_kernels_for_gfx803_35130HSA11LC/demosaic_ppg.cl.bin'!
0.360784 [opencl_load_program] could not load cached binary program, trying to compile source
0.669032 [opencl_fopen_stat] could not open file `/home/luke/.cache/darktable/cached_kernels_for_gfx803_35130HSA11LC/atrous.cl.bin'!
0.669043 [opencl_load_program] could not load cached binary program, trying to compile source
0.740212 [opencl_fopen_stat] could not open file `/home/luke/.cache/darktable/cached_kernels_for_gfx803_35130HSA11LC/basic.cl.bin'!
0.740224 [opencl_load_program] could not load cached binary program, trying to compile source
2.295851 [opencl_fopen_stat] could not open file `/home/luke/.cache/darktable/cached_kernels_for_gfx803_35130HSA11LC/blendop.cl.bin'!
2.295862 [opencl_load_program] could not load cached binary program, trying to compile source
3.163058 [opencl_fopen_stat] could not open file `/home/luke/.cache/darktable/cached_kernels_for_gfx803_35130HSA11LC/highpass.cl.bin'!
3.163070 [opencl_load_program] could not load cached binary program, trying to compile source
3.272105 [opencl_fopen_stat] could not open file `/home/luke/.cache/darktable/cached_kernels_for_gfx803_35130HSA11LC/nlmeans.cl.bin'!
3.272117 [opencl_load_program] could not load cached binary program, trying to compile source
3.403826 [opencl_fopen_stat] could not open file `/home/luke/.cache/darktable/cached_kernels_for_gfx803_35130HSA11LC/gaussian.cl.bin'!
3.403836 [opencl_load_program] could not load cached binary program, trying to compile source
3.525745 [opencl_fopen_stat] could not open file `/home/luke/.cache/darktable/cached_kernels_for_gfx803_35130HSA11LC/sharpen.cl.bin'!
3.525757 [opencl_load_program] could not load cached binary program, trying to compile source
3.630556 [opencl_fopen_stat] could not open file `/home/luke/.cache/darktable/cached_kernels_for_gfx803_35130HSA11LC/extended.cl.bin'!
3.630567 [opencl_load_program] could not load cached binary program, trying to compile source
4.035870 [opencl_fopen_stat] could not open file `/home/luke/.cache/darktable/cached_kernels_for_gfx803_35130HSA11LC/soften.cl.bin'!
4.035881 [opencl_load_program] could not load cached binary program, trying to compile source
4.161002 [opencl_fopen_stat] could not open file `/home/luke/.cache/darktable/cached_kernels_for_gfx803_35130HSA11LC/bilateral.cl.bin'!
4.161013 [opencl_load_program] could not load cached binary program, trying to compile source
4.299365 [opencl_fopen_stat] could not open file `/home/luke/.cache/darktable/cached_kernels_for_gfx803_35130HSA11LC/denoiseprofile.cl.bin'!
4.299376 [opencl_load_program] could not load cached binary program, trying to compile source
4.545022 [opencl_fopen_stat] could not open file `/home/luke/.cache/darktable/cached_kernels_for_gfx803_35130HSA11LC/bloom.cl.bin'!
4.545033 [opencl_load_program] could not load cached binary program, trying to compile source
4.657553 [opencl_fopen_stat] could not open file `/home/luke/.cache/darktable/cached_kernels_for_gfx803_35130HSA11LC/colorreconstruction.cl.bin'!
4.657582 [opencl_load_program] could not load cached binary program, trying to compile source
4.779898 [opencl_fopen_stat] could not open file `/home/luke/.cache/darktable/cached_kernels_for_gfx803_35130HSA11LC/demosaic_other.cl.bin'!
4.779927 [opencl_load_program] could not load cached binary program, trying to compile source
4.849609 [opencl_fopen_stat] could not open file `/home/luke/.cache/darktable/cached_kernels_for_gfx803_35130HSA11LC/demosaic_vng.cl.bin'!
4.849620 [opencl_load_program] could not load cached binary program, trying to compile source
5.092164 [opencl_fopen_stat] could not open file `/home/luke/.cache/darktable/cached_kernels_for_gfx803_35130HSA11LC/demosaic_markesteijn.cl.bin'!
5.092176 [opencl_load_program] could not load cached binary program, trying to compile source
5.449282 [opencl_fopen_stat] could not open file `/home/luke/.cache/darktable/cached_kernels_for_gfx803_35130HSA11LC/liquify.cl.bin'!
5.449311 [opencl_load_program] could not load cached binary program, trying to compile source
5.519263 [opencl_fopen_stat] could not open file `/home/luke/.cache/darktable/cached_kernels_for_gfx803_35130HSA11LC/basecurve.cl.bin'!
5.519273 [opencl_load_program] could not load cached binary program, trying to compile source
5.675633 [opencl_fopen_stat] could not open file `/home/luke/.cache/darktable/cached_kernels_for_gfx803_35130HSA11LC/locallaplacian.cl.bin'!
5.675644 [opencl_load_program] could not load cached binary program, trying to compile source
5.985395 [opencl_fopen_stat] could not open file `/home/luke/.cache/darktable/cached_kernels_for_gfx803_35130HSA11LC/dwt.cl.bin'!
5.985406 [opencl_load_program] could not load cached binary program, trying to compile source
6.066789 [opencl_fopen_stat] could not open file `/home/luke/.cache/darktable/cached_kernels_for_gfx803_35130HSA11LC/retouch.cl.bin'!
6.066800 [opencl_load_program] could not load cached binary program, trying to compile source
6.178351 [opencl_fopen_stat] could not open file `/home/luke/.cache/darktable/cached_kernels_for_gfx803_35130HSA11LC/filmic.cl.bin'!
6.178362 [opencl_load_program] could not load cached binary program, trying to compile source
6.759164 [opencl_fopen_stat] could not open file `/home/luke/.cache/darktable/cached_kernels_for_gfx803_35130HSA11LC/colorspaces.cl.bin'!
6.759176 [opencl_load_program] could not load cached binary program, trying to compile source
6.873097 [opencl_fopen_stat] could not open file `/home/luke/.cache/darktable/cached_kernels_for_gfx803_35130HSA11LC/basicadj.cl.bin'!
6.873108 [opencl_load_program] could not load cached binary program, trying to compile source
6.996477 [opencl_fopen_stat] could not open file `/home/luke/.cache/darktable/cached_kernels_for_gfx803_35130HSA11LC/rgbcurve.cl.bin'!
6.996489 [opencl_load_program] could not load cached binary program, trying to compile source
7.093584 [opencl_fopen_stat] could not open file `/home/luke/.cache/darktable/cached_kernels_for_gfx803_35130HSA11LC/guided_filter.cl.bin'!
7.093595 [opencl_load_program] could not load cached binary program, trying to compile source
7.219117 [opencl_fopen_stat] could not open file `/home/luke/.cache/darktable/cached_kernels_for_gfx803_35130HSA11LC/hazeremoval.cl.bin'!
7.219129 [opencl_load_program] could not load cached binary program, trying to compile source
7.323916 [opencl_fopen_stat] could not open file `/home/luke/.cache/darktable/cached_kernels_for_gfx803_35130HSA11LC/lut3d.cl.bin'!
7.323927 [opencl_load_program] could not load cached binary program, trying to compile source
7.445533 [opencl_fopen_stat] could not open file `/home/luke/.cache/darktable/cached_kernels_for_gfx803_35130HSA11LC/rgblevels.cl.bin'!
7.445544 [opencl_load_program] could not load cached binary program, trying to compile source
7.538204 [opencl_fopen_stat] could not open file `/home/luke/.cache/darktable/cached_kernels_for_gfx803_35130HSA11LC/negadoctor.cl.bin'!
7.538215 [opencl_load_program] could not load cached binary program, trying to compile source
7.591857 [opencl_fopen_stat] could not open file `/home/luke/.cache/darktable/cached_kernels_for_gfx803_35130HSA11LC/demosaic_rcd.cl.bin'!
7.591869 [opencl_load_program] could not load cached binary program, trying to compile source
7.927448 [opencl_fopen_stat] could not open file `/home/luke/.cache/darktable/cached_kernels_for_gfx803_35130HSA11LC/channelmixer.cl.bin'!
7.927459 [opencl_load_program] could not load cached binary program, trying to compile source
8.125525 [opencl_fopen_stat] could not open file `/home/luke/.cache/darktable/cached_kernels_for_gfx803_35130HSA11LC/diffuse.cl.bin'!
8.125536 [opencl_load_program] could not load cached binary program, trying to compile source
8.265546 [opencl_fopen_stat] could not open file `/home/luke/.cache/darktable/cached_kernels_for_gfx803_35130HSA11LC/blurs.cl.bin'!
8.265558 [opencl_load_program] could not load cached binary program, trying to compile source
8.320552 [opencl_fopen_stat] could not open file `/home/luke/.cache/darktable/cached_kernels_for_gfx803_35130HSA11LC/bspline.cl.bin'!
8.320562 [opencl_load_program] could not load cached binary program, trying to compile source
KERNEL LOADING TIME: 8.0237 sec
[opencl_init] OpenCL successfully initialized.
[opencl_init] here are the internal numbers and names of OpenCL devices available to darktable:
[opencl_init] 0 'gfx803'
[opencl_init] FINALLY: opencl is AVAILABLE on this system.
[opencl_init] initial status of opencl enabled flag is ON.
[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
10.706434 [dt_opencl_check_tuning] use 3248MB (tunemem=OFF, pinning=OFF) on device `gfx803' id=0
[opencl_summary_statistics] device 'gfx803' (0): 1242 out of 1242 events were successful and 0 events lost. max event=48
Is there anyone having a similar experience? Is there some log I can look into to identify the problem? Thanks!