Skip to content

Commit

Permalink
Add compiler condition to OpenACC option
Browse files Browse the repository at this point in the history
  • Loading branch information
reuterbal committed Dec 3, 2024
1 parent 9b2806c commit 9965ed5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ ecbuild_add_option(
DEFAULT ON
DESCRIPTION "Use OpenACC to offload computations to GPU"
REQUIRED_PACKAGES "OpenACC COMPONENTS Fortran"
CONDITION CMAKE_Fortran_COMPILER_ID MATCHES "PGI|NVHPC"
)
if( HAVE_ACC )
if( DEFINED BUILD_SHARED_LIBS AND BUILD_SHARED_LIBS )
Expand Down

0 comments on commit 9965ed5

Please sign in to comment.