⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mpi_type_match_size.3

📁 MPI stands for the Message Passing Interface. Written by the MPI Forum (a large committee comprising
💻 3
字号:
.\"Copyright 2006, Sun Microsystems, Inc..\" Copyright (c) 1996 Thinking Machines Corporation.TH MPI_Type_match_size 3OpenMPI "September 2006" "Open MPI 1.2" " ".SH NAME\fBMPI_Type_match_size\fP \- Returns an MPI datatype of a given type and size.SH SYNTAX.ft R.SH C Syntax.nf#include <mpi.h>int MPI_Type_match_size(int \fItypeclass\fP, int \fIsize\fP,	MPI_Datatype *\fItype\fP).SH Fortran Syntax.nfINCLUDE 'mpif.h'MPI_TYPE_MATCH_SIZE(\fITYPECLASS, SIZE, TYPE, IERROR\fP)	INTEGER	\fITYPECLASS, SIZE, TYPE, IERROR\fP .SH C++ Syntax.nf#include <mpi.h>static MPI::Datatype MPI::Match_size(int \fItypeclass\fP, int \fIsize\fP).SH INPUT PARAMETERS.ft R.TP 1itypeclassGeneric type specifier (integer)..ft R.TP 1isizeSize, in bytes, of representation (integer)..SH OUTPUT PARAMETERS.ft R.TP 1itypeDatatype with correct type and size (handle)..ft R.TP 1iIERRORFortran only: Error status (integer). .SH DESCRIPTION.ft RThe function returns an MPI datatype matching a local variable of type(\fItypeclass\fP, \fIsize\fP). The returned type is a reference(handle) to a predefined named datatype, not a duplicate. This typecannot be freed..spThe value of \fItypeclass\fR may be set to one of MPI_TYPECLASS_REAL,MPI_TYPECLASS_INTEGER, or MPI_TYPECLASS_COMPLEX, corresponding to thedesired datatype..spMPI_type_match_size can be used to obtain a size-specific type thatmatches a Fortran numeric intrinsic type: first call MPI_Sizeof tocompute the variable size, then call MPI_Type_match_size to find asuitable datatype. In C and C++, use the sizeof builtin instead ofMPI_Sizeof..spIt is erroneous to specify a size not supported by the compiler..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_SizeofMPI_Type_get_extent' @(#)MPI_Type_match_size.3 1.5 06/03/09

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -