ROCm quick start install guide for Linux

ROCm quick start install guide for Linux#

Applies to Linux

2024-05-01

10 min read time

For a quick summary on installing ROCm on Linux, choose your preferred operating system and install method and follow the steps listed in the table. If you want more in-depth installation instructions, refer to ROCm installation options.

sudo apt install "linux-headers-$(uname -r)" "linux-modules-extra-$(uname -r)"
sudo usermod -a -G render,video $LOGNAME # Adding current user to Video, Render groups. See prerequisites.
wget https://repo.radeon.com/amdgpu-install/6.1.1/ubuntu/jammy/amdgpu-install_6.1.60101-1_all.deb
sudo apt install ./amdgpu-install_6.1.60101-1_all.deb
sudo apt update
sudo apt install amdgpu-dkms
sudo apt install rocm
echo "Please reboot system for all settings to take effect."
sudo apt install "linux-headers-$(uname -r)" "linux-modules-extra-$(uname -r)"
sudo usermod -a -G render,video $LOGNAME # Adding current user to Video, Render groups. See prerequisites.
sudo apt update
wget https://repo.radeon.com/amdgpu-install/6.1.1/ubuntu/jammy/amdgpu-install_6.1.60101-1_all.deb
sudo apt install ./amdgpu-install_6.1.60101-1_all.deb
sudo amdgpu-install --usecase=graphics,rocm
sudo apt install "linux-headers-$(uname -r)" "linux-modules-extra-$(uname -r)"
sudo usermod -a -G render,video $LOGNAME # Adding current user to Video, Render groups. See prerequisites.
wget https://repo.radeon.com/amdgpu-install/6.1.1/ubuntu/focal/amdgpu-install_6.1.60101-1_all.deb
sudo apt install ./amdgpu-install_6.1.60101-1_all.deb
sudo apt update
sudo apt install amdgpu-dkms
sudo apt install rocm
echo "Please reboot system for all settings to take effect."
sudo apt install "linux-headers-$(uname -r)" "linux-modules-extra-$(uname -r)"
sudo usermod -a -G render,video $LOGNAME # Adding current user to Video, Render groups. See prerequisites.
sudo apt update
wget https://repo.radeon.com/amdgpu-install/6.1.1/ubuntu/focal/amdgpu-install_6.1.60101-1_all.deb
sudo apt install ./amdgpu-install_6.1.60101-1_all.deb
sudo amdgpu-install --usecase=graphics,rocm
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
sudo rpm -ivh epel-release-latest-9.noarch.rpm
sudo dnf install dnf-plugin-config-manager
sudo crb enable
sudo yum install kernel-headers kernel-devel
sudo usermod -a -G render,video $LOGNAME # Adding current user to Video, Render groups. See prerequisites.
sudo yum install https://repo.radeon.com/amdgpu-install/6.1.1/rhel/9.3/amdgpu-install-6.1.60101-1.el9.noarch.rpm
sudo yum clean all
sudo yum install amdgpu-dkms
sudo yum install rocm
echo "Please reboot system for all settings to take effect."
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
sudo rpm -ivh epel-release-latest-9.noarch.rpm
sudo dnf install dnf-plugin-config-manager
sudo crb enable
sudo yum install kernel-headers kernel-devel
sudo usermod -a -G render,video $LOGNAME # Adding current user to Video, Render groups. See prerequisites.
sudo yum install https://repo.radeon.com/amdgpu-install/6.1.1/rhel/9.3/amdgpu-install-6.1.60101-1.el9.noarch.rpm
sudo amdgpu-install --usecase=graphics,rocm
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
sudo rpm -ivh epel-release-latest-9.noarch.rpm
sudo dnf install dnf-plugin-config-manager
sudo crb enable
sudo yum install kernel-headers kernel-devel
sudo usermod -a -G render,video $LOGNAME # Adding current user to Video, Render groups. See prerequisites.
sudo yum install https://repo.radeon.com/amdgpu-install/6.1.1/rhel/9.2/amdgpu-install-6.1.60101-1.el9.noarch.rpm
sudo yum clean all
sudo yum install amdgpu-dkms
sudo yum install rocm
echo "Please reboot system for all settings to take effect."
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
sudo rpm -ivh epel-release-latest-9.noarch.rpm
sudo dnf install dnf-plugin-config-manager
sudo crb enable
sudo yum install kernel-headers kernel-devel
sudo usermod -a -G render,video $LOGNAME # Adding current user to Video, Render groups. See prerequisites.
sudo yum install https://repo.radeon.com/amdgpu-install/6.1.1/rhel/9.2/amdgpu-install-6.1.60101-1.el9.noarch.rpm
sudo amdgpu-install --usecase=graphics,rocm
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
sudo rpm -ivh epel-release-latest-8.noarch.rpm
sudo dnf install dnf-plugin-config-manager
sudo crb enable
sudo yum install kernel-headers kernel-devel
sudo usermod -a -G render,video $LOGNAME # Adding current user to Video, Render groups. See prerequisites.
sudo yum install https://repo.radeon.com/amdgpu-install/6.1.1/rhel/8.9/amdgpu-install-6.1.60101-1.el8.noarch.rpm
sudo yum clean all
sudo yum install amdgpu-dkms
sudo yum install rocm
echo "Please reboot system for all settings to take effect."
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
sudo rpm -ivh epel-release-latest-8.noarch.rpm
sudo dnf install dnf-plugin-config-manager
sudo crb enable
sudo yum install kernel-headers kernel-devel
sudo usermod -a -G render,video $LOGNAME # Adding current user to Video, Render groups. See prerequisites.
sudo yum install https://repo.radeon.com/amdgpu-install/6.1.1/rhel/8.9/amdgpu-install-6.1.60101-1.el8.noarch.rpm
sudo amdgpu-install --usecase=graphics,rocm
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
sudo rpm -ivh epel-release-latest-8.noarch.rpm
sudo dnf install dnf-plugin-config-manager
sudo crb enable
sudo yum install kernel-headers kernel-devel
sudo usermod -a -G render,video $LOGNAME # Adding current user to Video, Render groups. See prerequisites.
sudo yum install https://repo.radeon.com/amdgpu-install/6.1.1/rhel/8.8/amdgpu-install-6.1.60101-1.el8.noarch.rpm
sudo yum clean all
sudo yum install amdgpu-dkms
sudo yum install rocm
echo "Please reboot system for all settings to take effect."
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
sudo rpm -ivh epel-release-latest-8.noarch.rpm
sudo dnf install dnf-plugin-config-manager
sudo crb enable
sudo yum install kernel-headers kernel-devel
sudo usermod -a -G render,video $LOGNAME # Adding current user to Video, Render groups. See prerequisites.
sudo yum install https://repo.radeon.com/amdgpu-install/6.1.1/rhel/8.8/amdgpu-install-6.1.60101-1.el8.noarch.rpm
sudo amdgpu-install --usecase=graphics,rocm
sudo zypper addrepo https://download.opensuse.org/repositories/devel:languages:perl/15.5/devel:languages:perl.repo

