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

Added global synchronization after the launch of ParallelForKernel

parent 36b81712
No related branches found
No related tags found
No related merge requests found
......@@ -76,6 +76,8 @@ struct ParallelFor< Devices::Cuda >
Devices::Cuda::synchronizeDevice();
ParallelForKernel<<< gridSize, blockSize >>>( start, end, f, args... );
cudaDeviceSynchronize();
TNL_CHECK_CUDA_DEVICE;
}
#endif
}
......
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