Yes, I had already realized, sorry about the question.
It seems however, that for some MPI implementations (LAM in
particular) a NULL pointer is assumed to be like a pointer to
MPI_REQUEST_NULL, and my program ran fine with them. I have corrected
my program and all works fine with Open MPI. Thanks
I think you are mixing up two different things here: a NULL pointer is
invalid, and thus Open MPI has to raise an error. If a request is
MPI_REQUEST_NULL, that's perfectly legal according to the standard.
However MPI_REQUEST_NULL is not a NULL pointer, its a well defined value.
Francisco Jesús
Hello Users,
the man page for MPI_Waitany states that
"The array_of_requests list *may contain null* or inactive handles. If
the list contains no active handles (list has length zero or all
entries are null or inactive), then the call returns immediately with
index = MPI_UNDEFINED, and an empty