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 21b909cdd..c1cfd8944 100644 --- a/cmake/SCHISMCompile.cmake +++ b/cmake/SCHISMCompile.cmake @@ -14,11 +14,15 @@ if("${CMAKE_Fortran_COMPILER_ID}" STREQUAL "Intel") set( CMAKE_Fortran_FLAGS_RELEASE_INIT "-O2 ${SCHISM_INTEL_OPTIONS}") set( CMAKE_Fortran_FLAGS_DEBUG_INIT "-g ${SCHISM_INTEL_OPTIONS}") set( CMAKE_Fortran_FLAGS_RELWITHDEBINFO_INIT "-O2 -g -debug inline_debug_info ${SCHISM_INTEL_OPTIONS}") - set( C_PREPROCESS_FLAG CACHE STRING "C Preprocessor Flag") + set( C_PREPROCESS_FLAG -cpp CACHE STRING "C Preprocessor Flag") endif() 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") diff --git a/src/Utility/Cluster_files/modules.kuro b/src/Utility/Cluster_files/modules.kuro new file mode 100644 index 000000000..b041537e4 --- /dev/null +++ b/src/Utility/Cluster_files/modules.kuro @@ -0,0 +1,2 @@ +module load intel/compiler-2024.0 openmpi-ib/intel-2024.0/4.1.6 hdf5/intel-2024.0/1.14.3_openmpi +module load slurm/23.11.1 netcdf-c/intel-2024.0/4.9.2_openmpi netcdf-fortran/intel-2024.0/4.6.1_openmpi diff --git a/src/Utility/Cluster_files/run_kuro b/src/Utility/Cluster_files/run_kuro new file mode 100644 index 000000000..d3c76ffc9 --- /dev/null +++ b/src/Utility/Cluster_files/run_kuro @@ -0,0 +1,8 @@ +#!/bin/tcsh +#SBATCH --job-name=R01a +##64 cores/nodes +#SBATCH -N 13 --ntasks-per-node=64 +##Max wall clock time is XX days +#SBATCH -t 24:00:00 + +srun ./pschism_i24 6