# \[RFC\] Adding support for Clang within the OpenACC module

**URL:** https://discourse.cmake.org/t/rfc-adding-support-for-clang-within-the-openacc-module/9930
**Category:** Development
**Tags:** comp:clang
**Created:** [January 25, 2024, 2:00am UTC](https://discourse.cmake.org/t/rfc-adding-support-for-clang-within-the-openacc-module/9930 "2024-01-25T02:00:52Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ajarmusch](https://discourse.cmake.org/user_avatar/discourse.cmake.org/ajarmusch/32/4229_2.png) [@ajarmusch](https://discourse.cmake.org/u/ajarmusch)
#### Post date: [January 25, 2024, 2:00am UTC](https://discourse.cmake.org/t/rfc-adding-support-for-clang-within-the-openacc-module/9930/1 "2024-01-25T02:00:52Z")

</div>

Hello,

In support of the recent ongoing efforts to implement [OpenACC in Clang/LLVM](https://discourse.llvm.org/t/rfc-implementation-of-openacc-3-3-for-offload-in-clang/74405), Given LLVM’s utilization of CMake, we want to add support for the LLVM/Clang compiler in the OpenACC module.

This would be highly used, especially when we include the [OpenACC Testsuite](https://github.com/OpenACCUserGroup/OpenACCV-V) to the llvm-test-suite, which also uses CMake.

Similar to the compilers already supported, we see the only addition to the CMake code is within the FindOpenACC.cmake file, where we set ACC\_FLAG\_Clang.

Comments are welcome!

Thanks,  
Aaron

---

<div class="post-metadata">

### Author: ![brad.king](https://discourse.cmake.org/user_avatar/discourse.cmake.org/brad.king/32/11_2.png) [@brad.king](https://discourse.cmake.org/u/brad.king)
#### Post date: [January 25, 2024, 2:56pm UTC](https://discourse.cmake.org/t/rfc-adding-support-for-clang-within-the-openacc-module/9930/2 "2024-01-25T14:56:01Z")

</div>

@ajarmusch yes, one should only need to fill out the table in FindOpenACC. Please see the [contribution guide](https://gitlab.kitware.com/cmake/cmake/blob/master/CONTRIBUTING.rst). Thanks!
