test_rodinia.sh 690 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=3000
German Leon's avatar
German Leon committed
9
10
11
12
#CONFFILE=codes/matrixMul/matrixmul_16K.conf

#CONFFILE=codes/mmElem/matrixmul_16K.conf
#CONFFILE=codes/lavaMD/lavaMD.conf
German Leon's avatar
German Leon committed
13
CONFFILE=$DIR_RODINIA/lud/lud2k.conf
German Leon's avatar
German Leon committed
14
15
16
17
18
19
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
20
while  test -f "./tmpxxx/num_rounds.conf" 
German Leon's avatar
German Leon committed
21
do
German Leon's avatar
German Leon committed
22
cat tmpxxx/num_rounds.conf >> tmpxxx/tandas
German Leon's avatar
German Leon committed
23
24
25
./fault_injector.py -i ${FAULTS} -c ${CONFFILE} -n 1 $*
echo "==============================="
done
German Leon's avatar
German Leon committed
26
27
28
echo "Fault injection finished"

exit 0