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

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

Adding compiled files

File size: 2.4 KB
Line 
1.\"Copyright 2006-2008 Sun Microsystems, Inc.
2.\" Copyright (c) 1996 Thinking Machines Corporation
3.TH MPI_Pack_size 3 "Dec 08, 2009" "1.4" "Open MPI"
4.SH NAME
5\fBMPI_Pack_size\fP \- Returns the upper bound on the amount of space needed to pack a message.
6
7.SH SYNTAX
8.ft R
9.SH C Syntax
10.nf
11#include <mpi.h>
12int MPI_Pack_size(int \fIincount\fP, MPI_Datatype\fI datatype\fP, MPI_Comm\fI comm\fP,
13        int\fI *size\fP)
14
15.SH Fortran Syntax
16.nf
17INCLUDE 'mpif.h'
18MPI_PACK_SIZE(\fIINCOUNT, DATATYPE, COMM, SIZE, IERROR\fP)
19        INTEGER \fIINCOUNT, DATATYPE, COMM, SIZE, IERROR\fP
20
21.SH C++ Syntax
22.nf
23#include <mpi.h>
24int Datatype::Pack_size(int \fIincount\fP, const Comm& \fIcomm\fP) const
25
26.SH INPUT PARAMETERS
27.ft R
28.TP 1i
29incount
30Count argument to packing call (integer).
31.TP 1i
32datatype
33Datatype argument to packing call (handle).
34.TP 1i
35comm
36Communicator argument to packing call (handle).
37
38.SH OUTPUT PARAMETERS
39.ft R
40.TP 1i
41size
42Upper bound on size of packed message, in bytes (integer).
43.ft R
44.TP 1i
45IERROR
46Fortran only: Error status (integer).
47
48.SH DESCRIPTION
49.ft R
50MPI_Pack_size allows the application to find out how much space is needed to pack a message. A call to MPI_Pack_size(incount, datatype, comm, size) returns in size an
51upper bound on the increment in position that would occur in a call to MPI_Pack, with the same values for \fIincount\fP, \fIdatatype\fP, and \fIcomm\fP.
52.sp
53\fBRationale:\fP  The call returns an upper bound, rather than an exact bound, since the exact amount of space needed to pack the message may depend on the context (e.g., first message packed in a packing unit may take more space).
54
55.SH ERRORS
56Almost 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.
57.sp
58Before the error value is returned, the current MPI error handler is
59called. 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. 
60
61.SH SEE ALSO
62.ft R
63.sp
64MPI_Pack
65.br
66MPI_Unpack
67
68
Note: See TracBrowser for help on using the repository browser.