Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include Expanse platform in NEMS #110

Merged
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
7 changes: 7 additions & 0 deletions src/conf/module-setup.csh.inc
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,13 @@ else if ( { test -d /lustre -a -d /ncrc } ) then
source /etc/csh.login
unset __ms_source_etc_csh_login
endif
else if ( { test -d /expanse } ) then
# We are on SDSC Expanse
if ( ! { module help >& /dev/null } ) then
source /etc/profile.d/modules.csh
endif
module purge
module load slurm/expanse/20.02.3
else if ( { test -d /Applications } ) then
# We are on a MacOSX system, nothing to do
sh -c 'echo Platform: MacOSX'
Expand Down
7 changes: 7 additions & 0 deletions src/conf/module-setup.sh.inc
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,13 @@ elif [[ -d /lustre && -d /ncrc ]] ; then
source /etc/profile
unset __ms_source_etc_profile
fi
elif [[ -d /expanse ]]; then
# We are on SDSC Expanse
if ( ! eval module help > /dev/null 2>&1 ) ; then
source /etc/profile.d/modules.sh
fi
module purge
module load slurm/expanse/20.02.3
elif [[ -d /Applications ]] ; then
# We are on a MacOSX system, nothing to do
echo "Platform: MacOSX"
Expand Down