Skip to content

Commit b4c9aab

Browse files
committed
EAMxx: add machine files to use with SNL-hosted containers for gh actions testing
1 parent 56e881c commit b4c9aab

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Common settings for our ghci images
2+
include(${CMAKE_CURRENT_LIST_DIR}/ghci.cmake)
3+
4+
# Set SCREAM_MACHINE
5+
set(SCREAM_MACHINE ghci-openmp CACHE STRING "")
6+
7+
# Set OpenMP backend
8+
set(EKAT_MACH_FILES_PATH ${CMAKE_CURRENT_LIST_DIR}/../../../../externals/ekat/cmake/machine-files)
9+
include (${EKAT_MACH_FILES_PATH}/kokkos/openmp.cmake)
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Set Fortran flags
2+
set(CMAKE_Fortran_FLAGS "-fallow-argument-mismatch" CACHE STRING "Fortran compiler flags" FORCE)
3+
4+
# Set the path to SCREAM input data
5+
set(SCREAM_INPUT_ROOT /projects/e3sm/inputdata CACHE PATH "Path to SCREAM input data" FORCE)
6+
7+
# Set the path to BLAS/LAPACK libraries
8+
set(BLAS_LIBRARIES "/spack-installs/netlib-lapack/3.11.0/gcc/12.3.0/base/65x6uge/lib64/libblas.so" CACHE STRING "Path to BLAS library" FORCE)
9+
set(LAPACK_LIBRARIES "/spack-installs/netlib-lapack/3.11.0/gcc/12.3.0/base/65x6uge/lib64/liblapack.so" CACHE STRING "Path to LAPACK library" FORCE)
10+
11+
# Let's catch usage of code deprecated in Kokkos 4
12+
option (Kokkos_ENABLE_DEPRECATED_CODE_4 "" OFF)
13+
14+
# We need to manage resources to spread across available cores/gpus
15+
option (EKAT_TEST_LAUNCHER_MANAGE_RESOURCES "" ON)

components/eamxx/scripts/machines_specs.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,11 @@
9393
"linux-generic" : ([],["mpicxx","mpifort","mpicc"],"", ""),
9494
"linux-generic-debug" : ([],["mpicxx","mpifort","mpicc"],"", ""),
9595
"linux-generic-serial" : ([],["mpicxx","mpifort","mpicc"],"", ""),
96+
"ghci-snl-openmp" : ([],
97+
["mpicxx","mpifort","mpicc"],
98+
"",
99+
"/projects/e3sm/baselines/scream/master-baselines"
100+
),
96101
}
97102

98103
if pathlib.Path("~/.cime/scream_mach_specs.py").expanduser().is_file(): # pylint: disable=no-member

0 commit comments

Comments
 (0)