11

When I'm not using my desktop, it mines. When I was on 20.04 LTS, I used AMD's proprietary driver to install the ROCm component of their driver only, found here: https://www.amd.com/en/support/graphics/amd-radeon-6000-series/amd-radeon-6700-series/amd-radeon-rx-6700-xt.

Unfortunately they only currently support 18.04.5(6) and 20.04.4. Is there a way with the open source stack only to enable opencl on an AMD gpu (I have a 6700 XT)?

4
  • 1
    I should have been more experimental, using AMDs latest driver (21.50) and installing with amdgpu-install --usecase=opencl --no-dkms works fine on 22.04.
    – jerome1232
    Commented May 2, 2022 at 15:50
  • As it turns out this is not a final solution, it causes gnome-control-center to fail to start with this error: gnome-control-center: symbol lookup error: /lib/x86_64-linux-gnu/libEGL_mesa.so.0: undefined symbol: drmGetDeviceFromDevId
    – jerome1232
    Commented May 5, 2022 at 14:21
  • having the same problem. did you find a solution?
    – drizzle
    Commented Jul 27, 2022 at 12:34
  • Do you dear to try Driver version 22.40.3? They have been released last week, and should have preview support for Ubuntu 22.04
    – Johan
    Commented Feb 27, 2023 at 15:10

2 Answers 2

5

I just did a fresh install to a USB3.0 thumb drive using 22.04.2 LTS and was able to get my RX 5600XT working with OpenCL. 5600XT is a Navi10, the 6700XT is a Navi22. Maybe it will work...

I grabbed the non-HME version 22.40.3 for Ubuntu 22.04.2. dpkg -i....then:

root@yada:/# amdgpu-install --usecase=workstation,rocm,opencl --opencl=rocr,legacy --vulkan=pro --accept-eula

There was a couple messages about missing firmware in /lib/firmware/amdgpu which appears to be common but they were a handful of specific code named GPU's. Looking at that directory shows a bunch of files for many types like Pitcairn, and Navi, and Vega.

Did a reboot and clinfo shows the 5600XT.

If you plan on compiling things with OpenCL support such as JTR be sure to:

sudo apt-get -y install ocl-icd-opencl-dev opencl-headers

Lastly, I added my user to groups video and render but I'm not getting any devices when I run clinfo or john --list=opencl-devices. Running as root works fine. Close enough for me.

Update May 2024

For the current Ubuntu 22.04.4 LTS I had to use an older version of the amd install scripts and downgrade my kernel to get it to work. rocm was picky and reading my failed makefile log trying to install the latest 6.0.6 installer threw errors during DKMS compiling. If anyone finds a newer combination please advise. Grab amdgpu-install version 5.5.3 dpkg -i amdgpu-install_5.5.50503-1620033.22.04_all.deb

Install kernel

sudo apt-get install linux-image-5.19.0-45-generic linux-headers-5.19.0-45-generic linux-modules-extra-5.19.0-45-generic

reboot...remove newer kernel otherwise DKMS will find it and try building modules and fail.

sudo apt-get remove linux-image-6.5.0-28-generic
sudo apt autoremove

Possibly reboot once more then run the original commands above and everything will install. No error about missing firmware like before, and following the advice of @askcompu rebooting after a usermod -a -G video,render [user] worked fine. clinfo now displays the card running as a user instead of root.

2
  • after adding your user to those groups reboot to make sure that change takes effect
    – askcompu
    Commented Mar 20, 2023 at 23:24
  • I executed your installation parameters, and it worked for me without rebooting. No idea which of the parameters did the trick, but Darktable has OpenCL support again.
    – Johan
    Commented Sep 29, 2023 at 14:57
0

I encountered same issues with missing packages. So I unpacked the install.deb from AMD and extracted the repository URLs. The .deb is some kind of ZIP. The folder is etc/apt/... Putting this URLs manually to my sources.list and "apt update" and the install runs smooth.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .