-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_microbenchmarks.sh
More file actions
executable file
·59 lines (45 loc) · 1.56 KB
/
Copy pathrun_microbenchmarks.sh
File metadata and controls
executable file
·59 lines (45 loc) · 1.56 KB
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
#!/bin/bash
set -e
set -o pipefail
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" > /dev/null 2>&1 && pwd)"
source $DIR/common.sh
setup "$1"
###############
# Coremark pro
###############
WORKLOAD_NAME="coremarkpro"
echo "Running CPU Microbenchmark [Coremarkpro]"
executables=(
"./coremark-pro/builds/linux64/gcc64/bin/core.exe -i60 -c4 -v0"
"./coremark-pro/builds/linux64/gcc64/bin/cjpeg-rose7-preset.exe -i10000 -c4 -v0"
"./coremark-pro/builds/linux64/gcc64/bin/linear_alg-mid-100x100-sp.exe -i3000 -c4 -v0"
"./coremark-pro/builds/linux64/gcc64/bin/loops-all-mid-10k-sp.exe -i30 -c4 -v0"
"./coremark-pro/builds/linux64/gcc64/bin/nnet_test.exe -i50 -c4 -v0"
"./coremark-pro/builds/linux64/gcc64/bin/parser-125k.exe -i2000 -c4 -v0"
"./coremark-pro/builds/linux64/gcc64/bin/radix2-big-64k.exe -i3000 -c4 -v0"
"./coremark-pro/builds/linux64/gcc64/bin/sha-test.exe -i1450 -c4 -v0"
"./coremark-pro/builds/linux64/gcc64/bin/zip-test.exe -i4200 -c40 -v0"
)
names=(
"core"
"jpeg"
"gaussian"
"livermore"
"neuralnetwork"
"xml"
"fft"
"sha"
"zip"
)
length=${#names[@]}
for i in {0..4}
do
for ((idx=0; idx<length; idx++)); do
# Clear previous file
clear_stats_entries "${WORKLOAD_NAME}-${names[idx]}_$1_$i"
add_miralis_stat_entry "${WORKLOAD_NAME}-${names[idx]}_$1_$i"
RemoteExec $ADDRESS "${executables[idx]}" > "results/${WORKLOAD_NAME}-${names[idx]}_$1_$i.txt"
add_miralis_stat_entry "${WORKLOAD_NAME}-${names[idx]}_$1_$i"
done
done
echo "Done with CPU microbenchmark"