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)?

2 Answers2

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.

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.