I think a generous interpretation of the MPI Standard would probably agree with you. It's the same text for startall as it is for waitall (it should act like for i = 0 ... count; start). On Wed, Mar 20, 2019 at 2:51 PM Zhang, Junchao via discuss < [email protected]> wrote:
When count= 0, mpich should not raise error if array_of_requests is NULL. Otherwise, one has to write code like if (count) MPI_Startall(count, reqs). Note reqs is often NULL if count=0. See also MPI_Waitall, which has the correct logic.
MPI_Startall(int count, MPI_Request array_of_requests[]) { ... MPIR_ERRTEST_COUNT(count, mpi_errno); MPIR_ERRTEST_ARGNULL(array_of_requests, "array_of_requests", mpi_errno); } --Junchao Zhang _______________________________________________ discuss mailing list [email protected] To manage subscription options or unsubscribe: https://lists.mpich.org/mailman/listinfo/discuss