Everything was working fine with Ubuntu 20.04.
I think problem with amdgpu driver amdgpu-install_22.20.50200-1_all.deb as I can open darktable without OpenCL. My graphics card is AMD RX-570
darktable -d all output related to OpenCL
> [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: '+1/!1,*/+1,*/+0,*/+0,*'
> [opencl_init] opencl_mandatory_timeout: 200
> [opencl_init] opencl_synch_cache: false
> [opencl_init] opencl library 'libOpenCL.so.1' found on your system and loaded
> Abort was called at 39 line in file:
> ./shared/source/built_ins/built_ins.cpp
> Aborted (core dumped)
Please help me as I am absolutely new to Linux and I have searched the net and found that there is some problem with ROCm and enabling OpenCL on Ubuntu 22.04
Thanks
I will not be of direct help for you, as I am not involved in Ubuntu, but from aside I remember, I saw something like this already, so you are not alone. Be patient and Google as well
I teach DT to students and one of the students on his windows computer enabled OpenCL and his DT crashed every time he tried to start editing am image. I lent him my computer for the first class and then at the end of the class I stumbled upon disabling OpenCL and his DT works fine now. I don’t understand the technical reason, but I believe some systems will not work with OpenCL activated.
I remember (but can’t remember when and where) some issues with some OpenCL AMD drivers. Probably that. Would be good to test with older version of AMD or use darktable without OpenCL until next update of AMD drivers and test again OpenCL enabled after that.
OpenCL Is better since times with Nvidia card than Intel or AMD, unfortunately (and I only have Intel card: Neo drivers have been hugely improved recently).
I have the same GPU and 1 year ago I couldn’t install amgpu-pro on ubuntu 22.04 because opencl driver was not compatible with that version of ubuntu.
I also had to run a script to be able to install it.
By default, OpenCL support is activated in darktable if all the above steps were successful. If you want to de-activate it you can do so in preferences > processing > cpu/gpu/memory. This configuration parameter is grayed out if the OpenCL initialization failed.