How to install AMD-GPU-PRO Drivers in Ubuntu 21.04?

Solution 1:

amd release notes: For Ubuntu 20.04.1, only Kernel 5.4/5.6 are supported. Latest Kernel version 5.8+ is not supported. Customers with Kernel 5.8+, need to downgrade to 5.4/5.6 for proper driver support.

it seems that you will have to downgrade to a lower kernel version

Solution 2:

Worked for me:

If you are comfortable with an older kernel on your system:

Add repository for old kernel, e.g. former repository from Groovy Gorilla:

deb http://de.archive.ubuntu.com/ubuntu/ groovy main restricted
deb http://de.archive.ubuntu.com/ubuntu/ groovy-updates main restricted

Installed Kernel 5.8 + Modules + Headers:

apt install linux-image-5.8.0-53-generic linux-modules-extra-5.8.0-53-generic linux-headers-5.8.0-53-generic

Changed VERSION_ID in /etc/os-release back to 20.04:

root@localhost /e/apt# cat /etc/os-release
NAME="Ubuntu"
VERSION="21.04 (Hirsute Hippo)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 21.04"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=hirsute
UBUNTU_CODENAME=hirsute

Change into extracted drivers directory, e.g. in Downloads:

cd ~/Downloads/amdgpu-pro-20.50-1234664-ubuntu-20.04

Run the installer:

./amdgpu-pro-install --opencl=rocr,legacy -y

Reboot.

Then, with xrandr you should be able to see the freesync parameters:

[user@localhost]➜ ~ xrandr --props | grep free
 freesync_capable: 0 
 freesync: 0 
 freesync_capable: 0 
 freesync: 0

Depending on your monitors connection (here: DisplayPort-0) you may be able to change freesync to 1:

[user@localhost]➜ ~ xrandr --output DisplayPort-0 --set "freesync" 1
[user@localhost]➜ ~ xrandr --props | grep free
 freesync_capable: 0 
 freesync: 1
 freesync_capable: 0 
 freesync: 0

Solution 3:

amdgpu-pro-21.30-1290604-ubuntu-20.04 installs and works in 21.04 with kernel 5.11.0-25 after only:

Changed VERSION_ID in /etc/os-release back to 20.04:

tested in blender 2.93.2