Commit a8c4fe27 authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

SpMV benchmark: --input-file should be a required parameter, other minor fixes

parent e7db18c4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -821,6 +821,6 @@ benchmarkSpmv( BenchmarkType& benchmark,
#endif
}

      } // namespace SpMVLegacy
      } // namespace SpMV
   } // namespace Benchmarks
} // namespace TNL
+2 −2
Original line number Diff line number Diff line
@@ -66,7 +66,7 @@ std::string getCurrDateTime()
   char buffer[ 80 ];
   time( &rawtime );
   timeinfo = localtime( &rawtime );
   strftime( buffer, sizeof( buffer ), "%d-%m-%Y--%H:%M:%S", timeinfo );
   strftime( buffer, sizeof( buffer ), "%Y-%m-%d--%H:%M:%S", timeinfo );
   std::string curr_date_time( buffer );
   return curr_date_time;
}
@@ -75,7 +75,7 @@ void
setupConfig( Config::ConfigDescription & config )
{
   config.addDelimiter( "Benchmark settings:" );
   config.addEntry< String >( "input-file", "Input file name.", "" );
   config.addRequiredEntry< String >( "input-file", "Input file name." );
   config.addEntry< bool >( "with-symmetric-matrices", "Perform benchmark even for symmetric matrix formats.", true );
   config.addEntry< bool >( "with-legacy-matrices", "Perform benchmark even for legacy TNL matrix formats.", true );
   config.addEntry< bool >( "with-all-cpu-tests", "All matrix formats are tested on both CPU and GPU. ", false );