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

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

Adding compiled files

File size: 3.7 KB
Line 
1.\"Copyright 2007-2008 Sun Microsystems, Inc.
2.\" Copyright (c) 1996 Thinking Machines Corporation
3.TH MPI_Lookup_name 3 "Dec 08, 2009" "1.4" "Open MPI"
4
5.SH NAME
6.nf
7\fBMPI_Lookup_name\fP \- Finds port associated with a service name
8
9.SH SYNTAX
10.ft R
11
12.SH C Syntax
13.nf
14#include <mpi.h>
15int MPI_Lookup_name(char *\fIservice_name\fP, MPI_Info \fIinfo\fP,
16        char *\fIport_name\fP)
17
18.SH Fortran Syntax
19.nf
20INCLUDE 'mpif.h'
21MPI_LOOKUP_NAME(\fISERVICE_NAME, INFO, PORT_NAME, IERROR\fP)
22        CHARACTER*(*)   \fISERVICE_NAME, PORT_NAME\fP
23        INTEGER         \fIINFO, IERROR\fP
24
25.SH C++ Syntax
26.nf
27#include <mpi.h>
28void MPI::Lookup_name(const char *\fIservice_name\fP, const MPI::Info& \fIinfo\fP,
29        char* \fIport_name\fP)
30
31.SH INPUT PARAMETERS
32.ft R
33.TP 1.4i
34service_name
35A service name (string).
36.TP 1.4i
37info
38Options to the name service functions (handle).
39
40.SH OUTPUT PARAMETERS
41.ft R
42.TP 1.4i
43port_name
44a port name (string).
45.TP 1.4i
46IERROR
47Fortran only: Error status (integer).
48
49.SH DESCRIPTION
50.ft R
51This function retrieves a \fIport_name\fP published under
52\fIservice_name\fP by a previous invocation of MPI_Publish_name. The
53application must supply a \fIport_name\fP buffer large enough to hold
54the largest possible port name (i.e., MPI_MAX_PORT_NAME bytes).
55
56.SH INFO ARGUMENTS
57The following keys for \fIinfo\fP are recognized:
58.sp
59.sp
60.nf
61Key                   Type      Description
62---                   ----      -----------
63
64ompi_lookup_order     char *    Resolution order for name lookup.
65.fi
66
67The \fIompi_lookup_order\fP info key can specify one of four valid
68string values (see the NAME SCOPE section below for more information
69on name scopes):
70
71.TP 4
72\fIlocal\fP: Only search the local scope for name resolution.
73.TP 4
74\fIglobal\fP: Only search the global scope for name resolution.
75.TP 4
76\fIlocal,global\fP: Search the local scope for name resolution.  If
77not found, try searching the global scope for name resolution.  This
78behavior is the default if the \fIompi_lookup_order\fP info key is not
79specified.
80.TP 4
81\fIglobal,local\fP: Search the global scope for name resolution.  If
82not found, try searching the local scope for name resolution.
83.PP
84If no info key is provided, the search will first check to see if a
85global server has been specified and is available. If so, then the
86search will default to global scope first, followed by local. Otherwise,
87the search will default to local.
88
89.SH NAME SCOPE
90Open MPI supports two name scopes: \fIglobal\fP and \fIlocal\fP. Local scope
91values are placed in a data store located on the mpirun of the calling
92process' job, while global scope values reside on a central server. Calls
93to MPI_Unpublish_name must correctly specify the scope to be used in
94finding the value to be removed. The function will return an error if
95the specified service name is not found on the indicated location.
96.sp
97For a more detailed description of scoping rules, please see the MPI_Publish_name
98man page.
99
100.SH ERRORS
101.ft R
102Almost all MPI routines return an error value; C routines as
103the value of the function and Fortran routines in the last argument. C++
104functions do not return errors. If the default error handler is set to
105MPI::ERRORS_THROW_EXCEPTIONS, then on error the C++ exception mechanism
106will be used to throw an MPI:Exception object.
107.sp
108Before the error value is returned, the current MPI error handler is
109called. By default, this error handler aborts the MPI job, except for
110I/O function errors. The error handler may be changed with
111MPI_Comm_set_errhandler; the predefined error handler MPI_ERRORS_RETURN
112may be used to cause error values to be returned. Note that MPI does not
113guarantee that an MPI program can continue past an error.
114.sp
115See the MPI man page for a full list of MPI error codes.
116
117.SH SEE ALSO
118.ft R
119.nf
120MPI_Publish_name
121MPI_Open_port
122
123
Note: See TracBrowser for help on using the repository browser.