Skip to content

Commit

Permalink
Enable Gaea C6 support for hafs_forecast
Browse files Browse the repository at this point in the history
  • Loading branch information
BijuThomas-NOAA committed Aug 16, 2024
1 parent 45e3c4a commit 48d58e4
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmake/configure_gaeaC6.intel.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
set(PARALLEL_NETCDF ON CACHE BOOL "Enable parallel NetCDF" FORCE)
34 changes: 34 additions & 0 deletions modulefiles/ufs_gaeaC6.intel.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
help([[
This module loads libraries required for building and running UFS Weather Model
on the NOAA RDHPC machine Gaea C5 using Intel-2023.1.0.
]])

whatis([===[Loads libraries needed for building the UFS Weather Model on Gaea ]===])

load("PrgEnv-intel/8.5.0")
load("intel-classic/2023.2.0")
load("cray-mpich/8.1.29")
load("python/3.11")

prepend_path("MODULEPATH", "/autofs/ncrc-svm1_proj/epic/spack-stack/spack-stack-1.6.0/envs/unified-env-c6/install/modulefiles/Core")
prepend_path("MODULEPATH", "/ncrc/proj/epic/spack-stack/modulefiles")

stack_intel_ver=os.getenv("stack_intel_ver") or "2023.2.0"
load(pathJoin("stack-intel", stack_intel_ver))

stack_cray_mpich_ver=os.getenv("stack_cray_mpich_ver") or "8.1.29"
load(pathJoin("stack-cray-mpich", stack_cray_mpich_ver))

stack_python_ver=os.getenv("stack_python_ver") or "3.10.13"
load(pathJoin("stack-python", stack_python_ver))

load("ufs_common")
load("nccmp/1.9.0.1")

unload("darshan-runtime")
unload("cray-libsci")

setenv("CC","cc")
setenv("CXX","CC")
setenv("FC","ftn")
setenv("CMAKE_Platform","gaea.intel")
2 changes: 2 additions & 0 deletions tests/compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ case ${MACHINE_ID} in
# Activate lua environment for gaea c5
if [[ ${MACHINE_ID} == gaea ]]; then
module reset
elif [[ $MACHINE_ID == gaeaC6 ]]; then
source ${MODULESHOME}/init/bash
fi
# Load fv3 module
module use "${PATHTR}/modulefiles"
Expand Down
3 changes: 3 additions & 0 deletions tests/detect_machine.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ case $(hostname -f) in
gaea5[1-8]) MACHINE_ID=gaea ;; ### gaea51-58
gaea5[1-8].ncrc.gov) MACHINE_ID=gaea ;; ### gaea51-58

gaea6[1-8]) MACHINE_ID=gaeaC6 ;; ### gaea61-68
gaea6[1-8].ncrc.gov) MACHINE_ID=gaeaC6 ;; ### gaea61-68

hfe0[1-9]) MACHINE_ID=hera ;; ### hera01-09
hfe1[0-2]) MACHINE_ID=hera ;; ### hera10-12
hecflow01) MACHINE_ID=hera ;; ### heraecflow01
Expand Down
3 changes: 3 additions & 0 deletions tests/module-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ elif [[ ${MACHINE_ID} = gaea ]] ; then
fi
module reset

elif [[ $MACHINE_ID = gaeaC6 ]] ; then
source /opt/cray/pe/lmod/8.7.31/init/bash

elif [[ ${MACHINE_ID} = expanse ]]; then
# We are on SDSC Expanse
if ( ! eval module help > /dev/null 2>&1 ) ; then
Expand Down

0 comments on commit 48d58e4

Please sign in to comment.