Skip to content

Commit 9b49421

Browse files
committed
call MPI_Recv directly to remove redundant contiguous check
Signed-off-by: Carl Pearson <cwpears@sandia.gov>
1 parent 6d59146 commit 9b49421

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/KokkosComm/mpi/recv.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ void recv(const ExecSpace &space, RecvView &rv, int src, int tag, MPI_Comm comm)
5757
} else {
5858
using RecvScalar = typename RecvView::value_type;
5959
space.fence("Fence before MPI_Recv"); // prevent work in `space` from writing to recv buffer
60-
recv(rv, src, tag, comm, MPI_STATUS_IGNORE);
60+
MPI_Recv(KokkosComm::data_handle(rv), KokkosComm::span(rv), KokkosComm::Impl::mpi_type_v<RecvScalar>, src, tag,
61+
comm, MPI_STATUS_IGNORE);
6162
}
6263

6364
Kokkos::Tools::popRegion();

0 commit comments

Comments
 (0)