-
Notifications
You must be signed in to change notification settings - Fork 1
/
compile.sh
executable file
·43 lines (36 loc) · 1.1 KB
/
compile.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
#!/bin/bash
NCORES=4
unamestr=`uname`
if [[ "$unamestr" == "Linux" ]]; then
NCORES=`grep -c ^processor /proc/cpuinfo`
fi
if [[ "$unamestr" == "Darwin" ]]; then
NCORES=`sysctl -n hw.ncpu`
fi
rm -rf deploy
for program in node_separator kaffpa evaluator kaffpaE graphchecker label_propagation partition_to_vertex_separator library spac; do
scons program=$program variant=optimized -j $NCORES
if [ "$?" -ne "0" ]; then
echo "compile error in $program. exiting."
exit
fi
done
mkdir deploy
cp ./optimized/kaffpa deploy/
cp ./optimized/evaluator deploy/
cp ./optimized/label_propagation deploy/
cp ./optimized/kaffpaE deploy/
cp ./optimized/graphchecker deploy/
cp ./optimized/partition_to_vertex_separator deploy/
cp ./optimized/interface/lib* deploy/
cp ./optimized/node_separator deploy/
cp ./optimized/edge_partitioning deploy/
cp ./interface/kaHIP_interface.h deploy/
rm -rf ./optimized
rm config.log
echo "Now building the PARALLEL programs"
cd parallel
./build.sh
cd ..
cp parallel/parallel_src/interface/optimized/lib* deploy/
cp parallel/parallel_src/interface/parhip_interface.h deploy/