From a4f9e7117b8a0688ec231286e1b895e02467e27a Mon Sep 17 00:00:00 2001 From: Lukas Cejka <lukas.ostatek@gmail.com> Date: Wed, 13 Mar 2019 11:44:44 +0100 Subject: [PATCH] Found potential mistake in SpMV/spmv.h where MatrixReader doesn't need to be called twice. Commiting to show in meeting. --- src/Benchmarks/SpMV/spmv.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Benchmarks/SpMV/spmv.h b/src/Benchmarks/SpMV/spmv.h index 32d41bb6a3..aa4995278e 100644 --- a/src/Benchmarks/SpMV/spmv.h +++ b/src/Benchmarks/SpMV/spmv.h @@ -85,6 +85,8 @@ benchmarkSpMV( Benchmark & benchmark, // Reset the buffer std::cerr.rdbuf( old ); + // WHY DID I CAPTURE THE ERROR MESSAGE ONLY TO RUN MatrixReader again? Use the above capture to print into log and console? + std::string matrixFormat = getMatrixFormat( hostMatrix ); -- GitLab