Skip to content

Latest commit

 

History

History
49 lines (45 loc) · 1.92 KB

File metadata and controls

49 lines (45 loc) · 1.92 KB

AOMP Debian/Ubuntu Install

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.

On Ubuntu 20.04, run these commands:

wget https://github.com/ROCm-Developer-Tools/aomp/releases/download/rel_15.0-1/aomp_Ubuntu2004_15.0-1_amd64.deb
sudo dpkg -i aomp_Ubuntu2004_15.0-1_amd64.deb

On Ubuntu 18.04 LTS (bionic beaver), run these commands:

wget https://github.com/ROCm-Developer-Tools/aomp/releases/download/rel_15.0-1/aomp_Ubuntu1804_15.0-1_amd64.deb
sudo dpkg -i aomp_Ubuntu1804_15.0-1_amd64.deb

The AOMP bin directory (which includes the standard clang and llvm binaries) is not intended to be in your PATH for typical operation.

Prerequisites

AMD KFD Driver

These commands are for supported Debian-based systems and target only the amdgpu_dkms core component.

wget -q -O - https://repo.radeon.com/rocm/rocm.gpg.key | sudo apt-key add -

Ubuntu 18.04:

echo 'deb [arch=amd64] http://repo.radeon.com/amdgpu/latest/ubuntu bionic main' | sudo tee /etc/apt/sources.list.d/admgpu.list

Ubuntu 20.04:

echo 'deb [arch=amd64] http://repo.radeon.com/amdgpu/latest/ubuntu focal main' | sudo tee /etc/apt/sources.list.d/amdgpu.list

Update and Install:

sudo apt update
sudo apt install amdgpu-dkms
sudo reboot
sudo usermod -a -G video $USER

NVIDIA CUDA Driver

The CUDA installation is optional. Note these instructions reference the install for Ubuntu 18.04.

   wget https://developer.nvidia.com/compute/cuda/10.0/Prod/local_installers/cuda-repo-ubuntu1804-10-0-local-10.0.130-410.48_1.0-1_amd64
   sudo dpkg -i cuda-repo-ubuntu1804-10-0-local-10.0.130-410.48_1.0-1_amd64.deb
   sudo apt-key add /var/cuda-repo-10-0-local-10.0.130-410.48/7fa2af80.pub
   sudo apt-get update
   sudo apt-get install cuda

Depending on your system the CUDA install could take a very long time.