Skip to content

Commit

Permalink
Upgrade to spack-stack v1.6.0, remove cheyenne. NOAA-EMC#844
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidHuber-NOAA committed Jan 17, 2024
1 parent 5c4372e commit 4c881a2
Show file tree
Hide file tree
Showing 11 changed files with 42 additions and 135 deletions.
12 changes: 6 additions & 6 deletions ci/rt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,26 +65,26 @@ if [ $mac2 = hf ]; then # for HERA
export machine=HERA
export homedir=${homedir:-"/scratch2/NAGAPE/epic/UPP/test_suite"}
export rundir=${rundir:-"/scratch1/NCEPDEV/stmp2/${USER}"}
module use /scratch1/NCEPDEV/nems/role.epic/spack-stack/spack-stack-1.5.0/envs/unified-env-noavx512/install/modulefiles/Core
module use /scratch1/NCEPDEV/nems/role.epic/spack-stack/spack-stack-1.6.0/envs/unified-env/install/modulefiles/Core
module load stack-intel/2021.5.0
module load stack-intel-oneapi-mpi/2021.5.1
module load prod_util/1.2.2
module load prod_util/2.1.1
elif [ $mac = O ] ; then
export machine=ORION
export homedir=${homedir:-"/work/noaa/epic/UPP"}
export rundir=${rundir:-"/work2/noaa/stmp/$USER"}
module use /work/noaa/epic/role-epic/spack-stack/orion/spack-stack-1.5.0/envs/unified-env/install/modulefiles/Core
module use /work/noaa/epic/role-epic/spack-stack/orion/spack-stack-1.6.0/envs/unified-env/install/modulefiles/Core
module load stack-intel/2022.0.2
module load stack-intel-oneapi-mpi/2021.5.1
module load prod-util/1.2.2
module load prod-util/2.1.1
elif [ $mac3 = herc ] ; then
export machine=HERCULES
export homedir=${homedir:-"/work/noaa/epic/UPP"}
export rundir=${rundir:-"/work2/noaa/stmp/$USER"}
module use /work/noaa/epic/role-epic/spack-stack/hercules/spack-stack-1.5.0/envs/unified-env/install/modulefiles/Core
module use /work/noaa/epic/role-epic/spack-stack/hercules/spack-stack-1.6.0/envs/unified-env/install/modulefiles/Core
module load stack-intel/2021.9.0
module load stack-intel-oneapi-mpi/2021.9.0
module load prod-util/1.2.2
module load prod-util/2.1.1
fi

#set working directory
Expand Down
12 changes: 6 additions & 6 deletions ci/spack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@ spack:
- intel
- gcc@10:10
specs:
- netcdf-c@4.7.4
- netcdf-fortran@4.5.3
- netcdf-c@4.9.2
- netcdf-fortran@4.6.1
- bacio@2.4.1
- w3emc@2.9.2
- w3emc@2.10.0
- g2@3.4.5
- g2tmpl@1.10.0
- sp@2.3.3
- g2tmpl@1.10.2
- sp@2.5.0
- ip@3.3.3
- sigio@2.3.2
- sfcio@1.4.1
- nemsio@2.5.4
- wrf-io@1.2.0
- crtm@2.3.0
- crtm@2.4.0.1
view: true
concretizer:
unify: true
Expand Down
39 changes: 0 additions & 39 deletions modulefiles/cheyenne

This file was deleted.

40 changes: 0 additions & 40 deletions modulefiles/cheyenne_gnu

This file was deleted.

2 changes: 1 addition & 1 deletion modulefiles/hera.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Load environment to build UPP on hera
]])


prepend_path("MODULEPATH", "/scratch1/NCEPDEV/nems/role.epic/spack-stack/spack-stack-1.5.0/envs/unified-env-noavx512/install/modulefiles/Core")
prepend_path("MODULEPATH", "/scratch1/NCEPDEV/nems/role.epic/spack-stack/spack-stack-1.6.0/envs/unified-env/install/modulefiles/Core")

