Currently, we support RHEL 7.4 and RHEL 7.6.
AOMP will install to /usr/lib/aomp. The AOMP environment variable will automatically be set to the install location. This may require a new terminal to be launched to see the change.
The installation may need the following dependency:
sudo yum install perl-Digest-MD5 perl-URI-Encode
wget https://github.com/ROCm-Developer-Tools/aomp/releases/download/rel_17.0-2/aomp_CENTOS_7-17.0-2.x86_64.rpm
sudo rpm -i aomp_CENTOS_7-17.0-2.x86_64.rpm
If CUDA is not installed the installation may cancel, to bypass this:
sudo rpm -i --nodeps aomp_CENTOS_7-17.0-2.x86_64.rpm
Confirm AOMP environment variable is set:
echo $AOMP
The ROCm kernel driver is required for AMD GPU support. Also, to control access to the ROCm device, a user group "video" must be created and users need to be added to this group.
sudo subscription-manager repos --enable rhel-server-rhscl-7-rpms
sudo subscription-manager repos --enable rhel-7-server-optional-rpms
sudo subscription-manager repos --enable rhel-7-server-extras-rpms
sudo rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
Install and setup Devtoolset-7
Devtoolset-7 is recommended, follow instructions 1-3 here:
Note that devtoolset-7 is a Software Collections package, and it is not supported by AMD.
https://www.softwarecollections.org/en/scls/rhscl/devtoolset-7/
Install dkms tool
sudo yum install -y epel-release
sudo yum install -y dkms kernel-headers-`uname -r` kernel-devel-`uname -r`
Create a /etc/yum.repos.d/amdgpu.repo file with the following contents:
[amdgpu]
name=amdgpu
baseurl=https://repo.radeon.com/amdgpu/latest/rhel/7.9/main/x86_64
enabled=1
gpgcheck=1
gpgkey=https://repo.radeon.com/rocm/rocm.gpg.key
Install amdgpu-dkms
sudo yum install amdgpu-dkms
sudo reboot
sudo usermod -a -G video $USER
The CUDA installation is optional.
wget https://developer.nvidia.com/compute/cuda/10.0/Prod/local_installers/cuda-repo-rhel7-10-0-local-10.0.130-410.48-1.0-1.x86_64
sudo rpm -i cuda-repo-rhel7-10-0-local-10.0.130-410.48-1.0-1.x86_64.rpm
sudo yum clean all
sudo yum install cuda