Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 5 additions & 8 deletions modulefiles/gsiutils_container.intel.lua
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
help([[
]])

prepend_path("MODULEPATH", "/opt/spack-stack/spack-stack-1.8.0/envs/unified-env/install/modulefiles/Core")
prepend_path("MODULEPATH", "/opt/spack-stack/spack-stack-1.9.2/envs/unified-env/install/modulefiles/Core")

--local python_ver=os.getenv("python_ver") or "3.11.6"
local stack_intel_ver=os.getenv("stack_intel_ver") or "2021.10.0"
local stack_impi_ver=os.getenv("stack_impi_ver") or "2021.12.2"
local cmake_ver=os.getenv("cmake_ver") or "3.27.9"
local prod_util_ver=os.getenv("prod_util_ver") or "2.1.1"
stack_oneapi_ver=os.getenv("stack_oneapi_ver") or "2024.2.0"
stack_impi_ver=os.getenv("stack_impi_ver") or "2021.13"

load(pathJoin("stack-intel", stack_intel_ver))
load(pathJoin("stack-oneapi", stack_oneapi_ver))
load(pathJoin("stack-intel-oneapi-mpi", stack_impi_ver))
load(pathJoin("cmake", cmake_ver))

load("gsiutils_common")

local prod_util_ver=os.getenv("prod_util_ver") or "2.1.1"
load(pathJoin("prod_util", prod_util_ver))

pushenv("CFLAGS", "-march=ivybridge")
Expand Down
32 changes: 32 additions & 0 deletions modulefiles/gsiutils_derecho.intel.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
help([[
]])

setenv("LMOD_TMOD_FIND_FIRST","yes")
prepend_path("MODULEPATH", "/lustre/desc1/scratch/epicufsrt/contrib/modulefiles_extra")
prepend_path("MODULEPATH", "/glade/work/epicufsrt/contrib/spack-stack/derecho/spack-stack-1.9.2/envs/ue-oneapi-2024.2.1/install/modulefiles/Core")

local stack_oneapi_ver=os.getenv("stack_oneapi_ver") or "2024.2.1"
load(pathJoin("stack-oneapi", stack_oneapi_ver))

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

local python_ver=os.getenv("python_ver") or "3.11.7"
local cmake_ver=os.getenv("cmake_ver") or "3.27.9"
local prod_util_ver=os.getenv("prod_util_ver") or "2.1.1"

load(pathJoin("python", python_ver))
load(pathJoin("cmake", cmake_ver))

load("gsiutils_common")

load(pathJoin("prod_util", prod_util_ver))

pushenv("CFLAGS", "-xHOST")
pushenv("FFLAGS", "-xHOST")

setenv("CC","mpicc")
setenv("CXX","mpicxx")
setenv("FC","mpifort")

whatis("Description: GSI utilities environment on NCAR derecho with Intel Compilers")
15 changes: 12 additions & 3 deletions ush/detect_machine.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
#
# Thank you for your contribution

# Overwrite auto-detect in in container
if [[ -v SINGULARITY_CONTAINER ]]; then
MACHINE_ID=container
fi

# If the MACHINE_ID variable is set, skip this script.
[[ -n ${MACHINE_ID:-} ]] && return

Expand Down Expand Up @@ -35,6 +40,9 @@ case $(hostname -f) in
ufe1[0-6]) MACHINE_ID=ursa ;; ### ursa10-12
uecflow01) MACHINE_ID=ursa ;; ### ursaecflow01

der*) MACHINE_ID=derecho ;; ### derecho[1-8]
dec*) MACHINE_ID=derecho ;; ### decxxx computing node

s4-submit.ssec.wisc.edu) MACHINE_ID=s4 ;; ### s4

fe[1-8]) MACHINE_ID=jet ;; ### jet01-8
Expand Down Expand Up @@ -68,9 +76,7 @@ if [[ "${MACHINE_ID}" != "UNKNOWN" ]]; then
fi

# Try searching based on paths since hostname may not match on compute nodes
if [[ -d /opt/spack-stack ]]; then
MACHINE_ID=container
elif [[ -d /lfs/h3 ]]; then
if [[ -d /lfs/h3 ]]; then
# We are on NOAA Cactus or Dogwood
MACHINE_ID=wcoss2
elif [[ -d /lfs/h1 && ! -d /lfs/h3 ]]; then
Expand Down Expand Up @@ -104,6 +110,9 @@ elif [[ -d /gpfs/f6 ]]; then
elif [[ -d /data/prod ]]; then
# We are on SSEC's S4
MACHINE_ID=s4
elif [[ -d /gpfs/csfs1 ]]; then
# We are on NCAR DERECHO.
MACHINE_ID=derecho
else
echo WARNING: UNKNOWN PLATFORM 1>&2
fi
11 changes: 8 additions & 3 deletions ush/module-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ if [[ $MACHINE_ID = jet* ]] ; then
fi
module purge
elif [[ $MACHINE_ID = container* ]] ; then
if ( ! eval module help > /dev/null 2>&1 ) ; then
source /usr/lmod/lmod/init/bash
fi
source /usr/lmod/lmod/init/bash
module purge

elif [[ $MACHINE_ID = hera* || $MACHINE_ID = ursa* ]] ; then
Expand Down Expand Up @@ -78,6 +76,13 @@ elif [[ ${MACHINE_ID} = gaeac6 ]]; then
fi
module reset

elif [[ $MACHINE_ID = derecho ]] ; then
# We are on NCAR derecho
if ( ! eval module help > /dev/null 2>&1 ) ; then
source /glade/u/apps/derecho/24.12/spack/opt/spack/lmod/8.7.37/gcc/12.4.0/nr3e/lmod/lmod/init/bash
fi
module --force purge

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