Intermediate parsing.sh (1)

This commit is contained in:
Thomas Preud'homme 2009-07-08 18:58:18 +02:00 committed by Thomas Preud'homme
parent 19ef1d98f2
commit 69417b1cfa
1 changed files with 14 additions and 4 deletions

View File

@ -23,27 +23,37 @@ for prod in $prodList ; do
for bench in "communication" "barriere" ; do
for metrique in $metriqueList ; do
> bench_$bench-prod_$prod-$metrique.dat
for file in cache_$cache-*-typeProd_$prod-*-${com}_comm.log ; do
argTypeProd=`echo "$file" | sed -r "s/.*argTypeProd_([[:digit:]]+).*/\1/"`
echo -ne "\t\t$argTypeProd" >> bench_$bench-prod_$prod-$metrique.dat
done
done
for com in `eval echo \\\$\${bench}List` ; do
for metrique in $metriqueList ; do
echo -ne "\n$com\t\t" >> bench_$bench-prod_$prod-$metrique.dat
done
for cache in $cacheList ; do
for value in `perl -n -e 'print "$1 $2 $3" if /cache hits.* (\d+) \/ (\S+) \/ (\S+)/' cache_$cache-*-typeProd_$prod-*-${com}_comm.log` ; do
for value in `perl -n -e 'print "$1 $2 $3 " if /cache hits.* (\d+) \/ (\S+) \/ (\S+)/' cache_$cache-*-typeProd_$prod-*-${com}_comm.log` ; do
echo -ne "\t$value " >> bench_$bench-prod_$prod-cache_hits.dat
done
for value in `perl -n -e 'print "$1 $2 $3" if /cache miss.* (\d+) \/ (\S+) \/ (\S+)/' cache_$cache-*-typeProd_$prod-*-${com}_comm.log` ; do
for value in `perl -n -e 'print "$1 $2 $3 " if /cache miss.* (\d+) \/ (\S+) \/ (\S+)/' cache_$cache-*-typeProd_$prod-*-${com}_comm.log` ; do
echo -ne "\t$value" >> bench_$bench-prod_$prod-cache_miss.dat
done
for value in `perl -n -e 'print "$1 $2 $3" if /cycles.* (\d+) \/ (\S+) \/ (\S+)/' cache_$cache-*-typeProd_$prod-*-${com}_comm.log` ; do
for value in `perl -n -e 'print "$1 $2 $3 " if /cycles.* (\d+) \/ (\S+) \/ (\S+)/' cache_$cache-*-typeProd_$prod-*-${com}_comm.log` ; do
echo -ne "\t$value" >> bench_$bench-prod_$prod-cycles.dat
done
for value in `perl -n -e 'print "$1 $2 $3" if /total_time.* (\S+) \/ (\S+) \/ (\S+)/' cache_$cache-*-typeProd_$prod-*-${com}_comm.log` ; do
for value in `perl -n -e 'print "$1 $2 $3 " if /total_time.* (\S+) \/ (\S+) \/ (\S+)/' cache_$cache-*-typeProd_$prod-*-${com}_comm.log` ; do
echo -ne "\t$value" >> bench_$bench-prod_$prod-total_time.dat
done
done
done
if [ "${bench}" = "barriere" ] ;
then
echo "set style data lines" >> multicores.gnuplot
else
echo "set style data histogram" >> multicores.gnuplot
fi
for metrique in $metriqueList ; do
case "$metrique" in
cache_hits) ylabel="Nb cache hit" ;;