Skip to content

Commit

Permalink
Fix Kokkos comm.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Trott committed Mar 19, 2020
1 parent 7889607 commit 7576016
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion kokkos/Makefile.no-mpi
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
MPI_PATH = ./MPI-Stubs

#Set the path to Kokkos
KOKKOS_PATH = /home/crtrott/kokkos
KOKKOS_PATH = ${HOME}/Kokkos/kokkos
#Set the Devices to compile for
KOKKOS_DEVICES=OpenMP
#Set the Architecture to compiler for
Expand Down
2 changes: 1 addition & 1 deletion kokkos/comm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ void Comm::reverse_communicate(Atom &atom)
if(sendproc[iswap] != me) {

MPI_Datatype type = (sizeof(MMD_float) == 4) ? MPI_FLOAT : MPI_DOUBLE;
MPI_Send(buf_send.data(), reverse_send_size[iswap], type, recvproc[iswap], 0,
MPI_Sendrecv(buf_send.data(), reverse_send_size[iswap], type, recvproc[iswap], 0,
buf_recv.data(), reverse_recv_size[iswap], type, sendproc[iswap], 0,
MPI_COMM_WORLD, MPI_STATUS_IGNORE);

Expand Down

0 comments on commit 7576016

Please sign in to comment.