Detect OpenACC support by the compiler.
This module can be used to detect OpenACC support in a compiler. If the compiler supports OpenACC, the flags required to compile with OpenACC support are returned in variables for the different languages. Currently, only PGI, GNU and Cray compilers are supported.
This module will set the following variables per language in your project, where <lang>
is one of C, CXX, or Fortran:
OpenACC_<lang>_FOUND
<lang>
was detected.OpenACC_<lang>_FLAGS
<lang>
, separated by spaces.The module will also try to provide the OpenACC version variables:
OpenACC_<lang>_SPEC_DATE
<lang>
compiler.OpenACC_<lang>_VERSION_MAJOR
<lang>
compiler.OpenACC_<lang>_VERSION_MINOR
<lang>
compiler.OpenACC_<lang>_VERSION
<lang>
compiler.The specification date is formatted as given in the OpenACC standard: yyyymm
where yyyy
and mm
represents the year and month of the OpenACC specification implemented by the <lang>
compiler.
OpenACC_ACCEL_TARGET=<target>
If set, will the correct target accelerator flag set to the <target> will be returned with OpenACC_<lang>_FLAGS.
© 2000–2018 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/v3.12/module/FindOpenACC.html