-
Notifications
You must be signed in to change notification settings - Fork 3
/
buildme_deps
executable file
·61 lines (48 loc) · 1.07 KB
/
buildme_deps
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
#!/bin/bash
source /etc/profile.d/z00_lmod.sh
module load gcc/8.1.0
#module load gcc/7.1.0
#module load cmake/3.9.2
set -x
installdir=`pwd`/install
mkdir install
mkdir deps
cd deps
depsdir=`pwd`
if [ ! -d KVTree ] ; then
git clone [email protected]:ECP-Veloc/KVTree.git KVTree
fi
if [ ! -d AXL ] ; then
git clone [email protected]:ECP-Veloc/AXL.git AXL
fi
if [ ! -d spath ] ; then
git clone [email protected]:ECP-Veloc/spath.git spath
fi
rm -rf KVTree/build
mkdir KVTree/build
cd KVTree/build
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS="-O0" -DCMAKE_INSTALL_PREFIX=$installdir -DMPI=ON ..
make clean
make
make install
#make check
cd $depsdir
rm -rf AXL/build
mkdir AXL/build
cd AXL/build
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS="-O0" -DCMAKE_INSTALL_PREFIX=$installdir -DAXL_ASYNC_DAEMON=OFF -DMPI=ON ..
make clean
make
make install
#make check
cd $depsdir
rm -rf spath/build
mkdir spath/build
# spath
cd spath/build
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS="-O0" -DCMAKE_INSTALL_PREFIX=$installdir -DMPI=ON ..
make clean
make
make install
#make test
cd $depsdir