[97] | 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> |
---|
| 15 | int MPI_Lookup_name(char *\fIservice_name\fP, MPI_Info \fIinfo\fP, |
---|
| 16 | char *\fIport_name\fP) |
---|
| 17 | |
---|
| 18 | .SH Fortran Syntax |
---|
| 19 | .nf |
---|
| 20 | INCLUDE 'mpif.h' |
---|
| 21 | MPI_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> |
---|
| 28 | void 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 |
---|
| 34 | service_name |
---|
| 35 | A service name (string). |
---|
| 36 | .TP 1.4i |
---|
| 37 | info |
---|
| 38 | Options to the name service functions (handle). |
---|
| 39 | |
---|
| 40 | .SH OUTPUT PARAMETERS |
---|
| 41 | .ft R |
---|
| 42 | .TP 1.4i |
---|
| 43 | port_name |
---|
| 44 | a port name (string). |
---|
| 45 | .TP 1.4i |
---|
| 46 | IERROR |
---|
| 47 | Fortran only: Error status (integer). |
---|
| 48 | |
---|
| 49 | .SH DESCRIPTION |
---|
| 50 | .ft R |
---|
| 51 | This function retrieves a \fIport_name\fP published under |
---|
| 52 | \fIservice_name\fP by a previous invocation of MPI_Publish_name. The |
---|
| 53 | application must supply a \fIport_name\fP buffer large enough to hold |
---|
| 54 | the largest possible port name (i.e., MPI_MAX_PORT_NAME bytes). |
---|
| 55 | |
---|
| 56 | .SH INFO ARGUMENTS |
---|
| 57 | The following keys for \fIinfo\fP are recognized: |
---|
| 58 | .sp |
---|
| 59 | .sp |
---|
| 60 | .nf |
---|
| 61 | Key Type Description |
---|
| 62 | --- ---- ----------- |
---|
| 63 | |
---|
| 64 | ompi_lookup_order char * Resolution order for name lookup. |
---|
| 65 | .fi |
---|
| 66 | |
---|
| 67 | The \fIompi_lookup_order\fP info key can specify one of four valid |
---|
| 68 | string values (see the NAME SCOPE section below for more information |
---|
| 69 | on 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 |
---|
| 77 | not found, try searching the global scope for name resolution. This |
---|
| 78 | behavior is the default if the \fIompi_lookup_order\fP info key is not |
---|
| 79 | specified. |
---|
| 80 | .TP 4 |
---|
| 81 | \fIglobal,local\fP: Search the global scope for name resolution. If |
---|
| 82 | not found, try searching the local scope for name resolution. |
---|
| 83 | .PP |
---|
| 84 | If no info key is provided, the search will first check to see if a |
---|
| 85 | global server has been specified and is available. If so, then the |
---|
| 86 | search will default to global scope first, followed by local. Otherwise, |
---|
| 87 | the search will default to local. |
---|
| 88 | |
---|
| 89 | .SH NAME SCOPE |
---|
| 90 | Open MPI supports two name scopes: \fIglobal\fP and \fIlocal\fP. Local scope |
---|
| 91 | values are placed in a data store located on the mpirun of the calling |
---|
| 92 | process' job, while global scope values reside on a central server. Calls |
---|
| 93 | to MPI_Unpublish_name must correctly specify the scope to be used in |
---|
| 94 | finding the value to be removed. The function will return an error if |
---|
| 95 | the specified service name is not found on the indicated location. |
---|
| 96 | .sp |
---|
| 97 | For a more detailed description of scoping rules, please see the MPI_Publish_name |
---|
| 98 | man page. |
---|
| 99 | |
---|
| 100 | .SH ERRORS |
---|
| 101 | .ft R |
---|
| 102 | Almost all MPI routines return an error value; C routines as |
---|
| 103 | the value of the function and Fortran routines in the last argument. C++ |
---|
| 104 | functions do not return errors. If the default error handler is set to |
---|
| 105 | MPI::ERRORS_THROW_EXCEPTIONS, then on error the C++ exception mechanism |
---|
| 106 | will be used to throw an MPI:Exception object. |
---|
| 107 | .sp |
---|
| 108 | Before the error value is returned, the current MPI error handler is |
---|
| 109 | called. By default, this error handler aborts the MPI job, except for |
---|
| 110 | I/O function errors. The error handler may be changed with |
---|
| 111 | MPI_Comm_set_errhandler; the predefined error handler MPI_ERRORS_RETURN |
---|
| 112 | may be used to cause error values to be returned. Note that MPI does not |
---|
| 113 | guarantee that an MPI program can continue past an error. |
---|
| 114 | .sp |
---|
| 115 | See the MPI man page for a full list of MPI error codes. |
---|
| 116 | |
---|
| 117 | .SH SEE ALSO |
---|
| 118 | .ft R |
---|
| 119 | .nf |
---|
| 120 | MPI_Publish_name |
---|
| 121 | MPI_Open_port |
---|
| 122 | |
---|
| 123 | |
---|