AMD GPU drivers not detected

Hi

I’ve been trying to get Unreal Engine 5.6 working on Ubuntu 22.04.5 working for a couple of days.

My issue seems to be the AMD GPU drivers not being detected by Unreal Engine or the drivers not being installed correctly. My GPU is an RX 7900 GRE.

When running with the default 22.04.5 drivers Unreal Engine shows a message box “Warning known issues with graphics drivers … would you like to visit the following URL to download the driver”.

  • Clicking “No” the engine starts, but when opening a project I’m told that the required Vulkan drivers are missing (running vkube does work, so it seems like some Vulkan drivers are installed).
  • Clicking “Yes” directs me to the AMD GPU drivers page https://www.amd.com/en/support/download/linux-drivers.html. I’ve installed the amdgpu-install script and followed the instructions on Overview — amdgpu graphics and compute stack unknown-build documentation to install the AMDGPU stack (e.g. amdgpu-install -y --usecase=graphics --vulkan=amdvlk, then rebooting the OS). When starting the engine after updating the drivers the message box appears again, but this time with a lower driver version (2.0.335) than the default 22.04.5 drivers. After clicking “No” with the “updated drivers” I’m able to start the engine and open a project (Unreal Engine now detects Vulkan drivers), but there are obvious visual artifacts (most of the screen is a cascade of colours).

The same behavior is seen when using the pre-built binaries for Unreal Engine 5.6 and building from source. I’ve also tried updating to 24.04.2 as a last try (though, from what I’ve read this version of Ubuntu isn’t supported) and I don’t get the message box when using the default drivers, but run into the same issue of Unreal Engine not finding the required Vulkan drivers.

Any advice on using AMD GPUs with Unreal Engine on Ubuntu 22.04.5 or information on whether what I’m trying to do is even supported would be appreciated.

Many thanks,
Haize

Hello there @Haize!

Checking around the community, this seems to be a recurring issue between AMD and UE. Most users work with RADV driver instead, to avoid conflicts. Others have tried reducing the AMD install to essential components only.

Regardless of which approach to pick, the first step is to clean up your current driver install, as it’s not being properly detected. Run the following:

# Remove AMD drivers
sudo amdgpu-uninstall
sudo apt autoremove --purge amdgpu-dkms amdgpu-dkms-firmware
sudo apt autoremove --purge vulkan-amdgpu-pro amdvlk

# Clean up
sudo rm -rf /opt/amdgpu*
sudo rm -rf /etc/vulkan/icd.d/amd*

After that, you can either install the open-source Mesa RADV driver, or AMD essentials instead:

# Mesa Install
sudo apt update
sudo apt install mesa-vulkan-drivers vulkan-tools vulkan-utils
sudo apt install libvulkan1 vulkan-loader-dev
# Download amdgpu-install
wget https://repo.radeon.com/amdgpu-install/22.40.5/ubuntu/jammy/amdgpu-install_5.4.50405-1_all.deb
sudo dpkg -i amdgpu-install_5.4.50405-1_all.deb

# Minimal install
sudo amdgpu-install -y --usecase=graphics --no-dkms --vulkan=pro --opencl=rocr

Thanks for much for the info! I’ll give this a go once I’ve reinstalled Ubuntu 22.04.5.

I reinstalled Ubuntu 22.04.5 and tried both of the suggestions, but unfortunately neither worked.

When trying the first solution (Mesa Install) Unreal Engine isn’t able to find the Vulkan drivers (apt install wasn’t able to find vulkan-utils or vulkan-loader-dev).

With solution two (minimal amdgpu install) Unreal Engine crashes on startup. I can share the crash report if that helps.

I’m not sure if building from source might be an option.

If you have any other suggestions @brs-sebascova please let me know. In the meantime I guess I’ll have to wait for an update to the engine or a fix to the AMD drivers.

Thanks again,

Haize