Commit 7de6b027 authored by Philipp Samfass's avatar Philipp Samfass

fix iprobe with smartMPI

parent 89ae9455
......@@ -256,7 +256,8 @@ int MPI_Iprobe_offload(int source, int tag, MPI_Comm comm, int *flag, MPI_Status
//ierr = smpi_iprobe_offload_rma(source, tag, comm, flag, status);
ierr = smpi_iprobe_offload_p2p(source, tag, comm, flag, status);
#endif
status->MPI_SOURCE = translateRank(MPI_COMM_WORLD, status->MPI_SOURCE, comm);
if(*flag)
status->MPI_SOURCE = translateRank(MPI_COMM_WORLD, status->MPI_SOURCE, comm);
return ierr;
}
......@@ -272,7 +273,6 @@ int MPI_Send_offload(const void *buf, int count, MPI_Datatype datatype, int dest
int MPI_Recv_offload(void *buf, int count, MPI_Datatype datatype, int source, int tag, MPI_Comm comm, MPI_Status_Offload *stat, int rail) {
#if COMMUNICATION_MODE==0
int ierr = smpi_recv_offload_p2p(buf, count, datatype, translateRank(comm, source, _comm), tag, comm, stat, rail);
stat->MPI_SOURCE = translateRank(MPI_COMM_WORLD, stat->MPI_SOURCE, comm);
return ierr;
#elif COMMUNICATION_MODE==1
//return smpi_recv_offload_rma(buf, count, datatype, translateRank(comm, source, _comm), tag, comm, stat);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment