Check to see if we need to do anything. If we don't (i.e., if all the
rcounts are 0), then just return MPI_SUCCESS. This commit was SVN r12525.
Этот коммит содержится в:
родитель
1cfe963071
Коммит
8a08b092f6
@ -72,6 +72,19 @@ int MPI_Allgatherv(void *sendbuf, int sendcount, MPI_Datatype sendtype,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Do we need to do anything? Everyone had to give the same
|
||||||
|
signature, which means that everyone must have given a
|
||||||
|
sum(recvounts) > 0 if there's anything to do. */
|
||||||
|
|
||||||
|
for (i = 0; i < ompi_comm_size(comm); ++i) {
|
||||||
|
if (0 != recvcounts[i]) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (i >= ompi_comm_size(comm)) {
|
||||||
|
return MPI_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
/* Invoke the coll component to perform the back-end operation */
|
/* Invoke the coll component to perform the back-end operation */
|
||||||
|
|
||||||
err = comm->c_coll.coll_allgatherv(sendbuf, sendcount, sendtype,
|
err = comm->c_coll.coll_allgatherv(sendbuf, sendcount, sendtype,
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user