test_mult.sh 668 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
7
8
9
10
11

set -e

#uncomment to a more verbose script
#set -x

FAULTS=1000
#CONFFILE=codes/matrixMul/matrixmul_16K.conf

German Leon's avatar
German Leon committed
12
CONFFILE=codes/mmElem/matrixmul.conf
German Leon's avatar
German Leon committed
13
14
15
16
17
18
19
20
#CONFFILE=codes/lavaMD/lavaMD.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 $* 

21
echo $?
German Leon's avatar
German Leon committed
22

German Leon's avatar
German Leon committed
23
while  test -f "tmpxxx/num_rounds.conf" 
German Leon's avatar
German Leon committed
24
do
German Leon's avatar
German Leon committed
25
cat tmpxxx/num_rounds.conf >> tmpxxx/tandas
German Leon's avatar
German Leon committed
26
27
28
./fault_injector.py -i ${FAULTS} -c ${CONFFILE} -n 1 $*
echo "==============================="
done
German Leon's avatar
German Leon committed
29
30
31
echo "Fault injection finished"

exit 0