OpenACC
Contents
This page contains information on GCC's implementation of the OpenACC specification and related functionality. OpenACC is intended for programming accelerator devices such as GPUs, including code offloading to these devices. Currently supported are Nvidia PTX (nvptx) and AMD Radeon (Graphics Core Next, GCN, and Instinct, CDNA) devices.
Using OpenACC
Use the -fopenacc flag to enable OpenACC compilation; see compilation options for additional flags.
Active GCC Releases
- GCC 13, 12, 11, 10: Support OpenACC 2.6
- GCC 14: Supports several OpenACC 2.7 features
Development Branches: OG14 and mainline/GCC 15
- Mainline (GCC 15)
`devel/omp/gcc-14` (short: og14) in the GCC Git repository – based on GCC 14
The OG14 branch contains OpenACC, OpenMP, and offloading features backported from mainline and also improvements that are currently only on OG14, which still have to be integrated into mainline.
For discussing this project, please use the standard GCC resources (mailing lists, Bugzilla, and so on). It's helpful to put a [OpenACC] tag into your emails' subject line, and set the openacc keyword in any Bugzilla issues filed.
For instructions how to build offloading-enabled GCC from source, see Offloading: How to try offloading enabled GCC.
Technical Details