📄 mpi_pack_external_size.3
字号:
.\"Copyright 2006, Sun Microsystems, Inc..\" Copyright (c) 1996 Thinking Machines Corporation.TH MPI_Pack_external_size 3OpenMPI "September 2006" "Open MPI 1.2" " ".SH NAME\fBMPI_Pack_external_size\fP \- Calculates upper bound on space neededto write to a portable format.SH SYNTAX.ft R.SH C Syntax.nf#include <mpi.h>int MPI_Pack_external_size(char *\fIdatarep\fP, int \fIincount\fP, MPI_Datatype \fIdatatype\fP, MPI_Aint *\fIsize\fP).SH Fortran Syntax.nfINCLUDE 'mpif.h'MPI_PACK_EXTERNAL_SIZE(\fIDATAREP, INCOUNT, DATATYPE, SIZE, IERROR\fP) INTEGER \fIINCOUNT, DATATYPE, IERROR\fP INTEGER (KIND=MPI_ADDRESS_KIND) \fISIZE\fP CHARACTER*(*) \fIDATAREP\fP.SH C++ Syntax.nf#include <mpi.h>MPI::Aint MPI::Datatype::Pack_external_size(const char* \fIdatarep\fP, int \fIincount\fP) const.SH INPUT PARAMETERS.ft R.TP 1idatarepData representation (string)..TP 1iincountNumber of input data items (integer)..TP 1idatatypeDatatype of each input data item (handle)..SH OUTPUT PARAMETERS.ft R.TP 1isizeUpper bound on size of packed message, in bytes (integer)..TP 1iIERRORFortran only: Error status (integer). .SH DESCRIPTION.ft RMPI_Pack_external_size allows the application to find out how muchspace is needed to pack a message in the portable format defined bythe MPI Forum. It returns in \fIsize\fP an upper bound on theincrement in \fIposition\fP that would occur in a call toMPI_Pack_external with the same values for \fIdatarep\fP,\fIincount\fP, and \fIdatatype\fP..spThe call returns an upper bound, rather than an exact bound, as theexact amount of space needed to pack the message may depend on contextand alignment (e.g., the first message packed in a packing unit maytake more space)..SH NOTES.ft RThe \fIdatarep\fP argument specifies the data format. The only validvalue in the current version of MPI is "external32". The argument isprovided for future extensibility..SH ERRORS.ft RAlmost all MPI routines return an error value; C routines asthe value of the function and Fortran routines in the last argument. C++functions do not return errors. If the default error handler is set toMPI::ERRORS_THROW_EXCEPTIONS, then on error the C++ exception mechanismwill be used to throw an MPI:Exception object..spBefore the error value is returned, the current MPI error handler iscalled. By default, this error handler aborts the MPI job, except forI/O function errors. The error handler may be changed withMPI_Comm_set_errhandler; the predefined error handler MPI_ERRORS_RETURNmay be used to cause error values to be returned. Note that MPI does notguarantee that an MPI program can continue past an error. .spSee the MPI man page for a full list of MPI error codes..SH SEE ALSO.ft R.nfMPI_Pack_externalMPI_Unpack_external' @(#)MPI_Pack_external_size.3 1.6 06/03/09
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -