-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheb.sh
60 lines (48 loc) · 1.75 KB
/
eb.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
#!/bin/bash
# Source this file to enter the easybuild Aston or Birmingham live environments or a test environment.
aston=false
birmingham=false
while [[ -n $1 ]]; do
case $1 in
--aston)
aston=true
;;
--birmingham)
birmingham=true
;;
esac
shift
done
if [[ "${aston}" == true ]] && [[ "${birmingham}" == true ]]; then
echo "You cannot live build for Aston and Birmingham at the same time"
return 1
fi
module load EasyBuild
repo="${HOME}/easybuild/sulis-eb"
if [[ "${aston}" == true ]]; then
appbase=/sulis/institutions/aston
echo -e "Loading easybuild \033[1;33mAston live\033[0m environment"
elif [[ "${birmingham}" == true ]]; then
appbase=/sulis/institutions/birmingham
echo -e "Loading easybuild \033[1;33mBirmingham live\033[0m environment"
else
appbase=${HOME}/easybuild/install
echo -e "Loading easybuild \033[1;33mtest\033[0m environment"
fi
export EASYBUILD_INSTALLPATH="${appbase}"
module use "${appbase}/modules/all"
module use "${appbase}/modules/"
export EASYBUILD_ACCEPT_EULA_FOR=Intel-oneAPI,NVHPC
export EASYBUILD_SOURCEPATH=${HOME}/easybuild/sources
export EASYBUILD_BUILDPATH=/dev/shm/${USER}/build
export EASYBUILD_TMPDIR=/dev/shm/${USER}/tmp
unset LD_RUN_PATH
unset C_INCLUDE_PATH
unset CPLUS_INCLUDE_PATH
echo "Using installation location ${appbase}"
# add custom easyconfigs to the search path - the trailing : prepends the search path for easyconfigs
export EASYBUILD_ROBOT_PATHS=${repo}/easyconfigs:
# add custom easyblocks to the relevant search path
export EASYBUILD_INCLUDE_EASYBLOCKS=${repo}/easyblocks/\*.py,${repo}/easyblocks/generic/\*.py
# a100 - 8.0 (https://en.wikipedia.org/wiki/CUDA#GPUs_supported)
export EASYBUILD_CUDA_COMPUTE_CAPABILITIES="8.0"