AMD AOCC

CPE provides bundled support in the programming environment to enable the AMD compiler.

More information: https://cpe.ext.hpe.com/docs/guides/CPE/user_guides/Shasta/About_the_AOCC_Shasta.html

AMD Optimizing Compiler

The AMD compiler can be loaded as follows:

module swap PrgEnv-cray PrgEnv-aocc

The following example program shows a very simple AOCC application:

#include <stdio.h>

int main() {
    #pragma acc parallel loop
    for (int i = 0; i < 10; ++i) {
        printf("%d\n", i);
    }

    return 0;
}

The example code can be compiled with CPE as follows:

cc aocc.c

In case of Hybrid OpenMP, the following compiler option can be added:

cc aocc.c -fopenmp