Skip to content

Commit

Permalink
[develop]: Update for Gaea software stack location and Lmod initializ…
Browse files Browse the repository at this point in the history
…ation script (#627)

* Gaea hpc-stack location has changed to match that for the UFS-WM that results in all regression test passed successfully.
* Lmod initialization has been updated as well, similar to the one that worked for the UFS-WM to pass RTs. It is done by sourcing a single initialization script.

---------

Co-authored-by: Natalie Perlin <Natalie.Perlin@noaa.gov>
  • Loading branch information
natalie-perlin and Natalie Perlin authored Mar 10, 2023
1 parent ff6f103 commit 550f400
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions etc/lmod-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,8 @@ elif [ "$L_MACHINE" = singularity ]; then
module purge

elif [ "$L_MACHINE" = gaea ]; then
export BASH_ENV="/lustre/f2/dev/role.epic/contrib/apps/lmod/lmod/init/bash"
source $BASH_ENV
source /lustre/f2/dev/role.epic/contrib/Lmod_init.sh

export LMOD_SYSTEM_DEFAULT_MODULES="modules/3.2.11.4"
module --initial_load --no_redirect restore
elif [ "$L_MACHINE" = odin ]; then
module unload modules
unset -f module
Expand Down
2 changes: 1 addition & 1 deletion modulefiles/build_gaea_intel.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ whatis([===[Loads libraries needed for building the UFS SRW App on Gaea ]===])

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

prepend_path("MODULEPATH","/lustre/f2/dev/role.epic/contrib/hpc-stack/intel-2021.3.0/modulefiles/stack")
prepend_path("MODULEPATH","/lustre/f2/dev/role.epic/contrib/hpc-stack/intel-2021.3.0_noarch/modulefiles/stack")
load(pathJoin("hpc", os.getenv("hpc_ver") or "1.2.0"))
load(pathJoin("intel", os.getenv("intel_ver") or "2021.3.0"))
load(pathJoin("hpc-intel", os.getenv("hpc_intel_ver") or "2021.3.0"))
Expand Down

0 comments on commit 550f400

Please sign in to comment.