//copy a single segment from sbuf to rbuf
send_offset = rank * scount * sextent;
- smpi_mpi_sendrecv(sbuf, scount, stype, rank, tag,
+ Request::sendrecv(sbuf, scount, stype, rank, tag,
(char *)rbuf + send_offset, rcount, rtype, rank, tag, comm, &status);
//post all irecv first
for (i = 0; i < size - 1; i++) {
recv_offset = ((rank - i - 1 + size) % size) * increment;
- rrequest_array[i] = smpi_mpi_irecv((char *)rbuf + recv_offset, rcount, rtype, from, tag + i, comm);
+ rrequest_array[i] = Request::irecv((char *)rbuf + recv_offset, rcount, rtype, from, tag + i, comm);
}
for (i = 0; i < size - 1; i++) {
send_offset = ((rank - i + size) % size) * increment;
- srequest_array[i] = smpi_mpi_isend((char *)rbuf + send_offset, scount, stype, to, tag + i, comm);
- smpi_mpi_wait(&rrequest_array[i], &status);
- smpi_mpi_wait(&srequest_array[i], &status2);
+ srequest_array[i] = Request::isend((char *)rbuf + send_offset, scount, stype, to, tag + i, comm);
+ Request::wait(&rrequest_array[i], &status);
+ Request::wait(&srequest_array[i], &status2);
}
free(rrequest_array);