Skip to content

Commit

Permalink
RHEL 7 support added
Browse files Browse the repository at this point in the history
  • Loading branch information
amd-ethan committed Jul 8, 2019
1 parent e0eb8a9 commit 0edf78b
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 4 deletions.
36 changes: 34 additions & 2 deletions docs/LINUXSUPPORT.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
<b>Install and setup Devtoolset-7</b>
Devtoolset-7 is recommended, follow instructions 1-3 here:<br><br>
https://www.softwarecollections.org/en/scls/rhscl/devtoolset-7/<br>
Note that devtoolset-7 is a Software Collections package, and it is not supported by AMD.
<b>Install dkms tool</b>
```
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
```
17 changes: 15 additions & 2 deletions docs/SOURCEINSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,26 @@ Build and install from sources is possible. However, the source build for AOMP
<b>Ubuntu</b>

```
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
```
<b>SLES-15-SP1</b>

```
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
```
<b>RHEL 7</b>
Building from source requires a newer gcc. Devtoolset-7 is recommended, follow instructions 1-3 here:<br><br>
https://www.softwarecollections.org/en/scls/rhscl/devtoolset-7/<br>
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.
Expand Down

0 comments on commit 0edf78b

Please sign in to comment.