SPACK Support - SPACK Support - 57222

AOCC User Guide

Document_ID
57222
Release_Date
2026-05-12
Revision
5.2 English
Note:
  1. SPACK support is available beginning with AOCC 3.2.
  2. In the following procedure, the <Version Number> in aocc@<Version Number> implies the AOCC version. For example, if you are installing AOCC 5.2.0, you must use aocc@5.2.0.

Installing AOCC in SPACK

Complete the following steps to install AOCC compiler in SPACK.
  1. Install AOCC.
    $ spack install -v aocc@<Version Number> +license-agreed
  2. Add AOCC to the SPACK compiler list.
    $ spack cd -i aocc@<Version Number>
    $ spack compiler add $PWD
    $ spack cd -i aocc@<Version Number>
    $ spack compiler add $PWD
  3. List all the available compilers.
    $ spack compilers
Uninstalling AOCC Compiler from SPACK
  1. Uninstall AOCC.
    $ spack uninstall aocc@<Version Number>
  2. Remove the compiler from the compiler.yaml file.
    $ spack compiler remove aocc@<Version Number>

For more details on AOCC in SPACK, see the AOCC support web page.