[mpich-discuss] Error check in MPI_Startall with count=0

Wesley Bland work at wesbland.com
Wed Mar 20 15:01:18 CDT 2019


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 <
discuss at mpich.org> 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     discuss at mpich.org
> To manage subscription options or unsubscribe:
> https://lists.mpich.org/mailman/listinfo/discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mpich.org/pipermail/discuss/attachments/20190320/5defa9b2/attachment.html>


More information about the discuss mailing list