Skip to content

Latest commit

 

History

History
58 lines (54 loc) · 2.24 KB

NOROOTINSTALL.md

File metadata and controls

58 lines (54 loc) · 2.24 KB

Install Without Root

By default, the packages install their content to the release directory /usr/lib/aomp_0.X-Y and then a symbolic link is created at /usr/lib/aomp to the release directory. This requires root access.

Once installed go to TESTINSTALL for instructions on getting started with AOMP examples.

Debian

To install the debian package without root access into your home directory, you can run these commands.

On Ubuntu 20.04:

   wget https://github.com/ROCm-Developer-Tools/aomp/releases/download/rel_17.0-2/aomp_Ubuntu2004_17.0-2_amd64.deb
   dpkg -x aomp_Ubuntu2004_17.0-2_amd64.deb /tmp/temproot

On Ubuntu 22.04:

   wget https://github.com/ROCm-Developer-Tools/aomp/releases/download/rel_17.0-2/aomp_Ubuntu2204_17.0-2_amd64.deb
   dpkg -x aomp_Ubuntu2204_17.0-2_amd64.deb /tmp/temproot

Move to $HOME and set variables:

   mv /tmp/temproot/usr $HOME
   export PATH=$PATH:$HOME/usr/lib/aomp/bin
   export AOMP=$HOME/usr/lib/aomp

The last two commands could be put into your .bash_profile file so you can always access the compiler.

RPM

To install the rpm package without root access into your home directory, you can run these commands.

   mkdir /tmp/temproot ; cd /tmp/temproot 

For SLES15-SP4:

   wget https://github.com/ROCm-Developer-Tools/aomp/releases/download/rel_17.0-2/aomp_SLES15_SP4-17.0-2.x86_64.rpm
   rpm2cpio aomp_SLES15_SP4-17.0-2.x86_64.rpm | cpio -idmv

For CentOS/RHEL 7:

   wget https://github.com/ROCm-Developer-Tools/aomp/releases/download/rel_17.0-2/aomp_CENTOS_7-17.0-2.x86_64.rpm
   rpm2cpio aomp_CENTOS_7-17.0-2.x86_64.rpm | cpio -idmv

For CentOS 8:

   wget https://github.com/ROCm-Developer-Tools/aomp/releases/download/rel_17.0-2/aomp_CENTOS_8-17.0-2.x86_64.rpm
   rpm2cpio aomp_CENTOS_8-17.0-2.x86_64.rpm | cpio -idmv

For CentOS 9:

   wget https://github.com/ROCm-Developer-Tools/aomp/releases/download/rel_17.0-2/aomp_CENTOS_9-17.0-2.x86_64.rpm
   rpm2cpio aomp_CENTOS_9-17.0-2.x86_64.rpm | cpio -idmv

Move to $HOME and set variables:

   mv /tmp/temproot/usr $HOME
   export PATH=$PATH:$HOME/usr/lib/aomp/bin
   export AOMP=$HOME/usr/lib/aomp

The last two commands could be put into your .bash_profile file so you can always access the compiler.