-
Notifications
You must be signed in to change notification settings - Fork 3
/
run-example.sh
executable file
·35 lines (27 loc) · 1.55 KB
/
run-example.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
#/bin/bash
#sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
#sudo apt-get -qq update
#sudo apt-get install gcc-7 g++-7 libopenmpi-dev libcgal-dev libcgal-qt5-dev libsparsehash-dev
if [[ ! -d "build" ]]
then
./build.sh
fi
rm -rf examples_output
mkdir examples_output
experiment_outdir=examples_output/n1024
echo "running four examples, writing output to examples_output"
mkdir -p $experiment_outdir
./build/./benchmark -action "kernelization" -iterations 1 -sample-kagen 16 -num-nodes 64 -num-edges-lo 0 -num-edges-hi $((64*4)) -total-allowed-solver-time 1 \
-number-of-threads 4 -benchmark-output $experiment_outdir/out > $experiment_outdir/out-exe
experiment_outdir=examples_output/example
mkdir -p $experiment_outdir
./build/./benchmark -action "kernelization" -iterations 1 -f ./example-graphs/example -total-allowed-solver-time 1 \
-number-of-threads 4 -benchmark-output $experiment_outdir/out > $experiment_outdir/out-exe
experiment_outdir=examples_output/example.graph
mkdir -p $experiment_outdir
./build/./benchmark -action "kernelization" -iterations 1 -f ./example-graphs/example.graph -total-allowed-solver-time 1 \
-number-of-threads 4 -benchmark-output $experiment_outdir/out > $experiment_outdir/out-exe
experiment_outdir=examples_output/example.edges
mkdir -p $experiment_outdir
./build/./benchmark -action "kernelization" -iterations 1 -f ./example-graphs/example.edges -total-allowed-solver-time 1 \
-number-of-threads 4 -benchmark-output $experiment_outdir/out > $experiment_outdir/out-exe