1
1
openmpi/ompi/request
Jeff Squyres 20eebeaa14 MPI_TESTANY is described in MPI-1 p46. The last 2 full paragraphs of
the page address three situations:

1. if the array of requests are all REQUEST_NULL, set flag=true and
   index=MPI_UNDEFINED
2. if the array of requests are not all REQUEST_NULL, if any of them
   finished, set flag=true and index=whatever_the_index_was
3. if the array of requests are not all REQUEST_NULL, if none of them
   finished, set flag=false and index=MPI_UNDEFINED

With regards to the index value, we are currently doing 1 and 2, but
not 3.  More specifically, index should be set to MPI_UNDEFINED if no
requests are found to have completed (regardless of whether they are
REQUEST_NULL or not).

This patch fixes this problem.

This commit was SVN r8319.
2005-11-29 23:41:04 +00:00
..
grequest.c Update the copyright notices for IU and UTK. 2005-11-05 19:57:48 +00:00
grequest.h Update the copyright notices for IU and UTK. 2005-11-05 19:57:48 +00:00
Makefile.am Update the copyright notices for IU and UTK. 2005-11-05 19:57:48 +00:00
req_test.c MPI_TESTANY is described in MPI-1 p46. The last 2 full paragraphs of 2005-11-29 23:41:04 +00:00
req_wait.c improve the scalability of MPI_Waitall ... 2005-11-10 00:45:27 +00:00
request.c improve the scalability of MPI_Waitall ... 2005-11-10 00:45:27 +00:00
request.h improve the scalability of MPI_Waitall ... 2005-11-10 00:45:27 +00:00