From ca63503e61d2e20d4489b755517e238763b51b9c Mon Sep 17 00:00:00 2001 From: wernsaar Date: Wed, 30 Jul 2014 13:03:42 +0200 Subject: [PATCH] extented plot-filter.sh for linpack and cholesky benchmarks --- benchmark/plot-filter.sh | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/benchmark/plot-filter.sh b/benchmark/plot-filter.sh index b47535b6f..420ec9b02 100755 --- a/benchmark/plot-filter.sh +++ b/benchmark/plot-filter.sh @@ -33,6 +33,28 @@ # ./dgemm.goto 2>&1|./plotfilter.sh >OpenBLAS # ************************************************************************ +if [ $# -eq 1 ] +then + arg1=$1 +else + arg1=0 +fi -awk '/MFlops/ { print $1,int($3) }'|tail --lines=+2 +case $arg1 in + +L) + # Linpack Benchmark + awk '/MFlops/ { print $1,int($8) }'|tail --lines=+2 + ;; + +C) + # Cholesky Benchmark + awk '/MFlops/ { print $3,int($9) }'|tail --lines=+2 + ;; + + +*) + awk '/MFlops/ { print $1,int($3) }'|tail --lines=+2 + ;; +esac