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

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

Adding compiled files

File size: 2.5 KB
Line 
1.\"Copyright 2006-2008 Sun Microsystems, Inc.
2.\" Copyright (c) 1996 Thinking Machines Corporation
3.TH MPI_Cart_map 3 "Dec 08, 2009" "1.4" "Open MPI"
4.SH NAME
5\fBMPI_Cart_map \fP \-  Maps process to Cartesian topology information.
6
7.SH SYNTAX
8.ft R
9.SH C Syntax
10.nf
11#include <mpi.h>
12int MPI_Cart_map(MPI_Comm \fIcomm\fP, int\fI ndims\fP, int\fI *dims\fP,
13        int\fI *periods\fP, int\fI *newrank\fP)
14
15.SH Fortran Syntax
16.nf
17INCLUDE 'mpif.h'
18MPI_CART_MAP(\fICOMM, NDIMS, DIMS, PERIODS, NEWRANK, IERROR\fP)
19        INTEGER \fICOMM, NDIMS, DIMS(*), NEWRANK, IERROR\fP
20        LOGICAL \fIPERIODS\fP(*)
21
22.SH C++ Syntax
23.nf
24#include <mpi.h>
25int Cartcomm::Map(int \fIndims\fP, const int \fIdims\fP[],
26        const bool \fIperiods\fP[]) const
27
28.SH INPUT PARAMETERS
29.ft R
30.TP 1i
31comm
32Input communicator (handle).
33.TP 1i
34ndims
35Number of dimensions of Cartesian structure (integer).
36.TP 1i
37dims
38Integer array of size ndims specifying the number of processes in each
39coordinate direction.
40.TP 1i
41periods
42Logical array of size ndims specifying the periodicity specification in each coordinate direction.
43
44.SH OUTPUT PARAMETERS
45.ft R
46.TP 1i
47newrank
48Reordered rank of the calling process; MPI_UNDEFINED if calling process does not belong to grid (integer).
49.ft R
50.TP 1i
51IERROR
52Fortran only: Error status (integer).
53
54.SH DESCRIPTION
55.ft R
56MPI_Cart_map and MPI_Graph_map can be used to implement all other topology functions. In general they will not be called by the user directly, unless he or she is creating additional virtual topology capability other than that provided by MPI. 
57.sp
58MPI_Cart_map computes an "optimal" placement for the calling process on the physical machine. A possible implementation of this function is to always return the rank of the calling process, that is, not to perform any reordering.
59
60.SH ERRORS
61Almost 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.
62.sp
63Before the error value is returned, the current MPI error handler is
64called. 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. 
65
66.SH SEE ALSO
67.ft R
68.sp
69MPI_Graph_map
Note: See TracBrowser for help on using the repository browser.