From 50db5c15b0c0362869937ad23022f476e5d471be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20=C4=8Cejka?= <cejkaluk@gp1.fjfi.cvut.cz> Date: Sun, 24 Mar 2019 23:23:29 +0100 Subject: [PATCH] Change spmv log file name to include name of the matrix file. --- src/Benchmarks/scripts/run-tnl-benchmark-spmv | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Benchmarks/scripts/run-tnl-benchmark-spmv b/src/Benchmarks/scripts/run-tnl-benchmark-spmv index 1935e45654..1bc1f9f491 100755 --- a/src/Benchmarks/scripts/run-tnl-benchmark-spmv +++ b/src/Benchmarks/scripts/run-tnl-benchmark-spmv @@ -58,11 +58,13 @@ do do echo "======================================================================================================" echo "Benchmarking with the matrix $file ..." + mtx_file_name=`basename $file` + mtx_file_name=${mtx_file_name%.mtx} if test x$DEBUG = xyes; then - gdb --args $BENCHMARK --input-file $file --log-file log-files/sparse-matrix-benchmark::$SUBDIRNAME.log --verbose 1 + gdb --args $BENCHMARK --input-file $file --log-file log-files/sparse-matrix-benchmark::$mtx_file_name.log --verbose 1 else - $BENCHMARK --input-file $file --log-file log-files/sparse-matrix-benchmark::$SUBDIRNAME.log --verbose 1 + $BENCHMARK --input-file $file --log-file log-files/sparse-matrix-benchmark::$mtx_file_name.log --verbose 1 fi done fi -- GitLab