Hope someone may advise…
Maybe where I could find info about how to handle this.
And I would very much like it to work as darkroom gets very slow when processing 3 instances of diffuse or sharpen.
0.5317 [opencl_init] opencl disabled via darktable preferences
0.5318 [dt_dlopencl_init] could not find default opencl runtime library 'libOpenCL'
0.5319 [dt_dlopencl_init] could not find default opencl runtime library 'libOpenCL.so'
0.5320 [opencl_init] opencl library 'libOpenCL.so.1' found on your system and loaded, preference 'default path'
0.6260 [opencl_init] found 1 platform
0.6260 [opencl_init] no devices found for Advanced Micro Devices, Inc. (vendor) - AMD Accelerated Parallel Processing (name)
[opencl_init] found 0 device
0.6260 [opencl_init] FINALLY: opencl PREFERENCE=OFF is NOT AVAILABLE and NOT ENABLED.
Thanks @g-man I will… and I did quite some searching around but failed to recognize what I needed… we may call this a blatant lack of knowledge. Making it very easy to ruin something when trying semi logical steps more or less in the blind. Lost my second screen yesterday when amdgpu became blackflagged. I will learn.
Total noob here regarding drivers for linux, but I struggled with the same problem, so maybe this could be related: I had all drivers and opencl etc. installed (seemed to be by default on opensuse just by installing darktable), but I had to additionally disable safeboot (or secureboot?) in the bios. Apparently the gpu drivers would not load even though installed if safeboot was enabled. Just my 2c.
Easiest way to get opencl and amdgpu running on Ubuntu is using the rusticl drivers. I have mesa-opencl-icd-24.0.5-1ubuntu1 installed. Probably it’s enough to select this file and install it with its dependencies.
To start darktable with rusticl support, you need to set an environment variable. I am starting darktable with
I think i’ve made a small step, darktable-cltest says:
0.5057 [opencl_init] opencl disabled via darktable preferences
0.5059 [opencl_init] opencl library ‘libOpenCL’ found on your system and loaded, preference ‘default path’
0.5444 [opencl_init] found 1 platform
0.5444 [opencl_init] no devices found for Advanced Micro Devices, Inc. (vendor) - AMD Accelerated Parallel Processing (name) [opencl_init] found 0 device
0.5445 [opencl_init] FINALLY: opencl PREFERENCE=OFF is NOT AVAILABLE and NOT ENABLED.
I found another thingy, do not know if it matters actually. In /etc/modprobe.d
there is a file blacklist-radeon.conf which contains the phrase “blacklist radeon”.
Should I simply remove this file? It is generated a bit over two month ago. Don’t know why and how.
Somehow the last step in the chain to activate OpenCL is still blocked.
clinfo -l should list found/supported OpenCL platfoms and devices. If it shows AMD platform, but no device, then unfortunately the GPU may not be supported (anymore?)… The latest driver here seems to be from 2023.
and have a look if that works. ROCm worked always a bit faster for me but on the downside not very stable. With rusticl dt runs rock solid and I’m happy.
Thanks for supporting me, not yet have I tried, @dirksagwitz also advised doing so, So if I will not progress I will surely do. I’m a bit conservative here as I’m a relative noob on linux… and not always know what I do and sometimes run into trouble I have no idea how to get out again.
Sorry, I have overseen that @dirksagwitz already suggested this.
I would see rusticl as a more conservative option, as it is a free implementation. Rocm is unfree even though you can use it together with the free driver.
I had more problems with proprietary graphic drivers in the past compared to the free ones. There are as well less changes to your system with rusticl. So I see less danger for running into some trouble.