home *** CD-ROM | disk | FTP | other *** search
-
-
-
- MMMMPPPPIIII____IIIINNNNIIIITTTT((((3333)))) MMMMPPPPIIII____IIIINNNNIIIITTTT((((3333))))
-
-
-
- NNNNAAAAMMMMEEEE
- MMMMPPPPIIII____IIIInnnniiiitttt - Initializes the MPI execution environment
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- C:
-
- #include <mpi.h>
-
- int MPI_Init(_a_r_g_c,_a_r_g_v)
- int *_a_r_g_c;
- char ***_a_r_g_v;
-
-
- C++:
-
- #include <mpi.h>
-
- void Init()
-
-
- Fortran:
-
- INCLUDE "mpif.h" (or USE MPI)
-
- INTEGER error
-
- CALL MPI_INIT(error)
-
-
- SSSSTTTTAAAANNNNDDDDAAAARRRRDDDDSSSS
- This release implements the MPI 1.2 standard, as documented by the MPI
- 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
- _S_t_a_n_d_a_r_d.
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- The MMMMPPPPIIII____IIIInnnniiiitttt routine initializes the MPI execution environment. This
- routine accepts the following parameters:
-
- _a_r_g_c Specifies a pointer to the number of arguments
-
- _a_r_g_v Specifies a pointer to the argument vector
-
- _i_e_r_r_o_r Specifies the return code value for successful completion,
- which is in MPI_SUCCESS. MPI_SUCCESS is defined in the mmmmppppiiiiffff....hhhh
- file.
-
- MPI specifies no command-line arguments, but does allow an MPI
- implementation to make use of them.
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- MMMMPPPPIIII____IIIINNNNIIIITTTT((((3333)))) MMMMPPPPIIII____IIIINNNNIIIITTTT((((3333))))
-
-
-
- NOTES
- The Fortran binding for this routine has only the error return argument
- (MMMMPPPPIIII____IIIINNNNIIIITTTT(_i_e_r_r_o_r)).
-
- Because the Fortran and C versions of MMMMPPPPIIII____IIIInnnniiiitttt are different, there is a
- restriction on who can call MMMMPPPPIIII____IIIInnnniiiitttt. The version (Fortran or C) must
- match the main program. That is, if the main program is in C, the C
- version of MMMMPPPPIIII____IIIInnnniiiitttt must be called. If the main program is in Fortran,
- the Fortran version must be called.
-
- On exit from this routine, all processes will have a copy of the argument
- list. This is .ft3 not required by the MPI standard, and truly portable
- codes should not rely on it. This is provided as a service by this
- implementation (an MPI implementation is allowed to distribute the
- command line arguments but is not required to).
-
- Command line arguments are not provided to Fortran programs. More
- precisely, nonstandard Fortran routines such as GGGGEEEETTTTAAAARRRRGGGG(3F) and IIIIAAAARRRRGGGGCCCC(3F)
- have undefined behavior in MPI and in this implementation.
-
- The MPI standard does not say what a program can do before an MMMMPPPPIIII____IIIInnnniiiitttt
- operation or after an MMMMPPPPIIII____FFFFiiiinnnnaaaalllliiiizzzzeeee(3) operation.
-
- Shared-memory mode uses no signals. TCP mode uses SSSSIIIIGGGGUUUUSSSSRRRR1111.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- GGGGEEEETTTTAAAARRRRGGGG(3F), IIIIAAAARRRRGGGGCCCC(3F), MMMMPPPPIIII____FFFFiiiinnnnaaaalllliiiizzzzeeee(3)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-