-
Notifications
You must be signed in to change notification settings - Fork 3
/
load-env.sh
30 lines (29 loc) · 963 Bytes
/
load-env.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
echo_and_do() {
echo "$@"
$@
}
if [[ ${LMOD_SYSTEM_NAME} =~ crusher ]]; then
echo "LMOD_SYSTEM_NAME matched crusher"
echo_and_do module load cmake
echo_and_do module load rocm/5.4.0
elif [[ ${LMOD_SYSTEM_NAME} =~ frontier ]]; then
echo "LMOD_SYSTEM_NAME matched frontier"
echo_and_do module load cmake
echo_and_do module load rocm/5.7.0
elif [[ ${LMOD_SYSTEM_NAME} =~ summit ]]; then
echo "LMOD_SYSTEM_NAME matched summit"
echo_and_do module load cmake
echo_and_do module load cuda/11.5.2
elif [[ ${HOSTNAME} =~ caraway ]]; then
echo "HOSTNAME matched caraway"
echo_and_do module load cmake
echo_and_do module load rocm/5.2.0
echo_and_do module load numa/2.0.11
elif [[ `hostname` =~ vortex ]]; then
echo "hostname matched vortex"
echo_and_do module load cmake/3.23.1
echo_and_do module load gcc/8.3.1
echo_and_do module load cuda/11.7.0
else
echo "UNRECOGNIZED HOST $(hostname)"
fi