Skip to content

Commit

Permalink
Add kuro cmake files
Browse files Browse the repository at this point in the history
  • Loading branch information
josephzhang8 committed Feb 28, 2024
1 parent 4d350e4 commit e2bf5bd
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
15 changes: 15 additions & 0 deletions cmake/SCHISM.local.kuro
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
###W&M kuro cluster

set (SCHISM_EXE_BASENAME pschism_KURO CACHE STRING "Base name (modules and file extension to be added of the executable. If you want a machine name, add it here")

###Relative paths won't work
#set(CMAKE_Fortran_COMPILER ifort CACHE PATH "Path to serial Fortran compiler")
set(CMAKE_Fortran_COMPILER ifx CACHE PATH "Path to serial Fortran compiler")
set(CMAKE_C_COMPILER icx CACHE PATH "Path to serial Fortran compiler")
set(CMAKE_CXX_COMPILER icpx CACHE PATH "Path to serial Fortran compiler")
set(CMAKE_Fortran_COMPILER mpiifort CACHE PATH "Path to serial Fortran compiler")
set(CMAKE_C_COMPILER mpiicc CACHE PATH "Path to serial Fortran compiler")
set(CMAKE_Fortran_FLAGS_RELEASE "-O3 -mcmodel=medium -march=x86-64-v3 -init=zero" CACHE STRING "Fortran flags" FORCE)
#set(CMAKE_Fortran_FLAGS_RELEASE "-O1 -ipo -mcmodel=medium -march=core-avx2 -init=zero " CACHE STRING "Fortran flags" FORCE)
set(CMAKE_C_FLAGS_RELEASE "-O1 -march=core-avx2 " CACHE STRING "Fortran flags" FORCE)

4 changes: 4 additions & 0 deletions cmake/SCHISMCompile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ if("${CMAKE_Fortran_COMPILER_ID}" STREQUAL "Intel")

endif()

if("${CMAKE_Fortran_COMPILER_ID}" STREQUAL "IntelLLVM")
set( C_PREPROCESS_FLAG CACHE STRING "C Preprocessor Flag")
endif()

if("${CMAKE_Fortran_COMPILER_ID}" STREQUAL "PGI")
#message(STATUS "Overriding default cmake Portland Group compiler flags")
set (SCHISM_PG_OPTIONS "-mcmodel=medium")
Expand Down

0 comments on commit e2bf5bd

Please sign in to comment.