Skip to content

Commit

Permalink
add ACC_Fortran_FLAGS in addition to OpenACC_Fortran_FLAGS
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrdar committed Apr 25, 2024
1 parent d846297 commit e45c633
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmake/features/ACC.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,13 @@ if( atlas_HAVE_ACC )
if( CMAKE_Fortran_COMPILER_ID MATCHES "PGI|NVHPC" )
#set( ACC_Fortran_FLAGS -acc -ta=tesla,nordc )
set( ACC_Fortran_FLAGS "-acc=gpu;-gpu=gvmode,lineinfo,fastmath,rdc" )

if( OpenACC_Fortran_FLAGS )
set( ACC_Fortran_FLAGS ${OpenACC_Fortran_FLAGS} )
endif()

set( ACC_C_FLAGS ${ACC_Fortran_FLAGS} )

find_program( ACC_C_COMPILER NAMES pgcc HINTS ${PGI_DIR} ${NVPHC_DIR} ENV PGI_DIR NVHPC_DIR PATH_SUFFIXES bin )
if( NOT ACC_C_COMPILER )
ecbuild_error( "Could not find OpenACC capable C compiler" )
Expand Down

0 comments on commit e45c633

Please sign in to comment.