1
1

No need to do anything for sendcount==0 case

This commit was SVN r2904.
Этот коммит содержится в:
Jeff Squyres 2004-10-01 18:23:39 +00:00
родитель ca2273ed7c
Коммит 02cc1ccdc9

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

@ -47,6 +47,13 @@ int MPI_Alltoall(void *sendbuf, int sendcount, MPI_Datatype sendtype,
OMPI_ERRHANDLER_CHECK(err, comm, err, FUNC_NAME);
}
/* If the sendcount is 0, since everyone gave the same value, then
we don't need to do anything */
if (0 == sendcount) {
return OMPI_SUCCESS;
}
/* Invoke the coll component to perform the back-end operation */
err = comm->c_coll.coll_alltoall(sendbuf, sendcount, sendtype,