Skip to content

Commit

Permalink
get rid of WARNING: UNKNOWN PLATFORM on CSPs
Browse files Browse the repository at this point in the history
  • Loading branch information
weihuang-jedi committed Oct 17, 2024
1 parent 7c911e8 commit 2584c5f
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion ush/module-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,16 @@ elif [[ $MACHINE_ID = discover* ]]; then
. $SPACK_ROOT/share/spack/setup-env.sh

else
echo WARNING: UNKNOWN PLATFORM 1>&2
if [[ ! -v PW_CSP ]]; then
echo WARNING: UNKNOWN PLATFORM 1>&2
elif [[ -z "${PW_CSP}" ]]; then
echo WARNING: UNKNOWN PLATFORM 1>&2
else
if [[ "${PW_CSP}" == "aws" || "${PW_CSP}" == "azure" || "${PW_CSP}" == "google" ]]; then
module purge
else
echo WARNING: UNKNOWN PLATFORM 1>&2
fi
fi

fi

0 comments on commit 2584c5f

Please sign in to comment.