summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbenchmark/plot-filter.sh24
1 files changed, 23 insertions, 1 deletions
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