OpenACC is a standard for parallel programming on accelerators, such as Nvidia GPUs and Intel Phi. It consists primarily of a set of compiler directives for executing code on the accelerator, in C and Fortran. OpenACC is currently only supported by the PGI compilers installed on OSC systems.
Availability & Restrictions
OpenACC is available without restriction to all OSC users. It is supported by the PGI compilers.
Note: Some of the older compiler versions available on Glenn may not support OpenACC.
OpenACC support is built into the compilers. There is no separate module to load.
Building With OpenACC
To build a program with OpenACC, use the compiler flag appropriate to your compiler. The correct libraries are included implicitly.
An OpenACC program will not run without an acelerator present. You need to ensure that your PBS resource request includes GPUs. For example, to run an OpenACC program on Oakley, your resource request should look something like this:
#PBS -l nodes=1:ppn=12:gpus=2.
- The OpenACC® website, http://www.openacc.org