From 42168575fd65b06c4ad9f0b2d91fffe1b7aeab35 Mon Sep 17 00:00:00 2001 From: Rolf vandeVaart Date: Tue, 13 Mar 2007 19:01:20 +0000 Subject: [PATCH] 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 --- ompi/mca/coll/tuned/coll_tuned_allgather.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ompi/mca/coll/tuned/coll_tuned_allgather.c b/ompi/mca/coll/tuned/coll_tuned_allgather.c index b9d4393c9a..d2ab4903af 100644 --- a/ompi/mca/coll/tuned/coll_tuned_allgather.c +++ b/ompi/mca/coll/tuned/coll_tuned_allgather.c @@ -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;