1
1

Fix for the special case where np=2 and the sendbuf is set to MPI_IN_PLACE.

In that case, sendcount and sendtype are not valid and we need to use
recvcount and recvtype.

This commit fixes trac:943.  Reviewed by Jelena Pjesivac-Grbovic.

This commit was SVN r14022.

The following Trac tickets were found above:
  Ticket 943 --> https://svn.open-mpi.org/trac/ompi/ticket/943
Этот коммит содержится в:
Rolf vandeVaart 2007-03-13 19:01:20 +00:00
родитель 4e72a8b652
Коммит 42168575fd

Просмотреть файл

@ -641,6 +641,8 @@ int ompi_coll_tuned_allgather_intra_two_procs(void *sbuf, int scount,
tmpsend = (char*)sbuf;
if (MPI_IN_PLACE == sbuf) {
tmpsend = (char*)rbuf + rank * rcount * rext;
scount = rcount;
sdtype = rdtype;
}
tmprecv = (char*)rbuf + remote * rcount * rext;