reformat and fix commands
# Verify and Install Linux Support
The ROCm kernel driver is required for AMD GPU support and CUDA is required for nvptx GPU support.
+Also, to control access to the ROCm device, a linux user group "video" must be created and users added to this group.
-## Debian Support
+# Debian or Ubuntu Support
### AMD KFD Driver
These commands are for supported Debian-based systems and target only the rock_dkms core component. More information can be found [HERE](https://rocm.github.io/ROCmInstall.html#ubuntu-support---installing-from-a-debian-repository).
```
@@ -12,7 +13,7 @@ sudo apt update
sudo apt install rock-dkms
sudo reboot
-sudo usermod -a -G video $LOGNAME
+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. Note these instructions reference the install for Ubuntu 16.04.
@@ -29,7 +30,7 @@ To build AOMP with support for nvptx GPUs, you must first install CUDA 10. We r
```
Depending on your system the CUDA install could take a very long time.
-## SUSE SLES-15-SP1 Support
+# SUSE SLES-15-SP1 Support
### KFD for AMD GPUs
SUSE SLES-15-SP1 comes with kfd support installed. To verify this:
```
@@ -40,14 +41,13 @@ SUSE SLES-15-SP1 comes with kfd support installed. To verify this:
### Set Group Access
```
echo 'SUBSYSTEM=="kfd", KERNEL=="kfd", TAG+="uaccess", GROUP="video"' | sudo tee /etc/udev/rules.d/70-kfd.rules
- sudo usermod -a -G video $LOGNAME
- 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 (Ubuntu 16.04)</b>
+<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, SLES, 15.0, rpm(local) and then click Download.
3. Navigate to the rpm in your Linux directory and run the following commands:
@@ -58,5 +58,5 @@ To build AOMP with support for nvptx GPUs, you must first install CUDA 10. We r
```
If prompted, select the 'always trust key' option. Depending on your system the CUDA install could take a very long time.
-## CentOS/RedHat Support
+# CentOS/RedHat Support
Coming Soon.
