-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathrun_bench.sh
executable file
·50 lines (43 loc) · 1 KB
/
run_bench.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
#!/bin/bash
red=`tput setaf 1`
reset=`tput sgr0`
cur_dir="$(pwd)"
if [ "$CMAKE" == "" ]; then
CMAKE=cmake
fi
action=$1
suite=$2
bench=$3
individual=$4
if [ "$suite" == "all" ]; then
cd scalar
echo "${red}running all scalar benchmarks${reset}"
./run.sh $action "spec2006"
./run.sh $action "spec2017"
./run.sh $action "nas"
cd $cur_dir
cd vector
echo "${red}running all vector benchmarks${reset}"
./run.sh $action "simd"
cd $cur_dir
elif [ "$suite" == "scalar" ]; then
cd scalar
if [ "$bench" == "" ]; then
echo "${red}running all scalar benchmarks${reset}"
./run.sh $action "spec2006"
./run.sh $action "spec2017"
./run.sh $action "nas"
else
./run.sh $action "$bench" "$individual" "$5" "$6"
fi
cd $cur_dir
elif [ "$suite" == "vector" ]; then
cd vector
if [ "$bench" == "" ]; then
echo "${red}running all vector benchmarks${reset}"
./run.sh $action "simd"
else
./run.sh $action "$bench" "$individual" "$5" "$6"
fi
cd $cur_dir
fi