File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,6 +44,14 @@ elseif(COMPILER STREQUAL "Intel" OR COMPILER STREQUAL "IntelLLVM")
4444 set (CMAKE_Fortran_FLAGS_DEBUG "-O0 -g -fpe0 -check all" )
4545 endif ()
4646 set (CMAKE_Fortran_FLAGS_RELEASE "-O2 -debug minimal" )
47+ elseif (COMPILER STREQUAL "NVHPC" )
48+ add_compile_definitions (CPRNVHPC )
49+ set (CMAKE_C_FLAGS "-fPIC" )
50+ set (CMAKE_C_FLAGS_DEBUG "-g -O0" )
51+ set (CMAKE_C_FLAGS_RELEASE "-Ofast" )
52+ set (CMAKE_Fortran_FLAGS "-fPIC" )
53+ set (CMAKE_Fortran_FLAGS_DEBUG "-g -O0" )
54+ set (CMAKE_Fortran_FLAGS_RELEASE "-Ofast" )
4755elseif (COMPILER STREQUAL "LFortran" )
4856 add_compile_definitions (CPRLFORTRAN )
4957 # There is an issue, some modules require --cpp as a flag in their compilation
@@ -75,4 +83,4 @@ message(STATUS " ******* ${CMAKE_PROJECT_NAME} build options ******* ")
7583message (STATUS " Build type = '${CMAKE_BUILD_TYPE} '" )
7684message (STATUS " Compiler = '${COMPILER} '" )
7785message (STATUS " Coupling mode = '${COUPLING_MODE} '" )
78- message (STATUS " ********************************** " )
86+ message (STATUS " ********************************** " )
You can’t perform that action at this time.
0 commit comments