-
Notifications
You must be signed in to change notification settings - Fork 1
/
MCSL_results.sh
56 lines (53 loc) · 1.79 KB
/
MCSL_results.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
#!/bin/bash
RESULTS="mGREEDY mrGREEDY mALNS mGRASP"
APPLICATIONS="FFT-1024_complex Fpppp Robot RS-32_28_8_dec RS-32_28_8_enc Sparse H264-720p_dec"
if [ "$1" = "Final" ]
then
unset RESULTS
fi
for r in max_rate ; do
for t in mesh torus ; do
for a in ${APPLICATIONS} ; do
for s in 3 4 5 6 7 8 9 10 11 12 13 14 15 16 ; do
for m in ${RESULTS} ; do
min=$(cat stat*${t}_${t}_${s}x${s}_${a}*${r}*${m}* 2>/dev/null | awk '{if (NF==5) print $3} {if (NF==2) print $2}' | sort -nur | tail -1)
i=$(cat stat*${t}_${t}_${s}x${s}_${a}*${r}*${m}* 2>/dev/null | awk '{if (NF==5) print $4}' | sort -nu | tail -1)
if [ "$i" != "" ]; then
iter="Iterations "
fi
if [ "$min" != "" ]; then
echo -e "Found $min \tfor ${t}${s}x${s}_${a} ${m}\t$iter$i"
else
if [ "$1" != "-c" ]; then
echo -e "Pending... \tfor ${t}${s}x${s}_${a} ${m}"
fi
fi
done
done
done
done
done
for r in max_rate ; do
for t in mesh torus ; do
for a in ${APPLICATIONS} ; do
for s in 3 4 5 6 7 8 9 10 11 12 13 14 15 16 ; do
if [ "$1" = "Final" ]
then
min=$(cat stat*${t}_${t}_${s}x${s}_${a}*${r}* 2>/dev/null | awk '{if (NF==5) print $3} {if (NF==2) print $2}' | sort -nur | tail -1)
i=$(cat stat*${t}_${t}_${s}x${s}_${a}*${r}* 2>/dev/null | awk '{if (NF==5) print $4}' | sort -nu | tail -1)
util=$(cat stat*${t}_${t}_${s}x${s}_${a}*${r}* 2>/dev/null | grep -ERi Link_util_best | awk '{print $3}' | sort -nu | tail -1)
if [ "$i" != "" ]; then
iter="Iterations "
fi
if [ "$min" != "" ]; then
echo -e "Found $min \tfor ${t}${s}x${s}_${a}_${r} ${m}\t$iter$i \tLink_util ${util}"
else
if [ "$1" != "-c" ]; then
echo -e "Pending... \tfor ${t}${s}x${s}_${a}_${r} ${m}"
fi
fi
fi
done
done
done
done