Skip to content
Snippets Groups Projects
Commit 13a193f0 authored by Lukas Cejka's avatar Lukas Cejka Committed by Tomáš Oberhuber
Browse files

Added FIXMEs to observed errors when launched without parameters or with...

Added FIXMEs to observed errors when launched without parameters or with '--help'. Commented out result comparison.
parent c45aad58
No related branches found
No related tags found
1 merge request!45Matrices revision
......@@ -247,7 +247,7 @@ benchmarkSpMV( Benchmark & benchmark,
resultcuSPARSEDeviceVector2 = deviceVector2;
#endif
//#ifdef COMPARE_RESULTS
#ifdef COMPARE_RESULTS
// Difference between GPU (curent format) and GPU-cuSPARSE results
Real cuSparseDifferenceAbsMax = resultDeviceVector2.differenceAbsMax( resultcuSPARSEDeviceVector2 );
Real cuSparseDifferenceLpNorm = resultDeviceVector2.differenceLpNorm( resultcuSPARSEDeviceVector2, 1 );
......@@ -284,7 +284,7 @@ benchmarkSpMV( Benchmark & benchmark,
// benchmark.addErrorMessage( CPUxGPU_absMax, 1 );
// benchmark.addErrorMessage( CPUxGPU_lpNorm, 1 );
//#endif
#endif
std::cout << std::endl;
return true;
......
......@@ -87,6 +87,16 @@ main( int argc, char* argv[] )
setupConfig( conf_desc );
// FIXME: When ./tnl-benchmark-spmv-dbg is called without parameters:
// * The guide on what parameters to use prints twice.
// FIXME: When ./tnl-benchmark-spmv-dbg is called with '--help':
// * The guide on what parameter to use print once.
// But then it CRASHES due to segfault:
// The program attempts to get unknown parameter openmp-enabled
// Aborting the program.
// terminate called after throwing an instance of 'int'
// [1] 17156 abort (core dumped) ~/tnl-dev/Debug/bin/./tnl-benchmark-spmv-dbg --help
if( ! parseCommandLine( argc, argv, conf_desc, parameters ) ) {
conf_desc.printUsage( argv[ 0 ] );
return EXIT_FAILURE;
......
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