MPI_Testany(3)

MPI_Testany - Tests for completion of any previously initiated communication

As shipped in IRIX 6.5.30. Added in IRIX 6.5.19.

NAME
     MPI_Testany - Tests for completion of any previously initiated
     communication

SYNOPSIS
     C:

          #include <mpi.h>

          int MPI_Testany( count, array_of_requests, index,
          flag, status )
          int         count;
          MPI_Request array_of_requests[];
          int         *index, *flag;
          MPI_Status  *status;


     C++:

          #include <mpi.h>

          static bool Request::Testany(
          int               count,
          Request           array_of_requests[],
          int&              index)


     Fortran:

          INCLUDE "mpif.h" (or USE MPI)

          LOGICAL flag
          INTEGER count, array_of_requests(*), index,
          status(MPI_STATUS_SIZE), ierror

          CALL MPI_TESTANY(count, array_of_requests(*), index, flag,
          status(MPI_STATUS_SIZE), ierror)


STANDARDS
     This release implements the MPI 1.2 standard, as documented by the MPI
     Forum in the spring 1997 release of MPI:  A Message Passing Interface
     Standard.

DESCRIPTION
     The MPI_Testany routine tests for completion of any previously initiated
     communication.  This routine accepts the following parameters:

     count     Specifies the list length (integer)
     array_of_requests
               Specifies the array of requests (array of handles)

     index     Returns the index of the operation that completed, or the value
               of MPI_UNDEFINED if no operation completed (integer)

     flag      Returns a value of true if one of the operations is complete
               (logical)

     status    Returns the status object (status)

     ierror    Specifies the return code value for successful completion,
               which is in MPI_SUCCESS.  MPI_SUCCESS is defined in the mpif.h
               file.