stack_intel_ver=os.getenv("stack_intel_ver") or "2021.5.0"
load(pathJoin("stack-intel", stack_intel_ver))
Expand Down
2 changes: 1 addition & 1 deletion modulefiles/hercules.lua
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Load environment to build UPP on hecules
]])


prepend_path("MODULEPATH", "/work/noaa/epic/role-epic/spack-stack/hercules/spack-stack-1.5.0/envs/unified-env/install/modulefiles/Core")
prepend_path("MODULEPATH", "/work/noaa/epic/role-epic/spack-stack/hercules/spack-stack-1.6.0/envs/unified-env/install/modulefiles/Core")

stack_intel_ver=os.getenv("stack_intel_ver") or "2021.9.0"
load(pathJoin("stack-intel", stack_intel_ver))
Expand Down
37 changes: 0 additions & 37 deletions modulefiles/jet

This file was deleted.

22 changes: 22 additions & 0 deletions modulefiles/jet.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
help([[
Load environment to build UPP on Jet
]])

prepend_path("MODULEPATH", "/mnt/lfs4/HFIP/hfv3gfs/role.epic/spack-stack/spack-stack-1.6.0/envs/unified-env/install/modulefiles/Core")

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

stack_impi_ver=os.getenv("stack_impi_ver") or "2021.5.1"
load(pathJoin("stack-intel-oneapi-mpi", stack_impi_ver))

cmake_ver=os.getenv("cmake_ver") or "3.23.1"
load(pathJoin("cmake", cmake_ver))

load("upp_common")

setenv("CC","mpiicc")
setenv("CXX","mpiicpc")
setenv("FC","mpiifort")

whatis("Description: UPP build environment")
2 changes: 1 addition & 1 deletion modulefiles/orion.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Load environment to build UPP on orion
]])


prepend_path("MODULEPATH", "/work/noaa/epic/role-epic/spack-stack/orion/spack-stack-1.5.0/envs/unified-env/install/modulefiles/Core")
prepend_path("MODULEPATH", "/work/noaa/epic/role-epic/spack-stack/orion/spack-stack-1.6.0/envs/unified-env/install/modulefiles/Core")

stack_intel_ver=os.getenv("stack_intel_ver") or "2022.0.2"
load(pathJoin("stack-intel", stack_intel_ver))
Expand Down
3 changes: 2 additions & 1 deletion modulefiles/s4.lua
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
-- ---------------------------------------------------------------------------
-- David Huber 06/2021, Set up config. with the hpc-stack NCEPLIBS.
-- Innocent Souopgui 11/2023, Update to use spack-stack
-- David Huber 1/24, Update to use spack-stack v1.6.0
-- ---------------------------------------------------------------------------


prepend_path("MODULEPATH", "/data/prod/jedi/spack-stack/spack-stack-1.5.0/envs/unified-env/install/modulefiles/Core")
prepend_path("MODULEPATH", "/data/prod/jedi/spack-stack/spack-stack-1.6.0/envs/unified-env/install/modulefiles/Core")

local stack_intel_ver=os.getenv("stack_intel_ver") or "2021.5.0"
local stack_impi_ver=os.getenv("stack_impi_ver") or "2021.5.0"
Expand Down
6 changes: 3 additions & 3 deletions modulefiles/upp_common.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ local ufs_modules = {
{["libpng"] = "1.6.37"},
{["hdf5"] = "1.14.0"},
{["netcdf-c"] = "4.9.2"},
{["netcdf-fortran"] = "4.6.0"},
{["netcdf-fortran"] = "4.6.1"},
{["parallelio"] = "2.5.10"},
{["bacio"] = "2.4.1"},
{["crtm"] = "2.4.0"},
{["crtm"] = "2.4.0.1"},
{["g2"] = "3.4.5"},
{["g2tmpl"] = "1.10.2"},
{["ip"] = "4.3.0"},
{["sp"] = "2.3.3"},
{["sp"] = "2.5.0"},
{["w3emc"] = "2.10.0"},
{["nemsio"] = "2.5.4"},
{["sigio"] = "2.3.2"},
Expand Down

0 comments on commit 4c881a2

Please sign in to comment.