Skip to content

Commit

Permalink
GitHub Issue #383
Browse files Browse the repository at this point in the history
Update hpc-stack in Cheyenne modulefiles for GNU and Intel compilers.

A small workaround was necessary for the GNU modulefile to avoid
a dependency issue with the GNU version of hpc-stack.
  • Loading branch information
christopherwharrop-noaa committed May 19, 2022
1 parent 7146a0b commit 7a4fa9b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
7 changes: 5 additions & 2 deletions modulefiles/gsi_cheyenne.gnu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,21 @@ load("mpt/2.22")
load("ncarcompilers/0.5.0")
unload("netcdf")

prepend_path("MODULEPATH", "/glade/p/ral/jntp/GMTB/tools/hpc-stack-v1.2.0/modulefiles/stack")
prepend_path("MODULEPATH", "/glade/work/epicufsrt/GMTB/tools/gnu/10.1.0/hpc-stack-v1.2.0/modulefiles/stack")

load("hpc/1.2.0")
load("hpc-gnu/10.1.0")
load("hpc-mpt/2.22")

-- Preload w3nco to work around nemsio "find_dependency(w3nco)" hpc-stack bug
load("w3nco/2.4.1")

load("gsi_common")

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

pushenv("MKLROOT", "/glade/u/apps/opt/intel/2021.2/mkl/latest")
pushenv("MKLROOT", "/glade/u/apps/opt/intel/2022.1/mkl/latest")

pushenv("CC", "mpicc")
pushenv("FC", "mpif90")
Expand Down
12 changes: 6 additions & 6 deletions modulefiles/gsi_cheyenne.intel.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ help([[
load("cmake/3.22.0")
load("python/3.7.9")
load("ncarenv/1.3")
load("intel/2021.2")
load("mpt/2.22")
load("intel/2022.1")
load("mpt/2.25")
load("ncarcompilers/0.5.0")

prepend_path("MODULEPATH", "/glade/p/ral/jntp/GMTB/tools/hpc-stack-v1.2.0/modulefiles/stack")
prepend_path("MODULEPATH", "/glade/work/epicufsrt/GMTB/tools/intel/2022.1/hpc-stack-v1.2.0_6eb6/modulefiles/stack")

load("hpc/1.2.0")
load("hpc-intel/2021.2")
load("hpc-mpt/2.22")
load("mkl/2021.2")
load("hpc-intel/2022.1")
load("hpc-mpt/2.25")
load("mkl/2022.1")

load("gsi_common")

Expand Down

0 comments on commit 7a4fa9b

Please sign in to comment.