-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathenv.sh.in
66 lines (51 loc) · 1.41 KB
/
env.sh.in
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
test "$(id --user)" -eq 0 && return 0
# Forcefully unload existing environment-modules so we can use a new one
if command -v module >/dev/null 2>&1
then
module purge
unset -f _module
unset -f _module_avail
unset -f _module_comgen_words_and_files
unset -f _module_long_arg_list
unset -f _module_not_yet_loaded
unset -f _module_raw
unset -f _module_savelist
unset -f _module_stashlist
unset -f _ml
unset -f module
unset -f ml
unset -f switchml
unset LOADEDMODULES
unset MODULEPATH
unset MODULEPATH_modshare
unset MODULES_CMD
unset MODULESHOME
unset MODULES_RUN_QUARANTINE
unset __MODULES_LMINIT
fi
export SPACK_DISABLE_LOCAL_CONFIG=1
export SLURM_OVERLAP=1
export SLURM_MPI_TYPE=pmi2
# FIXME PMIx prints warning about missing Munge (https://github.com/open-mpi/ompi/issues/11557)
#export PMIX_MCA_psec=^munge
if test '@BOOTSTRAP_CONFIG@' = 'ants'
then
export FI_PROVIDER=tcp
export FI_TCP_IFACE=cpu0
fi
export MODULES_VERBOSITY=concise
if test "$(hostname --short)" = 'ants'
then
alias mpiexec='printf "You are attempting to execute an MPI job on the login node, please use SLURM instead.\n"'
alias mpirun='printf "You are attempting to execute an MPI job on the login node, please use SLURM instead.\n"'
fi
. @SPACK_ROOT@/share/spack/setup-env.sh
module try-load man-db
module load gcc
module load python
module load mpich
module load gdb
module load git
module load nano
module load valgrind
module load vim