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.
amdgpu-install --usecase=opencl --no-dkms
works fine on 22.04.gnome-control-center: symbol lookup error: /lib/x86_64-linux-gnu/libEGL_mesa.so.0: undefined symbol: drmGetDeviceFromDevId