Skip to content

Commit

Permalink
RHEL CUDA instructions, spacing correction
Browse files Browse the repository at this point in the history
  • Loading branch information
amd-ethan committed Jul 8, 2019
1 parent 0edf78b commit 1c8d393
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
18 changes: 16 additions & 2 deletions docs/LINUXSUPPORT.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,12 @@ If using a GUI on SLES-15-SP1, such as gnome, the installation of CUDA may cause
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>
<b>Install and setup Devtoolset-7</b></br>
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>

<br><b>Install dkms tool</b>
```
sudo yum install -y epel-release
sudo yum install -y dkms kernel-headers-`uname -r` kernel-devel-`uname -r`
Expand All @@ -93,6 +94,7 @@ Create a /etc/yum.repos.d/rocm.repo file with the following contents:
enabled=1
gpgcheck=0
```
<b>Install rock-dkms</b>
```
sudo yum install rock-dkms
```
Expand All @@ -102,3 +104,15 @@ Create a /etc/yum.repos.d/rocm.repo file with the following contents:
sudo reboot
sudo usermod -a -G video $USER
```
### NVIDIA CUDA Driver
To build AOMP with support for nvptx GPUs, you must first install CUDA 10. We recommend CUDA 10.0. CUDA 10.1 will not work until AOMP moves to the trunk development of LLVM 9. The CUDA installation is now optional.

<b>Download Instructions for CUDA (SLES15)</b>
1. Go to https://developer.nvidia.com/cuda-10.0-download-archive
2. For SLES-15, select Linux, x86_64, RHEL or CentOS, 7, rpm(local) and then click Download.
3. Navigate to the rpm in your Linux directory and run the following commands:
```
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
```
6 changes: 3 additions & 3 deletions docs/SOURCEINSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ Build and install from sources is possible. However, the source build for AOMP
```
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>
<b>RHEL 7</b><br>
Building from source requires a newer gcc. Devtoolset-7 is recommended, follow instructions 1-3 here:<br>
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/<br>

```
sudo yum install cmake3 pciutils-devel numactl-devel libffi-devel
Expand Down

0 comments on commit 1c8d393

Please sign in to comment.