-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'container' into feature/c5c6build
- Loading branch information
Showing
3 changed files
with
60 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
help([[ | ||
]]) | ||
|
||
prepend_path("MODULEPATH", "/opt/spack-stack/spack-stack-1.8.0/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" | ||
|
||
load(pathJoin("stack-intel", stack_intel_ver)) | ||
load(pathJoin("stack-intel-oneapi-mpi", stack_impi_ver)) | ||
load(pathJoin("cmake", cmake_ver)) | ||
|
||
load("gsiutils_common") | ||
|
||
load(pathJoin("prod_util", prod_util_ver)) | ||
|
||
pushenv("CFLAGS", "-march=ivybridge") | ||
pushenv("FFLAGS", "-march=ivybridge") | ||
|
||
whatis("Description: GSI utilities environment in a container with Intel Compilers") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,11 @@ if [[ $MACHINE_ID = jet* ]] ; then | |
source /apps/lmod/lmod/init/bash | ||
fi | ||
module purge | ||
elif [[ $MACHINE_ID = container* ]] ; then | ||
if ( ! eval module help > /dev/null 2>&1 ) ; then | ||
source /usr/lmod/lmod/init/bash | ||
fi | ||
module purge | ||
|
||
elif [[ $MACHINE_ID = hera* ]] ; then | ||
# We are on NOAA Hera | ||
|
@@ -35,7 +40,6 @@ elif [[ $MACHINE_ID = s4* ]] ; then | |
source /usr/share/lmod/lmod/init/bash | ||
fi | ||
module purge | ||
|
||
elif [[ $MACHINE_ID = wcoss2 ]]; then | ||
# We are on WCOSS2 | ||
module reset | ||
|
@@ -63,8 +67,33 @@ elif [[ $MACHINE_ID = gaea* ]] ; then | |
# the module command fails. Hence we actually have to source | ||
# /etc/profile here. | ||
source /etc/profile | ||
__ms_source_etc_profile=yes | ||
This comment has been minimized.
Sorry, something went wrong.
DavidBurrows-NCO
Contributor
|
||
else | ||
__ms_source_etc_profile=no | ||
fi | ||
module purge | ||
# clean up after purge | ||
unset _LMFILES_ | ||
unset _LMFILES_000 | ||
unset _LMFILES_001 | ||
unset LOADEDMODULES | ||
module load modules | ||
if [[ -d /opt/cray/ari/modulefiles ]] ; then | ||
module use -a /opt/cray/ari/modulefiles | ||
fi | ||
if [[ -d /opt/cray/pe/ari/modulefiles ]] ; then | ||
module use -a /opt/cray/pe/ari/modulefiles | ||
fi | ||
if [[ -d /opt/cray/pe/craype/default/modulefiles ]] ; then | ||
module use -a /opt/cray/pe/craype/default/modulefiles | ||
fi | ||
if [[ -s /etc/opt/cray/pe/admin-pe/site-config ]] ; then | ||
source /etc/opt/cray/pe/admin-pe/site-config | ||
fi | ||
if [[ "$__ms_source_etc_profile" == yes ]] ; then | ||
source /etc/profile | ||
unset __ms_source_etc_profile | ||
fi | ||
module reset | ||
|
||
elif [[ $MACHINE_ID = expanse* ]]; then | ||
# We are on SDSC Expanse | ||
|
@mark-a-potts Was this intended? L81-82 are currently in develop. I can clean up if not.