From 0edf78be900493792c8bfa94003cf0e96479e3ff Mon Sep 17 00:00:00 2001 From: estewart08 Date: Mon, 8 Jul 2019 10:44:12 -0500 Subject: [PATCH] RHEL 7 support added --- docs/LINUXSUPPORT.md | 36 ++++++++++++++++++++++++++++++++++-- docs/SOURCEINSTALL.md | 17 +++++++++++++++-- 2 files changed, 49 insertions(+), 4 deletions(-) diff --git a/docs/LINUXSUPPORT.md b/docs/LINUXSUPPORT.md index 6f49313f5..477042986 100644 --- a/docs/LINUXSUPPORT.md +++ b/docs/LINUXSUPPORT.md @@ -68,5 +68,37 @@ If using a GUI on SLES-15-SP1, such as gnome, the installation of CUDA may cause sudo rm /etc/alternatives/libglx.so sudo ln -s /usr/lib64/xorg/modules/extensions/xorg/xorg-libglx.so /etc/alternatives/libglx.so ``` -# CentOS/RedHat Support -Coming Soon. +# CentOS/RHEL 7 Support +### KFD for AMD GPUs +``` + 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:

+https://www.softwarecollections.org/en/scls/rhscl/devtoolset-7/
+Note that devtoolset-7 is a Software Collections package, and it is not supported by AMD. +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/rocm.repo file with the following contents: +``` + [ROCm] + name=ROCm + baseurl=http://repo.radeon.com/rocm/yum/rpm + enabled=1 + gpgcheck=0 +``` +``` + sudo yum install rock-dkms +``` +### Set Group Access +``` + echo 'SUBSYSTEM=="kfd", KERNEL=="kfd", TAG+="uaccess", GROUP="video"' | sudo tee /etc/udev/rules.d/70-kfd.rules + sudo reboot + sudo usermod -a -G video $USER +``` diff --git a/docs/SOURCEINSTALL.md b/docs/SOURCEINSTALL.md index 21db2c56f..ae08e6f6e 100644 --- a/docs/SOURCEINSTALL.md +++ b/docs/SOURCEINSTALL.md @@ -10,13 +10,26 @@ Build and install from sources is possible. However, the source build for AOMP Ubuntu ``` - sudo apt-get install cmake g++-5 g++ pkg-config libpci-dev libnuma-dev libelf-dev libffi-dev git python libopenmpi-dev + sudo apt-get install cmake g++-5 g++ pkg-config libpci-dev libnuma-dev libelf-dev libffi-dev git python libopenmpi-dev ``` SLES-15-SP1 ``` -sudo zypper install -y git pciutils-devel cmake python-base libffi-devel gcc gcc-c++ libnuma-devel libelf-devel patchutils openmpi2-devel + sudo zypper install -y git pciutils-devel cmake python-base libffi-devel gcc gcc-c++ libnuma-devel libelf-devel patchutils openmpi2-devel ``` +RHEL 7 +Building from source requires a newer gcc. Devtoolset-7 is recommended, follow instructions 1-3 here:

+https://www.softwarecollections.org/en/scls/rhscl/devtoolset-7/
+Note that devtoolset-7 is a Software Collections package, and it is not supported by AMD. + +``` + sudo yum install cmake3 pciutils-devel numactl-devel libffi-devel +``` +The build scripts use cmake, so we need to link cmake --> cmake3 in /usr/bin +``` + sudo ln -s /usr/bin/cmake3 /usr/bin/cmake +``` + ## AOMP Verify and Install Linux Support Please verify you have the proper software installed as AOMP needs certain support for Linux to function properly, such as the KFD driver for AMD GPUs and CUDA for nvptx. Click [LINUXSUPPORT](LINUXSUPPORT.md) for more information.