Skip to content

Commit

Permalink
Merge branch 'dis' of https://github.com/CaRoLZhangxy/deepmd-kit into…
Browse files Browse the repository at this point in the history
… dis
  • Loading branch information
CaRoLZhangxy committed Apr 19, 2024
2 parents 06208d2 + a13934b commit 48b9833
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/op/pt/comm.cc
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class Border : public torch::autograd::Function<Border> {
#endif
#ifdef GOOGLE_CUDA
gpuMemcpy(recv_g1, send_g1, nsend * tensor_size * sizeof(FPTYPE),
gpuMemcpyDeviceToDevice);
gpuMemcpyDeviceToDevice);
#else
memcpy(recv_g1, send_g1, nsend * tensor_size * sizeof(FPTYPE));
#endif
Expand Down Expand Up @@ -194,7 +194,7 @@ class Border : public torch::autograd::Function<Border> {
if (nrecv) {
#ifdef GOOGLE_CUDA
gpuMemcpy(recv_g1, send_g1, nrecv * tensor_size * sizeof(FPTYPE),
gpuMemcpyDeviceToDevice);
gpuMemcpyDeviceToDevice);
#else
memcpy(recv_g1, send_g1, nrecv * tensor_size * sizeof(FPTYPE));
#endif
Expand Down

0 comments on commit 48b9833

Please sign in to comment.