Commit 5c08c37b authored by Philipp Samfass's avatar Philipp Samfass
Browse files

changed wrapper to map to new MPI calls for rma mode

parent a1d666d8
......@@ -234,7 +234,8 @@ int MPI_Iprobe_offload(int source, int tag, MPI_Comm comm, int *flag, MPI_Status
#if COMMUNICATION_MODE==0
ierr = ompi_iprobe_offload_p2p(source, tag, comm, flag, status);
#elif COMMUNICATION_MODE==1
ierr = ompi_iprobe_offload_rma(source, tag, comm, flag, status);
//ierr = ompi_iprobe_offload_rma(source, tag, comm, flag, status);
ierr = ompi_iprobe_offload_p2p(source, tag, comm, flag, status);
#endif
status->MPI_SOURCE = mapWorldToTeamRank(status->MPI_SOURCE);
return ierr;
......@@ -253,7 +254,8 @@ int MPI_Recv_offload(void *buf, int count, MPI_Datatype datatype, int source, in
#if COMMUNICATION_MODE==0
return ompi_recv_offload_p2p(buf, count, datatype, translateRank(comm, source, _comm), tag, comm, stat);
#elif COMMUNICATION_MODE==1
return ompi_recv_offload_rma(buf, count, datatype, translateRank(comm, source, _comm), tag, comm, stat);
//return ompi_recv_offload_rma(buf, count, datatype, translateRank(comm, source, _comm), tag, comm, stat);
return ompi_recv_offload_p2p(buf, count, datatype, translateRank(comm, source, _comm), tag, comm, stat);
#endif
}
......
......@@ -5,6 +5,7 @@
#define USE_MPI_OFFLOADING
#define COMMUNICATION_MODE 1
/**
* Sets up the MPI library and initialises the process
......
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