source: proiecte/hpl/openmpi_compiled/share/man/man3/MPI_Comm_connect.3 @ 97

Last change on this file since 97 was 97, checked in by (none), 14 years ago

Adding compiled files

File size: 2.9 KB
Line 
1.\"Copyright 2007-2008 Sun Microsystems, Inc.
2.\" Copyright (c) 1996 Thinking Machines Corporation
3.TH MPI_Comm_connect 3 "Dec 08, 2009" "1.4" "Open MPI"
4.SH NAME
5\fBMPI_Comm_connect \fP \- Establishes communication with a server.
6
7.SH SYNTAX
8.ft R
9.SH C Syntax
10.nf
11#include <mpi.h>
12int MPI_Comm_connect(char *\fIport_name\fP, MPI_Info \fIinfo\fP, int \fIroot\fP,
13        MPI_Comm \fIcomm\fP, MPI_Comm *\fInewcomm\fP)
14
15.SH Fortran Syntax
16.nf
17INCLUDE 'mpif.h'
18MPI_COMM_CONNECT(\fIPORT_NAME, INFO, ROOT, COMM, NEWCOMM, IERROR\fP)
19        CHARACTER*(*)   \fIPORT_NAME\fP
20        INTEGER         \fIINFO, ROOT, COMM, NEWCOMM, IERROR\fP
21
22.SH C++ Syntax
23.nf
24#include <mpi.h>
25MPI::Intercomm MPI::Intracomm::Connect(const char* \fIport_name\fP,
26        const MPI::Info& \fIinfo\fP, int \fIroot\fP) const
27
28.SH INPUT PARAMETERS
29.ft R
30.TP 1i
31port_name
32Port name (string, used only on \fIroot\fP).
33.TP 1i
34info
35Options given by root for the connect (handle, used only on root). No options currently supported.
36.TP 1i
37root
38Rank in \fIcomm\fP of root node (integer).
39.TP 1i
40comm
41Intracommunicator over which call is collective (handle).
42
43.SH OUTPUT PARAMETERS
44.ft R
45.TP 1i
46newcomm
47Intercommunicator with client as remote group (handle)
48.TP 1i
49IERROR
50Fortran only: Error status (integer).
51
52.SH DESCRIPTION
53.ft R
54MPI_Comm_connect establishes communication with a server specified by \fIport_name\fP. It is collective over the calling communicator and returns an intercommunicator in which the remote group participated in an MPI_Comm_accept. The MPI_Comm_connect call must only be called after the MPI_Comm_accept call has been made by the MPI job acting as the server.
55.sp
56If the named port does not exist (or has been closed), MPI_Comm_connect raises an error of class MPI_ERR_PORT.
57.sp
58MPI provides no guarantee of fairness in servicing connection attempts. That is, connection attempts are not necessarily satisfied in the order in which they were initiated, and competition from other connection attempts may prevent a particular connection attempt from being satisfied.
59
60The \fIport_name\fP parameter is the address of the server. It must be the same as the name returned by MPI_Open_port on the server.
61 
62
63.SH ERRORS
64Almost all MPI routines return an error value; C routines as the value of the function and Fortran routines in the last argument. C++ functions do not return errors. If the default error handler is set to MPI::ERRORS_THROW_EXCEPTIONS, then on error the C++ exception mechanism will be used to throw an MPI:Exception object.
65.sp
66Before the error value is returned, the current MPI error handler is
67called. By default, this error handler aborts the MPI job, except for I/O function errors. The error handler may be changed with MPI_Comm_set_errhandler; the predefined error handler MPI_ERRORS_RETURN may be used to cause error values to be returned. Note that MPI does not guarantee that an MPI program can continue past an error. 
68.sp
69See the MPI man page for a full list of MPI error codes.
70
71.SH SEE ALSO
72MPI_Comm_accept
73MPI_Open_port
74.br
75
Note: See TracBrowser for help on using the repository browser.