Darktable + OpenCl +Linux Mint (Notes+Success)

I have been a windows user at home for years, but use linux for work.
I decided this last week to buy a mini PC, and put linux on it for my new daily driver.
(For the curious, it was about 360$, BOSGAME P3 Mini Gaming PC AMD Ryzen 7 7840HS | 32GB DDR5 RAM | 1TB PCIe 4.0 NVMe SSD | Dual Gigabit Ethernet)
It uses an integrated amd 780m GPU.

– I immediately installed Linux Mint (22.2 Cinnamon)
– No special settings, basic install. (Next, next, next…and so on.) Modern linux is so different…

Started up Darktable, and went to settings → processing.
OpenCL is grayed out, and not possible to enable.

After much googling:

  1. I downloaded the darktable .deb from here and installed via the gui package manager. (I think this will enable automatic updates in the future)

Via Software Manger:
2) Rocm-device-libs-17
3) Mesa-opencl-icd
4) Clinfo (testing purposes. not needed to actually run)

Maybe reboot after these? I did.

It still did not work.
Turns out, you have to hold its hand throughout the launch also.
So…
5) Edit /usr/share/darktable/darktablerc
(Here is the weird part – I am 99% sure I edited this, but now it is not set?)
clplatform_rusticl=false → Change this to true. When I look back, its false again. But nothing worked until I switched this. Very confused.
Also I edited:
opencl=true

And lastly, you must set an environment variable to start the application:
From inside the terminal,
export RUSTICL_ENABLE=radeonsi && darktable

This should allow you to go into Darktable Settings → Processing → Enable OpenCL and select the “RustiCL” OpenCL option.

If this works (hah), then add the “export” to your bash profile so that it kicks in automatically:
nano ~/.bashrc
Scroll to the very bottom, and enter:
export RUSTICL_ENABLE=radeonsi
(Ctrl-O saves your work)
Next, apply to your session:
source ~/.bashrc

(I also logged out/in)

Now, I can launch darktable from the commandline by just typing “darktable”, and the OpenCL settings are available and in use.

I am not sure how to get the Application Launcher (start menu?) Darktable shortcut to also use the environmental variable - starting darktable via the application launcher will not be OpenCL enabled.

1 Like

If you “grab the binary package” and installed it, I think you will not get updates. You need to “Add repository and install manually”

Follow that link and install the repository. You don’t have to redo the install darktable.

I use Mint MATE; I don’t know Cinnamon. I would guess that you can edit a menu entry in much the same way. The entry probably says

darktable

I think

RUSTICL_ENABLE=radeonsi darktable

should do it.