Commit 15e63853 authored by German Leon's avatar German Leon
Browse files

iamalive*sh

parent 03e5c464
sudo ${MYHOME}/bin/iamalive & #>/dev/ttyS0
sudo ${MYHOME}/bin/iamalive_ini 120 10 & #>/dev/ttyS0
echo $HOME
cd `grep -v \# $HOME/dir_test`
echo $1 | ./setconfig.sh
echo "Delete lastFiNumber" > deleteindex.flag
ls -l lastFiNumber
$HOME/bin/start_test
#############################################################################
totalFiNumber = -1
size = "2048"
dir = "../block"
exeFile = "lud_block"
bmName = exeFile+"_"+size
inputParameters = "-s" + size + " -v"
timeout = 10
inject = False
verbose = True
#cpufreq = -1
#gpufreq = -1
cpufreq = 2065500
gpufreq = 180000
#############################################################################
#dir="/home/ubuntu/rodinia/lud/rad"
dir= `grep -v \# $HOME/dir_test`
sel=$(ls -l ${dir}/config.py|cut -f2 -d\>|cut -f2 -d/)
echo sel $sel
j=1
for i in $( ls ${dir}/configs )
do
# echo "$i: " ${i}
# echo "$sel: " ${sel}
if [ ${i} = ${sel} ]
then
echo -e "->\t" $[ $j + 0] $i
else
echo -e "\t" $[ $j + 0] $i
fi
j=$[ $j + 1 ]
done
echo "Elige una opcion: "
read num
j=1
rm -f bamboo_fi
for i in $( ls ${dir}/configs)
do
if [ ${j} -eq ${num} ]
then
rm -f ${dir}/config.pyc
rm -f ${dir}/config.py
ln -s "configs/"$i "./config.py"
fi
j=$[ $j + 1 ]
done
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment