test_hotspot.sh 781 Bytes
Newer Older
German Leon's avatar
German Leon committed
1
2
3
4
5
6
#!/bin/bash

set -e

#uncomment to a more verbose script
#set -x
German Leon's avatar
German Leon committed
7
DIR_RODINIA=codes
German Leon's avatar
German Leon committed
8
FAULTS=1000
German Leon's avatar
German Leon committed
9
10
11
12
13
14
15
#CONFFILE=codes/matrixMul/matrixmul_16K.conf

#CONFFILE=codes/mmElem/matrixmul_16K.conf
#CONFFILE=codes/lavaMD/lavaMD.conf
CONFFILE=$DIR_RODINIA/hotspot/hotspot.conf
echo "Step 1 - Profiling the application for fault injection"
./app_profiler.py -c ${CONFFILE} $*
16
17
18
echo "Comienzo.." >> tiempos
date >> tiempos

German Leon's avatar
German Leon committed
19
20
21

echo "Step 2 - Running ${FAULTS} on ${CONFFILE}"
./fault_injector.py -i ${FAULTS} -c ${CONFFILE} -n 1 $*
22
23
24
25
26
27
while  test -f "tmpxxx_num_rounds.conf" 
do
cat tmpxxx_num_rounds.conf >> tandas
./fault_injector.py -i ${FAULTS} -c ${CONFFILE} -n 1 $*
echo "==============================="
done
German Leon's avatar
German Leon committed
28

29
30
echo "Fault injection finished"
date >> tiempos
German Leon's avatar
German Leon committed
31
32
33
echo "Fault injection finished"

exit 0