Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save neolaw84/98876cebe0ad29d95050f11500c508fe to your computer and use it in GitHub Desktop.
Save neolaw84/98876cebe0ad29d95050f11500c508fe to your computer and use it in GitHub Desktop.
Installing rocm on Ubuntu 20.04.4 + Radeon RX570

Install ROCm on Ubuntu 20.04.4 and Radeon RX570

Situation

Installing by closely following ROCm Installation Guide because :

  • it misses to install libnuma-dev and libncurses5
  • installing dkms breaks ROCm after reboot

Actions

It is very important to install libnuma-dev and libncurses5 before everything:

sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install libnuma-dev libncurses5
sudo reboot

Add user to groups render and video:

sudo usermod -a -G render ${USER}
sudo usermod -a -G video ${USER}

Download and install:

wget https://repo.radeon.com/amdgpu-install/21.50.2/ubuntu/focal/amdgpu-install_21.50.2.50002-1_all.deb
sudo apt-get install ./amdgpu-install_21.50.2.50002-1_all.deb
sudo amdgpu-install --usecase=rocm --no-dkms 

Note: it is very important to install without dkms as ubuntu 20.04.4 with kernel 5.13.x works with rocm but it won't if you install dkms (after reboot).

Results

rocminfo calls survives across reboots.

References:

ROCm Installation Guide

@caasi
Copy link

caasi commented Nov 28, 2022

Thank you. This instruction saves me on Ubuntu 22.04.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment