Skip to content
Snippets Groups Projects
Commit 0ed7d0b6 authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Fixed calculation of bandwidth for big dataset sizes

parent 3dfd48b2
No related branches found
No related tags found
No related merge requests found
...@@ -139,7 +139,7 @@ benchmarkSpMV( Benchmark & benchmark, ...@@ -139,7 +139,7 @@ benchmarkSpMV( Benchmark & benchmark,
const int elements = setHostTestMatrix< HostMatrix >( hostMatrix, elementsPerRow ); const int elements = setHostTestMatrix< HostMatrix >( hostMatrix, elementsPerRow );
setCudaTestMatrix< DeviceMatrix >( deviceMatrix, elementsPerRow ); setCudaTestMatrix< DeviceMatrix >( deviceMatrix, elementsPerRow );
const double datasetSize = loops * elements * ( 2 * sizeof( Real ) + sizeof( int ) ) / oneGB; const double datasetSize = ( double ) loops * elements * ( 2 * sizeof( Real ) + sizeof( int ) ) / oneGB;
// reset function // reset function
auto reset = [&]() { auto reset = [&]() {
......
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