Skip to content
Snippets Groups Projects
Commit 7a151198 authored by Tomáš Oberhuber's avatar Tomáš Oberhuber Committed by Jakub Klinkovský
Browse files

Fixes in traversers benchmark.

parent 317b5bfd
No related branches found
No related tags found
1 merge request!20Traversers optimizations
......@@ -154,10 +154,10 @@ class GridTraversersBenchmark< 1, Device, Real, Index >
{
if( std::is_same< Device, Devices::Host >::value )
{
v_data[ 0 ] = 2;
v_data[ 0 ] = +2;
for( int i = 1; i < size - 1; i++ )
v_data[ i ] = 1.0;
v_data[ size - 1 ] = 2;
v_data[ i ] = +1.0;
v_data[ size - 1 ] = +2;
}
else // Device == Devices::Cuda
{
......
......@@ -189,6 +189,8 @@ bool runBenchmark( const Config::ParameterContainer& parameters,
}
std::cout << "--------------------------------------------------------------------------------------------------------" << std::endl;
}
return true;
/****
* Full grid traversing including boundary conditions
......
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