diff --git a/communication_techniques/parsing.sh b/communication_techniques/parsing.sh index 560597e..c764048 100755 --- a/communication_techniques/parsing.sh +++ b/communication_techniques/parsing.sh @@ -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" ;;