From e3c60cbf9722443020fb452c3ecfd237a141b7fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Klinkovsk=C3=BD?= <klinkjak@fjfi.cvut.cz> Date: Thu, 13 Dec 2018 14:52:09 +0100 Subject: [PATCH] Fixed logging of SpMV benchmarks in tnl-benchmark-blas fixes #21 --- src/Benchmarks/BLAS/spmv.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Benchmarks/BLAS/spmv.h b/src/Benchmarks/BLAS/spmv.h index 4421076a6c..ee3e8de7a5 100644 --- a/src/Benchmarks/BLAS/spmv.h +++ b/src/Benchmarks/BLAS/spmv.h @@ -114,7 +114,11 @@ benchmarkSpMV( Benchmark & benchmark, // create benchmark group Containers::List< String > parsedType; parseObjectType( HostMatrix::getType(), parsedType ); +#ifdef HAVE_CUDA benchmark.createHorizontalGroup( parsedType[ 0 ], 2 ); +#else + benchmark.createHorizontalGroup( parsedType[ 0 ], 1 ); +#endif hostRowLengths.setSize( size ); hostMatrix.setDimensions( size, size ); -- GitLab