Skip to content

Commit

Permalink
Merge branch '20-gpu-timing' into 'master'
Browse files Browse the repository at this point in the history
Resolve "GPU - timing"

Closes #20

See merge request chase/chase-library/ChASE!43
  • Loading branch information
brunowu committed Dec 8, 2023
2 parents f902e0e + 48e20de commit f95fd44
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ChASE-MPI/mpi_wrapper.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ void Memcpy(int mode, void* dst, const void* src, std::size_t count)
#if defined(CUDA_AWARE)
case CPY_D2D:
cudaMemcpy(dst, src, count, cudaMemcpyDeviceToDevice);
cudaDeviceSynchronize();
break;
case CPY_D2H:
cudaMemcpy(dst, src, count, cudaMemcpyDeviceToHost);
Expand Down

0 comments on commit f95fd44

Please sign in to comment.