Skip to content

Commit f95fd44

Browse files
committed
Merge branch '20-gpu-timing' into 'master'
Resolve "GPU - timing" Closes #20 See merge request chase/chase-library/ChASE!43
2 parents f902e0e + 48e20de commit f95fd44

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ChASE-MPI/mpi_wrapper.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ void Memcpy(int mode, void* dst, const void* src, std::size_t count)
150150
#if defined(CUDA_AWARE)
151151
case CPY_D2D:
152152
cudaMemcpy(dst, src, count, cudaMemcpyDeviceToDevice);
153+
cudaDeviceSynchronize();
153154
break;
154155
case CPY_D2H:
155156
cudaMemcpy(dst, src, count, cudaMemcpyDeviceToHost);

0 commit comments

Comments
 (0)