From e2bf5bd186e64b0adab359d11306ba140bd941d3 Mon Sep 17 00:00:00 2001 From: Joseph Zhang Date: Wed, 28 Feb 2024 08:28:42 -0500 Subject: [PATCH] Add kuro cmake files --- cmake/SCHISM.local.kuro | 15 +++++++++++++++ cmake/SCHISMCompile.cmake | 4 ++++ 2 files changed, 19 insertions(+) create mode 100644 cmake/SCHISM.local.kuro diff --git a/cmake/SCHISM.local.kuro b/cmake/SCHISM.local.kuro new file mode 100644 index 000000000..4bbc64ad0 --- /dev/null +++ b/cmake/SCHISM.local.kuro @@ -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) + diff --git a/cmake/SCHISMCompile.cmake b/cmake/SCHISMCompile.cmake index 725b8bc8b..c1cfd8944 100644 --- a/cmake/SCHISMCompile.cmake +++ b/cmake/SCHISMCompile.cmake @@ -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")