-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new cmake files for NVHPC compiler options
- Loading branch information
1 parent
8b295bb
commit b359aa5
Showing
2 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#################################################################### | ||
# COMMON FLAGS | ||
#################################################################### | ||
set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g") | ||
|
||
#################################################################### | ||
# RELEASE FLAGS | ||
#################################################################### | ||
|
||
set( CMAKE_C_FLAGS_RELEASE "-O3 -mp" ) | ||
|
||
#################################################################### | ||
# DEBUG FLAGS | ||
#################################################################### | ||
|
||
set( CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -O0" ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#################################################################### | ||
# COMMON FLAGS | ||
#################################################################### | ||
set( CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -g -traceback -Mnofma") | ||
|
||
#################################################################### | ||
# RELEASE FLAGS | ||
#################################################################### | ||
|
||
# Must turn off SIMD vectorization to get same results as for debug | ||
set( CMAKE_Fortran_FLAGS_RELEASE "-fast -mp -Mnovect" ) | ||
|
||
#################################################################### | ||
# DEBUG FLAGS | ||
#################################################################### | ||
|
||
set( CMAKE_Fortran_FLAGS_DEBUG "${CMAKE_Fortran_FLAGS_DEBUG} -O0 -Mbounds -Mchkptr -Mchkstk -Ktrap=fp" ) | ||
|
||
#################################################################### | ||
# FLAGS FOR GPU | ||
#################################################################### | ||
|
||
set( Fortran_GPU_FLAGS "" ) |