sudo zypper install kernel-default-devel
sudo usermod -a -G render,video $LOGNAME # Adding current user to Video, Render groups. See prerequisites.
sudo zypper --no-gpg-checks install https://repo.radeon.com/amdgpu-install/6.1.1/sle/15.5/amdgpu-install-6.1.60101-1.noarch.rpm
sudo zypper refresh
sudo zypper install amdgpu-dkms
sudo zypper install rocm
echo "Please reboot system for all settings to take effect."
sudo zypper addrepo https://download.opensuse.org/repositories/devel:languages:perl/15.5/devel:languages:perl.repo

sudo zypper install kernel-default-devel
sudo usermod -a -G render,video $LOGNAME # Adding current user to Video, Render groups. See prerequisites.
sudo zypper --no-gpg-checks install https://repo.radeon.com/amdgpu-install/6.1.1/sle/15.5/amdgpu-install-6.1.60101-1.noarch.rpm
sudo amdgpu-install --usecase=graphics,rocm
# Installing Perl module from SLES 15.5, as it was removed from 15.4
sudo zypper addrepo https://download.opensuse.org/repositories/devel:/languages:/perl/15.5/devel:languages:perl.repo

sudo zypper install kernel-default-devel
sudo usermod -a -G render,video $LOGNAME # Adding current user to Video, Render groups. See prerequisites.
sudo zypper --no-gpg-checks install https://repo.radeon.com/amdgpu-install/6.1.1/sle/15.4/amdgpu-install-6.1.60101-1.noarch.rpm
sudo zypper refresh
sudo zypper install amdgpu-dkms
sudo zypper install rocm
echo "Please reboot system for all settings to take effect."
# Installing Perl module from SLES 15.5, as it was removed from 15.4
sudo zypper addrepo https://download.opensuse.org/repositories/devel:/languages:/perl/15.5/devel:languages:perl.repo

sudo zypper install kernel-default-devel
sudo usermod -a -G render,video $LOGNAME # Adding current user to Video, Render groups. See prerequisites.
sudo zypper --no-gpg-checks install https://repo.radeon.com/amdgpu-install/6.1.1/sle/15.4/amdgpu-install-6.1.60101-1.noarch.rpm
sudo amdgpu-install --usecase=graphics,rocm