-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuildme_deps
executable file
·77 lines (62 loc) · 1.46 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#!/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 rankstr ] ; then
git clone [email protected]:ECP-Veloc/rankstr.git rankstr
fi
if [ ! -d redset ] ; then
git clone [email protected]:ECP-Veloc/redset.git redset
fi
if [ ! -d shuffile ] ; then
git clone [email protected]:ECP-Veloc/shuffile.git shuffile
fi
rm -rf KVTree/build
mkdir KVTree/build
cd KVTree/build
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS="-O0" -DCMAKE_INSTALL_PREFIX=$installdir -DBUILD_SHARED_LIBS=ON -DMPI=ON ..
make clean
make
make install
#make check
cd $depsdir
rm -rf rankstr/build
mkdir rankstr/build
# rankstr
cd rankstr/build
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS="-O0" -DCMAKE_INSTALL_PREFIX=$installdir -DBUILD_SHARED_LIBS=ON ..
make clean
make
make install
#make test
cd $depsdir
rm -rf redset/build
mkdir redset/build
# redset
cd redset/build
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS="-O0" -DCMAKE_INSTALL_PREFIX=$installdir -DBUILD_SHARED_LIBS=ON ..
make clean
make
make install
#make test
cd $depsdir
rm -rf shuffile/build
mkdir shuffile/build
# shuffile
cd shuffile/build
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS="-O0" -DCMAKE_INSTALL_PREFIX=$installdir -DBUILD_SHARED_LIBS=ON ..
make clean
make
make install
#make test
cd $depsdir