source: proiecte/hpl/openmpi_compiled/share/man/man3/MPI_Pack_external_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.7 KB
Line 
1.\"Copyright 2006-2008 Sun Microsystems, Inc.
2.\" Copyright (c) 1996 Thinking Machines Corporation
3.TH MPI_Pack_external_size 3 "Dec 08, 2009" "1.4" "Open MPI"
4
5.SH NAME
6\fBMPI_Pack_external_size\fP \- Calculates upper bound on space needed
7to write to a portable format
8
9.SH SYNTAX
10.ft R
11
12.SH C Syntax
13.nf
14#include <mpi.h>
15int MPI_Pack_external_size(char *\fIdatarep\fP, int \fIincount\fP,
16        MPI_Datatype \fIdatatype\fP, MPI_Aint *\fIsize\fP)
17
18.SH Fortran Syntax
19.nf
20INCLUDE 'mpif.h'
21MPI_PACK_EXTERNAL_SIZE(\fIDATAREP, INCOUNT, DATATYPE, SIZE, IERROR\fP)
22
23        INTEGER         \fIINCOUNT, DATATYPE, IERROR\fP
24        INTEGER (KIND=MPI_ADDRESS_KIND) \fISIZE\fP
25        CHARACTER*(*)   \fIDATAREP\fP
26
27.SH C++ Syntax
28.nf
29#include <mpi.h>
30MPI::Aint MPI::Datatype::Pack_external_size(const char* \fIdatarep\fP,
31        int \fIincount\fP) const
32
33.SH INPUT PARAMETERS
34.ft R
35.TP 1i
36datarep
37Data representation (string).
38.TP 1i
39incount
40Number of input data items (integer).
41.TP 1i
42datatype
43Datatype of each input data item (handle).
44
45.SH OUTPUT PARAMETERS
46.ft R
47.TP 1i
48size
49Upper bound on size of packed message, in bytes (integer).
50.TP 1i
51IERROR
52Fortran only: Error status (integer).
53
54.SH DESCRIPTION
55.ft R
56MPI_Pack_external_size allows the application to find out how much
57space is needed to pack a message in the portable format defined by
58the MPI Forum. It returns in \fIsize\fP an upper bound on the
59increment in \fIposition\fP that would occur in a call to
60MPI_Pack_external with the same values for \fIdatarep\fP,
61\fIincount\fP, and \fIdatatype\fP.
62.sp
63The call returns an upper bound, rather than an exact bound, as the
64exact amount of space needed to pack the message may depend on context
65and alignment (e.g., the first message packed in a packing unit may
66take more space).
67
68.SH NOTES
69.ft R
70The \fIdatarep\fP argument specifies the data format. The only valid
71value in the current version of MPI is "external32". The argument is
72provided for future extensibility.
73
74.SH ERRORS
75.ft R
76Almost all MPI routines return an error value; C routines as
77the value of the function and Fortran routines in the last argument. C++
78functions do not return errors. If the default error handler is set to
79MPI::ERRORS_THROW_EXCEPTIONS, then on error the C++ exception mechanism
80will be used to throw an MPI:Exception object.
81.sp
82Before the error value is returned, the current MPI error handler is
83called. By default, this error handler aborts the MPI job, except for
84I/O function errors. The error handler may be changed with
85MPI_Comm_set_errhandler; the predefined error handler MPI_ERRORS_RETURN
86may be used to cause error values to be returned. Note that MPI does not
87guarantee that an MPI program can continue past an error.
88.sp
89See the MPI man page for a full list of MPI error codes.
90
91.SH SEE ALSO
92.ft R
93.nf
94MPI_Pack_external
95MPI_Unpack_external
96
Note: See TracBrowser for help on using the repository browser.