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

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

Adding compiled files

File size: 5.7 KB
Line 
1.\"Copyright 2006-2008 Sun Microsystems, Inc.
2.\" Copyright (c) 1996 Thinking Machines Corporation
3.TH MPI_Put 3 "Dec 08, 2009" "1.4" "Open MPI"
4.SH NAME
5\fBMPI_Put\fP \- Copies data from the origin memory to the target.
6
7.SH SYNTAX
8.ft R
9.SH C Syntax
10.nf
11#include <mpi.h>
12MPI_Put(void *\fIorigin_addr\fP, int \fIorigin_count\fP, MPI_Datatype
13        \fIorigin_datatype\fP, int \fItarget_rank\fP, MPI_Aint \fItarget_disp\fP,
14        int \fItarget_count\fP, MPI_Datatype \fItarget_datatype\fP, MPI_Win \fIwin\fP)
15
16.SH Fortran Syntax (see FORTRAN 77 NOTES)
17.nf
18INCLUDE 'mpif.h'
19MPI_PUT(\fIORIGIN_ADDR, ORIGIN_COUNT, ORIGIN_DATATYPE, TARGET_RANK,
20        TARGET_DISP, TARGET_COUNT, TARGET_DATATYPE, WIN, IERROR\fP)
21        <type> \fIORIGIN_ADDR\fP(*)
22        INTEGER(KIND=MPI_ADDRESS_KIND) \fITARGET_DISP\fP
23        INTEGER \fIORIGIN_COUNT, ORIGIN_DATATYPE, TARGET_RANK, TARGET_COUNT,
24        TARGET_DATATYPE, WIN, IERROR\fP
25
26.SH C++ Syntax
27.nf
28#include <mpi.h>
29void MPI::Win::Put(const void* \fIorigin_addr\fP, int \fIorigin_count\fP, const
30        MPI::Datatype& \fIorigin_datatype\fP, int \fItarget_rank\fP, MPI::Aint
31        \fItarget_disp\fP, int \fItarget_count\fP, const MPI::Datatype&
32        \fItarget_datatype\fP) const
33
34.SH INPUT PARAMETERS
35.ft R
36.TP 1i
37origin_addr
38Initial address of origin buffer (choice).
39.TP 1i
40origin_count
41Number of entries in origin buffer (nonnegative integer).
42.TP 1i
43origin_datatype
44Data type of each entry in origin buffer (handle).
45.TP 1i
46target_rank
47Rank of target (nonnegative integer).
48.TP 1i
49target_disp
50Displacement from start of window to target buffer (nonnegative integer).
51.TP 1i
52target_count
53Number of entries in target buffer (nonnegative integer).
54.TP 1i
55target_datatype
56Data type of each entry in target buffer (handle).
57.TP 1i
58win
59Window object used for communication (handle).
60
61.SH OUTPUT PARAMETER
62.ft R
63.TP 1i
64IERROR
65Fortran only: Error status (integer).
66
67.SH DESCRIPTION
68.ft R
69MPI_Put transfers \fIorigin_count\fP successive entries of the type specified by \fIorigin_datatype\fP, starting at address \fIorigin_addr\fP on the origin node to the target node specified by the \fIwin\fP, \fItarget_rank\fP pair. The data are written in the target buffer at address \fItarget_addr\fP = \fIwindow_base\fP + \fItarget_disp\fP x \fIdisp_unit\fP, where \fIwindow_base\fP and \fIdisp_unit\fP are the base address and window displacement unit specified at window initialization, by the target process.
70.sp
71The target buffer is specified by the arguments \fItarget_count\fP and \fItarget_datatype\fP.
72.sp
73The data transfer is the same as that which would occur if the origin process executed a send operation with arguments \fIorigin_addr\fP, \fIorigin_count\fP, \fIorigin_datatype\fP, \fItarget_rank\fP, \fItag\fP, \fIcomm\fP, and the target process executed a receive operation with arguments \fItarget_addr\fP, \fItarget_count\fP, \fItarget_datatype\fP, \fIsource\fP, \fItag\fP, \fIcomm\fP, where \fItarget_addr\fP is the target buffer address computed as explained above, and \fIcomm\fP is a communicator for the group of \fIwin\fP.
74.sp
75The communication must satisfy the same constraints as for a similar message-passing communication. The \fItarget_datatype\fP may not specify overlapping entries in the target buffer. The message sent must fit, without truncation, in the target buffer. Furthermore, the target buffer must fit in the target window. In addition, only processes within the same buffer can access the target window.
76.sp
77The \fItarget_datatype\fP argument is a handle to a datatype object defined at the origin process. However, this object is interpreted at the target process: The outcome is as if the target datatype object were defined at the target process, by the same sequence of calls used to define it at the origin process. The target data type must contain only relative displacements, not absolute addresses. The same holds for get and accumulate.
78
79.SH NOTES
80The \fItarget_datatype\fP argument is a handle to a datatype object that is defined at the origin process, even though it defines a data layout in the target process memory. This does not cause problems in a homogeneous or heterogeneous environment, as long as only portable data types are used (portable data types are defined in Section 2.4 of the MPI-2 Standard).
81.sp
82The performance of a put transfer can be significantly affected, on some systems, from the choice of window location and the shape and location of the origin and target buffer: Transfers to a target window in memory allocated by MPI_Alloc_mem may be much faster on shared memory systems; transfers from contiguous buffers will be faster on most, if not all, systems; the alignment of the communication buffers may also impact performance.
83
84.SH FORTRAN 77 NOTES
85.ft R
86The MPI standard prescribes portable Fortran syntax for
87the \fITARGET_DISP\fP argument only for Fortran 90. FORTRAN 77
88users may use the non-portable syntax
89.sp
90.nf
91     INTEGER*MPI_ADDRESS_KIND \fITARGET_DISP\fP
92.fi
93.sp
94where MPI_ADDRESS_KIND is a constant defined in mpif.h
95and gives the length of the declared integer in bytes.
96
97.SH ERRORS
98Almost 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.
99.sp
100Before the error value is returned, the current MPI error handler is
101called. 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. 
102
103.SH SEE ALSO
104.ft R
105.sp
106MPI_Get
107.br
108MPI_Accumulate
109
Note: See TracBrowser for help on using the repository browser.