Check my thread Blender 3.4 with AMD GPU 22 drivers - #2 by silex
What i did was:
- install Ubuntu 20.4.1 LTS
- install AMD GPU driver installer from AMD site (it was 22.40 for me)
- install all updates and upgrade your Ubuntu with system upgrade tool
- sudo amdgpu-install --usecase=graphics,opencl --vulkan=amdvlk --opencl=legacy (it can show missing .bin files but dont care)
- sudo apt-get update
- sudo apt-get upgrade
- reboot
- sudo apt-get install mesa-utils
- sudo amdgpu-install -y
- and the last final step to make Blender see the card is described on my thread