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

Added missing synchronization to the mesh traverser

parent 0f8452da
No related branches found
No related tags found
No related merge requests found
......@@ -173,6 +173,8 @@ processBoundaryEntities( const MeshPointer& meshPointer,
( &meshPointer.template getData< Devices::Cuda >(),
&userDataPointer.template modifyData< Devices::Cuda >(),
entitiesCount );
cudaDeviceSynchronize();
checkCudaDevice;
#else
CudaSupportMissingMessage;
#endif
......@@ -203,6 +205,8 @@ processInteriorEntities( const MeshPointer& meshPointer,
( &meshPointer.template getData< Devices::Cuda >(),
&userDataPointer.template modifyData< Devices::Cuda >(),
entitiesCount );
cudaDeviceSynchronize();
checkCudaDevice;
#else
CudaSupportMissingMessage;
#endif
......@@ -233,6 +237,8 @@ processAllEntities( const MeshPointer& meshPointer,
( &meshPointer.template getData< Devices::Cuda >(),
&userDataPointer.template modifyData< Devices::Cuda >(),
entitiesCount );
cudaDeviceSynchronize();
checkCudaDevice;
#else
CudaSupportMissingMessage;
#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