test_nw.sh 743 Bytes
Newer Older
German Leon's avatar
German Leon committed
1
#!/bin/bash
German Leon's avatar
German Leon committed
2
trap echo "No paro" SIGINIT
German Leon's avatar
German Leon committed
3
4
5
6
set -e

#uncomment to a more verbose script
#set -x
German Leon's avatar
German Leon committed
7
8
9
#DIR_RODINIA=$HOME/rodinia_3.1/cuda
DIR_RODINIA=codes
FAULTS=100
German Leon's avatar
German Leon committed
10
11
12
13
14
15
16
17
18
19
20
21
#CONFFILE=codes/matrixMul/matrixmul_16K.conf

#CONFFILE=codes/mmElem/matrixmul_16K.conf
#CONFFILE=codes/lavaMD/lavaMD.conf
CONFFILE=$DIR_RODINIA/nw/nw.conf
echo "Step 1 - Profiling the application for fault injection"
./app_profiler.py -c ${CONFFILE} $*


echo "Step 2 - Running ${FAULTS} on ${CONFFILE}"
./fault_injector.py -i ${FAULTS} -c ${CONFFILE} -n 1 $* 

German Leon's avatar
German Leon committed
22
23
24
25
26
27
28
29

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
30
31
32
echo "Fault injection finished"

exit 0