Commit 47747afd authored by Philipp Samfaß's avatar Philipp Samfaß

tried to fix ranks returned by iprobe and recv

parent f9d85088
......@@ -97,3 +97,4 @@ tests/UnitTests
*.code-workspace
/build/
......@@ -250,7 +250,7 @@ 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 = mapWorldToTeamRank(status->MPI_SOURCE);
status->MPI_SOURCE = translateRank(MPI_COMM_WORLD, status->MPI_SOURCE, comm);
return ierr;
}
......@@ -265,7 +265,9 @@ 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
return smpi_recv_offload_p2p(buf, count, datatype, translateRank(comm, source, _comm), tag, comm, stat, rail);
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);
return smpi_recv_offload_rma(buf, count, datatype, translateRank(comm, source, _comm), tag, comm, stat, rail);
......
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