I’ve just installed Darktable 3.6 from the openSUSE Open Build Service repo on an Ubuntu 20.04 installation. And I’ve also just installed the latest AMDGPU Pro 21.20 drivers for my video card with ‘–opencl=rocr,legacy’. Previously Darktable 3.4 was able to work with the OpenCL drivers for this card, but Darktable 3.6 says OpenCL is “not available”. I’ve confirmed that clinfo reports the installation as active.
Starting darktable from the command line as described in the manual yields this. I guess I’ll try the previous version of the AMDGPU drivers.
0.299770 [opencl_init] compiling program `blendop.cl' ..
0.299852 [opencl_fopen_stat] could not open file `/home/chucko/.cache/darktable/cached_kernels_for_gfx1010xnack_32610HSA11LC/blendop.cl.bin'!
0.299857 [opencl_load_program] could not load cached binary program, trying to compile source
0.299873 [opencl_load_program] successfully loaded program from '/usr/share/darktable/kernels/blendop.cl' MD5: '12fda7537d9ccceccb6fe5b2b6372438'
1.126782 [opencl_build_program] could not build program: -11
1.126796 [opencl_build_program] BUILD STATUS: -2
1.126798 BUILD LOG:
1.126799 lld: error: undefined hidden symbol: rgb_to_JzCzhz
>>> referenced by /tmp/comgr-d35ae5/input/linked.bc.o:(blendop_display_channel)
>>> referenced by /tmp/comgr-d35ae5/input/linked.bc.o:(blendop_display_channel)
>>> referenced by /tmp/comgr-d35ae5/input/linked.bc.o:(blendop_display_channel)
>>> referenced 9 more times
lld: error: undefined hidden symbol: get_rgb_matrix_luminance
>>> referenced by /tmp/comgr-d35ae5/input/linked.bc.o:(blendop_display_channel)
>>> referenced by /tmp/comgr-d35ae5/input/linked.bc.o:(blendop_display_channel)
>>> referenced by /tmp/comgr-d35ae5/input/linked.bc.o:(blendop_display_channel)
>>> referenced 1 more times
Error: Creating the executable from LLVM IRs failed.
1.126828 [opencl_init] failed to compile program `blendop.cl'!
1.126840 [opencl_init] no suitable devices found.
1.126843 [opencl_init] FINALLY: opencl is NOT AVAILABLE on this system.
1.126844 [opencl_init] initial status of opencl enabled flag is OFF.