- Spack usage disclaimer, copyright and trademark notice
- Introduction to SPACK
- Getting Started
- Build Customization
- Technical Support
AMD Toolchain with SPACK
SPACK HPC Applications
The AOCC compiler system is a high-performance, production-quality, code-generation tool. The AOCC environment provides various options to developers when building and optimizing C, C++, and Fortran applications targeting 32-bit and 64-bit Linux® platforms. The AOCC compiler system offers a high level of advanced optimizations, multi-threading and processor support that includes global optimization, vectorization, inter-procedural analyses, loop transformations, and code generation. The AOCC compiler suite simplifies and accelerates development and tuning for x86 applications.
Note: Currently Spack only supports AOCC 2.2 or later.
For more information, refer AMD Developer Central (https://developer.amd.com/amd-aocc/).
|# Format For installing AOCC
|# Example: To Download and install AOCC 3.2 compiler
|# Adding AOCC as a part of Spack compiler’s list
$ spack compiler add $PWD
|# To list all available compilers
$ spack compilers
|# Example: loading AOCC 3.2 into Spack environment
# Loading AOCC into environment is optional.
# Spack commands with %aocc still use the installed AOCC.
Accepting the AOCC End User License Agreement
Use of AOCC is governed by an AMD End User License Agreement (EULA), normally accepted when the AOCC installer is downloaded from AMD. To install AOCC via Spack, the EULA agreement must be accepted as follows:
- During installation, pass to the Spack command “+license-agreed”.
- While installing AOCC, a screen prompt for the EULA needs to saved.
$ spack install -v aocc@<Version>+license-agreed
Supported AOCC Versions
AMD supports these versions of AOCC through Spack:
- AOCC 2.2.0
- AOCC 2.3.0
- AOCC 3.0.0
- AOCC 3.1.0
- AOCC 3.2.0
Subsequent versions will be added when supported.
Uninstalling the AOCC compiler in Spack
|# Format for uninstalling AOCC
$ spack uninstall aocc@<Version>
|# Example: Uninstall AOCC 3.2
$ spack uninstall firstname.lastname@example.org
|# Format for Removing the compiler from the compiler.yaml
$ spack compiler remove aocc@<Version>
|# Example: Removing the compiler from the compiler.yaml
$ spack compiler remove email@example.com