Initial OpenACC Code Begins Landing In The LLVM Clang Compiler

Written by Michael Larabel in LLVM on 17 November 2023 at 10:02 AM EST. 1 Comment
LLVM
As noted a few weeks back, NVIDIA is working to add OpenACC support to the upstream LLVM Clang compiler for this parallel computing standard. Today that work began landing in LLVM/Clang's development codebase.

NVIDIA is big on the OpenACC parallel computing standard for targeting GPUs with C / C++ / Fortran code particularly for science domains. While there has been the out-of-tree Clang-based CLACC for supporting OpenACC, NVIDIA is working to add an upstream OpenACC 3.3 implementation to Clang.

OpenACC


Merged this morning are the initial Clang commits for handling OpenACC. With this Clang now picks up on the "-fopenacc" argument and other elements of the OpenACC spec have begun to be implemented. This isn't a complete OpenACC implementation yet but it's great seeing the very first bits beginning to land and just a matter of time now before all of it will be built up.

These initial bits are in mainline for what will be LLVM 18.0 while it remains to be seen how far along the OpenACC implementation will be by the time LLVM/Clang 18 debuts in the early months of 2024.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week