-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.sh
executable file
·63 lines (42 loc) · 1.16 KB
/
run.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
#!/bin/zsh
set -eu
print "HOST: $( hostname )"
TOP=$( /bin/pwd )
print "PWD: $TOP"
print "USER: $USER"
print "WHOAMI: $( whoami )"
set -x
mkdir -pv downloads sfw
ANACONDA_SH=Anaconda3-2020.11-Linux-x86_64.sh
cd downloads
if [[ ! -f $ANACONDA_SH ]] {
wget --no-verbose https://repo.anaconda.com/archive/$ANACONDA_SH
}
cd ..
cd sfw
if [[ ! -d anaconda3 ]] {
bash ../downloads/$ANACONDA_SH -bs -p $TOP/sfw/anaconda3
}
PATH=$TOP/sfw/anaconda3/bin:$PATH
conda install r
if [[ ! -d spack ]] {
git clone https://github.com/spack/spack.git
}
exit
# Substitute into etc/spack/packages.yaml
# Check using correct Python
# e.g. spack spec python => "python@3.6.2%gcc@7.1.0+..."
spack spec python
spack find --paths python # => /home/woz/Public/sfw/bebop/anaconda3
spack install ant autoconf automake jdk libtool m4 pcre swig zsh
# Check that using system installations
spack find --paths zsh
# Check that Spack is using correct installations
python mpi tcl r
spack install exmcutils
spack install adlbx
# Check using correct MPI e.g. spack spec => "^mpich@3.2"
spack install turbine
# Check using correct MPI, Python, R
spack install stc
# Check using correct JDK, Turbine