51
edits
Changes
→Instructions for AMD
To install AOMP compiler on ubuntu:
https://github.com/ROCm-Developer-Tools/aomp/blob/master/docs/UBUNTUINSTALL.md
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 18.04 LTS (bionic beaver), run these commands:
<pre>
wget https://github.com/ROCm-Developer-Tools/aomp/releases/download/rel_11.11-2/aomp_Ubuntu1804_11.11-2_amd64.deb
sudo dpkg -i aomp_Ubuntu1804_11.11-2_amd64.deb
'''Prerequisites'''
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.
<pre>
echo 'SUBSYSTEM=="kfd", KERNEL=="kfd", TAG+="uaccess", GROUP="video"' | sudo tee /etc/udev/rules.d/70-kfd.rules
wget -qO - http://repo.radeon.com/rocm/apt/debian/rocm.gpg.key | sudo apt-key add -
sudo reboot
sudo usermod -a -G video $USER
</pre>
'''ALTERNATIVELY'''
You may also decide to install full ROCm (Radeon Open Compute) driver package, before installing AOMP package:
https://rocmdocs.amd.com/en/latest/Installation_Guide/Installation-Guide.html
More AOMP documentation:
https://rocmdocs.amd.com/en/latest/Programming_Guides/aomp.html
== Programming GPUs with OpenMP ==