RPM for CentOS and RHEL

The CentOS/RHEL version must be updated to the latest kernel version for the installation of the drivers to succeed. Make sure the system is at the latest version by executing the following commands:

sudo yum install epel-release

sudo yum update

sudo reboot

Untar the archived repository:

tar -jxvf rocm-1.7-centos.tar.bz2

For a yum based repository (interfacing with installation tools such as yum, dnf) add create a file called /etc/yum.repos.d/rocm.repo with the following entries:

[remote]

name=ROCm Repo

baseurl=file://<tar location>/rocm-1.7-centos

enabled=1

gpgcheck=0

CentOS/RHEL Install

Before installing the dkms package, all versions of the amdgpu and amdkfd modules must be stopped. To stop these modules run:

sudo rmmod amdgpu

sudo rmmod amdkfd

Start the install by cleaning the yum information for the system.

sudo yum clean all

There is also currently a problem with the linux-firmware being install properly using the one-touch installation. You must install the firmware manually:

sudo yum install linux-firmware

The version of linux-firmware is what is listed in the repo, but it will not be picked up in the dependency list automatically. After this is install, install rocm-dkms and rocm-opencl

sudo yum install rocm-dkms rocm-opencl-devel

After a successful installation, reboot the system and see if the amdkfd and amdgpu modules have been started.

Note that the epel-release must be installed to satisfy installation dependencies for CentOS/RHEL installations.
