Skip to content
Snippets Groups Projects
Commit 37d330d4 authored by Tomáš Oberhuber's avatar Tomáš Oberhuber
Browse files

Fixed logging of matrix file names in SpMV benchmark.

parent e0928ebb
No related branches found
No related tags found
1 merge request!58To/matrices
...@@ -218,7 +218,7 @@ benchmarkSpmvSynthetic( Benchmark& benchmark, ...@@ -218,7 +218,7 @@ benchmarkSpmvSynthetic( Benchmark& benchmark,
// Perform benchmark on host with CSR as a reference CPU format // Perform benchmark on host with CSR as a reference CPU format
// //
benchmark.setMetadataColumns( Benchmark::MetadataColumns({ benchmark.setMetadataColumns( Benchmark::MetadataColumns({
{ "matrix name", convertToString( getMatrixFileName( inputFileName ) ) }, { "matrix name", convertToString( inputFileName ) },
{ "non-zeros", convertToString( csrHostMatrix.getNumberOfNonzeroMatrixElements() ) }, { "non-zeros", convertToString( csrHostMatrix.getNumberOfNonzeroMatrixElements() ) },
{ "rows", convertToString( csrHostMatrix.getRows() ) }, { "rows", convertToString( csrHostMatrix.getRows() ) },
{ "columns", convertToString( csrHostMatrix.getColumns() ) }, { "columns", convertToString( csrHostMatrix.getColumns() ) },
...@@ -243,7 +243,7 @@ benchmarkSpmvSynthetic( Benchmark& benchmark, ...@@ -243,7 +243,7 @@ benchmarkSpmvSynthetic( Benchmark& benchmark,
// //
#ifdef HAVE_CUDA #ifdef HAVE_CUDA
benchmark.setMetadataColumns( Benchmark::MetadataColumns({ benchmark.setMetadataColumns( Benchmark::MetadataColumns({
{ "matrix name", convertToString( getMatrixFileName( inputFileName ) ) }, { "matrix name", convertToString( inputFileName ) },
{ "non-zeros", convertToString( csrHostMatrix.getNumberOfNonzeroMatrixElements() ) }, { "non-zeros", convertToString( csrHostMatrix.getNumberOfNonzeroMatrixElements() ) },
{ "rows", convertToString( csrHostMatrix.getRows() ) }, { "rows", convertToString( csrHostMatrix.getRows() ) },
{ "columns", convertToString( csrHostMatrix.getColumns() ) }, { "columns", convertToString( csrHostMatrix.getColumns() ) },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment