-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.bashrc.local.ela.cscs.sh
93 lines (84 loc) · 3.5 KB
/
.bashrc.local.ela.cscs.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
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# CSCS specific settings:
alias sc='cd $SCRATCH'
alias pr133='cd /project/pr133/jcanton'
alias g142='cd /store/g142/jcanton'
alias d121='cd /project/d121/jcanton'
alias st='cd /store/c2sm/pr04/jcanton'
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
if [ -n "${VSCODE_INVOKING}" ]; then
#echo "invoked by vscode"
# set colors
export CLICOLOR=1
# Base16 Shell
/bin/sh $HOME/jc_home/base16-shell/scripts/base16-solarized-light.sh
fi
export GT4PY_BUILD_CACHE_LIFETIME=PERSISTENT
export OMP_NUM_THREADS=12
alias sq='squeue -u jcanton -o "%.8i %.8u %.7a %.9P %.30j %.8T %.13S %.10M %.10L %.6D %.5C %.11r %E"'
alias sql='squeue -u jcanton -o "%.8i %.8u %.7a %.9P %.50j %.8T %.13S %.10M %.10L %.6D %.5C %.11r %E"'
function wsq {
watch -n 1 "squeue -u jcanton -o '%.8i %.8u %.7a %.9P %.30j %.8T %.13S %.10M %.10L %.6D %.5C %.11r %E'"
}
case $HOSTNAME in
daint*)
rm $HOME/.vscode-server
ln -s $HOME/.vscode-server.daint $HOME/.vscode-server
export PATH="/users/jcanton/.vscode-server/bin/8b3775030ed1a69b13e4f4c628c612102e30a681/bin/remote-cli:$PATH"
export GT4PY_BUILD_CACHE_DIR=/scratch/snx3000/jcanton/icon4py_tmp
#
rm $HOME/miniconda3
ln -s /store/g142/jcanton/miniconda3 $HOME/miniconda3
;;
tsa*)
rm $HOME/.vscode-server
ln -s $HOME/.vscode-server.tsa $HOME/.vscode-server
export PATH="/users/jcanton/.vscode-server/bin/8b3775030ed1a69b13e4f4c628c612102e30a681/bin/remote-cli:$PATH"
export GT4PY_BUILD_CACHE_DIR=/scratch/jcanton/icon4py_tmp
#
rm $HOME/miniconda3
ln -s /scratch/jcanton/miniconda3 $HOME/miniconda3
SERIALBOX2_ROOT="/scratch/mch/jcanton/repo/serialbox2/install"
;;
balfrin*)
export GT4PY_BUILD_CACHE_DIR=$SCRATCH/gt4py_cache
# configure the user-environment (uenv) utility
# source /users/jcanton/.local/bin/activate-uenv
#if uenv status | grep -q 'no uenv loaded'; then
# uenv start --view=icon-wcp:icon /scratch/mch/leclairm/uenvs/images/icon.v1.rc4.sqfs
#fi
;;
nid*)
alias pyNode='source ~/.pythonComputeNode.env'
;;
ela?)
echo "We're on ela"
# Though ela does not have access to /project anymore...
;;
*)
echo "hostname not recognized in .bashrc.local"
;;
esac
loadUenv() {
# configure the user-environment (uenv) utility
#source /users/jcanton/.local/bin/activate-uenv
uenv start --view=icon-wcp:icon /scratch/mch/leclairm/uenvs/images/icon.v1.rc4.sqfs
#uenv start /scratch/mch/leclairm/uenvs/images/icon.v1.rc4.sqfs
#uenv view icon-wcp:icon
}
# # PALM
# export LD_LIBRARY_PATH="/store/g142/jcanton/repos/palm_build/rrtmg/lib:${LD_LIBRARY_PATH}"
# export PATH="/store/g142/jcanton/repos/palm_build/bin:${PATH}"
# # MCH stuff
# # source /users/osm/.opr_setup_dir
# # export PATH=$OPR_SETUP_DIR/bin:$PATH
# # export MODULEPATH=$MODULEPATH\:$OPR_SETUP_DIR/modules/modulefiles
# ulimit -s unlimited # for not getting segmentation faults
# export OMP_STACKSIZE=500M
# export OMP_PLACES=sockets
# export OMP_PROC_BIND="spread,close,close"
# export PATH="/project/s83c/fieldextra/daint/bin:$PATH"
# export PATH="/project/s83c/fieldextra/daint/tools:$PATH"
# alias fieldextra='/project/s83c/fieldextra/daint/bin/fieldextra_gnu_opt_omp'
# alias grins='/project/s83c/fieldextra/daint/tools/grins'