-
Notifications
You must be signed in to change notification settings - Fork 4
/
runres.sh
executable file
·32 lines (31 loc) · 1.69 KB
/
runres.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
#!/bin/bash
if [ $1 = "0" ]
then
echo "Calculating Summarized Results"
for f in benchmarks/ascenttestbench/*.xml
do
ped="$(./Debug/bin/kiter -f "$f" -a SPeriodicScheduling | grep -P "(?:period\s+is\s+)\K\d+" -o)"
echo "period of $ped for $f"
echo "$f :" >> runres.txt
for a in ASAPScheduling So4Scheduling
do
rr="$(./Debug/bin/kiter -f "$f" -a createNoC -a randomMapping -a randomRouting -a AddVBuffers -a "$a" -p TDMA=benchmarks/fbf.txt -p PERIOD="$ped" | grep -P "(?:throughput\s+is\s+)\K\d+.\d+" -o)"
rxy="$(./Debug/bin/kiter -f "$f" -a createNoC -a randomMapping -a xyRouting -a AddVBuffers -a "$a" -p TDMA=benchmarks/fbf.txt -p PERIOD="$ped" | grep -P "(?:throughput\s+is\s+)\K\d+.\d+" -o)"
b="$(./Debug/bin/kiter -f "$f" -a createNoC -a BufferlessNoCMapAndRoute -a AddVBuffers -a "$a" -p TDMA=benchmarks/fbf.txt -p PERIOD="$ped" | grep -P "(?:throughput\s+is\s+)\K\d+.\d+" -o)"
echo "$a threshold : randomRoute = $rr xyRoute = $rxy bufferlessMR = $b"
echo "$a : $rr , $rxy, $b" >> runres.txt
done
done
fi
if [ $1 = "1" ]
then
echo "Store Entire Output Log"
for f in benchmarks/ascenttestbench/*.xml
do
ped="$(./Debug/bin/kiter -f "$f" -a SPeriodicScheduling | grep -P "(?:period\s+is\s+)\K\d+" -o)"
for a in ASAPScheduling So4Scheduling
do
echo "$(./Debug/bin/kiter -f "$f" -a createNoC -a randomMapping -a randomRouting -a AddVBuffers -a "$a" -p TDMA=benchmark/fbf.txt -p PERIOD="$ped" >> runres.txt
echo "$(./Debug/bin/kiter -f "$f" -a createNoC -a randomMapping -a xyRouting -a AddVBuffers -a "$a" -p TDMA=benchmark/fbf.txt -p PERIOD="$ped" >> runres.txt
echo "$(./Debug/bin/kiter -f "$f" -a createNoC -a BufferlessNoCMapAndRoute -a AddVBuffers -a "$a" -p TDMA=benchmark/fbf.txt -p PERIOD="$ped" >> runres.txt
fi