AMDGPU Pro driver v21.20: OpenCL not detected on Darktable 3.6 on Ubuntu 20.04

Hardware: AMD Ryzen 9 3900X, 64 GB RAM, AMD Radeon RX5700 XT video card w/ 8GB.

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.

What could I be missing? Thanks for any help.

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 `' ..
0.299852 [opencl_fopen_stat] could not open file `/home/chucko/.cache/darktable/cached_kernels_for_gfx1010xnack_32610HSA11LC/'!
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/' 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 `'!
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.

I’ve confirmed to my own satisfaction that version 21.20 of the AMDGPU drivers is broken. Rolling back to version 21.10 works.

1 Like

The “fix” might make it to 3.6.1: Fix "inline" usage in OpenCL kernels by drkoller · Pull Request #9359 · darktable-org/darktable · GitHub

1 Like