Skip to content
Snippets Groups Projects
Commit 809e8337 authored by Tomáš Oberhuber's avatar Tomáš Oberhuber Committed by Tomáš Oberhuber
Browse files

Fixed ParallelFor example.

parent fc532769
No related branches found
No related tags found
1 merge request!44Tutorials
......@@ -13,7 +13,7 @@ template< typename Device >
void initVector( Vector< double, Device >& v,
const double& c )
{
auto view = v.getConstView();
auto view = v.getView();
auto init = [=] __cuda_callable__ ( int i, const double c ) mutable {
view[ i ] = c; };
......
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