Commit 5a46ce23 authored by Tomáš Oberhuber's avatar Tomáš Oberhuber Committed by Jakub Klinkovský
Browse files

Fixing lambda function for CUDA in traverser benchmark.

parent 3e8d53c5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -39,13 +39,13 @@ class WriteOne< 1, Device, Real, Index >
      static void run( std::size_t size )
      {
         Vector v( size );
         auto writeOne = []( Index i, Real* data )
         auto writeOne = [] __cuda_callable__ ( Index i, Real* data )
         {
            data[ i ] = 1.0;
         };
         
         
         ParallelFor< Devices::Host >::exec( ( std::size_t ) 0, size, writeOne, v.getData() );
         ParallelFor< Device >::exec( ( std::size_t ) 0, size, writeOne, v.getData() );
      }
};