Install AMD AOCC C++ Fortran compiler

The no-cost AMD AOCC compiler is tuned for AMD CPUs, akin to how Intel oneAPI is tuned for Intel CPUs.

Create a source script ~/aocc.sh.

To use the AOCC compiler:

source ~/aocc.sh

The AOCL libraries provide accelerated math functions for AMD CPUs for several popular libraries for use in C, C++, or Fortran. AOCL is compatible with AOCC and other compilers as listed in the AOCL downloads.