-
Notifications
You must be signed in to change notification settings - Fork 1
/
summarize.sh
executable file
·66 lines (54 loc) · 1.56 KB
/
summarize.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/bin/bash
if [[ $(whoami)x != rootx ]]; then
echo "Execution is allowed only in the docker container"
exit 1;
fi
TUNED_FLOAT_LOG=../AN5D-Artifact/tuned.float.log
TUNED_DOUBLE_LOG=../AN5D-Artifact/tuned.double.log
SCONF_LOG=../AN5D-Artifact/sconf.log
HYBRID_LOG=../StencilBench/hybrid.log
LOOP_TILING_LOG=../StencilBench/loop_tiling.log
STENCILGEN_LOG=../IEEE2017/stencilgen.log
if [[ ! -f $TUNED_FLOAT_LOG ]] || [[ ! -f $TUNED_DOUBLE_LOG ]] ||
[[ ! -f $SCONF_LOG ]] ; then
git pull && ./all.sh
fi
if [[ ! -f $HYBRID_LOG ]] || [[ ! -f $LOOP_TILING_LOG ]] ; then
cd ../StencilBench;
git pull && ./all.sh;
cd ../AN5D-Artifact;
fi
if [[ ! -f $STENCILGEN_LOG ]] ; then
cd ../IEEE2017;
git pull && ./all.sh;
cd ../AN5D-Artifact;
fi
extract ()
{
egrep '@@|Average' |
sed 's/^@@@/@/; s/@@@//;' |
tr -d '\n' |
sed 's/@Average://g; s/\.\//@/g' |
sed 's/@ *@/@/g' |
tr '@' '\n' |
sed 's/Average://'
echo
}
echo "========================="
echo "==== AN5D TUNED (float)"
cat $TUNED_FLOAT_LOG | sort | grep -v Measure | cut -d, -f 1,7
echo "========================="
echo "==== AN5D TUNED (double)"
cat $TUNED_DOUBLE_LOG | sort | grep -v Measure | cut -d, -f 1,7
echo "========================="
echo "==== AN5D SCONF "
cat $SCONF_LOG | extract
echo "========================="
echo "==== HYBRID "
cat $HYBRID_LOG | extract
echo "========================="
echo "==== LOOP_TILING "
cat $LOOP_TILING_LOG | extract
echo "========================="
echo "==== STENCILGEN "
cat stencilgen.log | egrep 'Computation|_run.sh'