1
1
This commit was SVN r2806.
Этот коммит содержится в:
Jeff Squyres 2004-09-22 21:17:32 +00:00
родитель 95c116697f
Коммит d1c3ed046e

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

@ -95,6 +95,14 @@ int MPI_Gather(void *sendbuf, int sendcount, MPI_Datatype sendtype,
}
}
/* Can we optimize? Everyone had to give the same send signature,
which means that everyone must have given a sendcount > 0 if
there's anything to send. */
if (sendcount == 0) {
return MPI_SUCCESS;
}
/* Invoke the coll component to perform the back-end operation */
err = comm->c_coll.coll_gather(sendbuf, sendcount, sendtype, recvbuf,