home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / MPI_Test.z / MPI_Test
Encoding:
Text File  |  2002-10-03  |  2.1 KB  |  67 lines

  1.  
  2.  
  3.  
  4. MMMMPPPPIIII____TTTTEEEESSSSTTTT((((3333))))                                                        MMMMPPPPIIII____TTTTEEEESSSSTTTT((((3333))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      MMMMPPPPIIII____TTTTeeeesssstttt - Tests for the completion of a send or receive operation
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      C:
  13.  
  14.           #include <mpi.h>
  15.  
  16.           int MPI_Test ( _r_e_q_u_e_s_t, _f_l_a_g, _s_t_a_t_u_s )
  17.           MPI_Request  *_r_e_q_u_e_s_t;
  18.           int          *_f_l_a_g;
  19.           MPI_Status   *_s_t_a_t_u_s;
  20.  
  21.  
  22.      C++:
  23.  
  24.           #include <mpi.h>
  25.  
  26.           bool Request::Test()
  27.  
  28.  
  29.      Fortran:
  30.  
  31.           INCLUDE "mpif.h" (or USE MPI)
  32.  
  33.           LOGICAL _f_l_a_g
  34.           INTEGER _r_e_q_u_e_s_t, _s_t_a_t_u_s(MPI_STATUS_SIZE), _i_e_r_r_o_r
  35.  
  36.           CALL MPI_TEST(_r_e_q_u_e_s_t, _f_l_a_g, _s_t_a_t_u_s(MPI_STATUS_SIZE), _i_e_r_r_o_r)
  37.  
  38.  
  39. SSSSTTTTAAAANNNNDDDDAAAARRRRDDDDSSSS
  40.      This release implements the MPI 1.2 standard, as documented by the MPI
  41.      Forum in the spring 1997 release of _M_P_I:  _A _M_e_s_s_a_g_e _P_a_s_s_i_n_g _I_n_t_e_r_f_a_c_e
  42.      _S_t_a_n_d_a_r_d.
  43.  
  44. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  45.      The MMMMPPPPIIII____TTTTeeeesssstttt routine tests for the completion of a send or receive
  46.      operation.  This routine accepts the following parameters:
  47.  
  48.      _r_e_q_u_e_s_t   Specifies the communication request (handle)
  49.  
  50.      _f_l_a_g      Returns a value of ttttrrrruuuueeee if operation completed (logical)
  51.  
  52.      _s_t_a_t_u_s    Returns the status object (status)
  53.  
  54.      _i_e_r_r_o_r    Specifies the return code value for successful completion,
  55.                which is in MPI_SUCCESS.  MPI_SUCCESS is defined in the mmmmppppiiiiffff....hhhh
  56.                file.
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.