#!/bin/bash set -e #uncomment to a more verbose script #set -x DIR_RODINIA=codes FAULTS=100 #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} $* echo "Comienzo.." >> tiempos date >> tiempos echo "Step 2 - Running ${FAULTS} on ${CONFFILE}" ./fault_injector.py -i ${FAULTS} -c ${CONFFILE} -n 1 $* 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 echo "Fault injection finished" date >> tiempos echo "Fault injection finished" exit 0