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

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

Adding compiled files

File size: 3.3 KB
Line 
1.\"Copyright 2006-2008 Sun Microsystems, Inc.
2.\" Copyright (c) 1996 Thinking Machines Corporation
3.TH MPI_File_get_type_extent 3 "Dec 08, 2009" "1.4" "Open MPI"
4.SH NAME
5\fBMPI_File_get_type_extent\fP \- Returns the extent of the data type in a file.
6
7.SH SYNTAX
8.ft R
9.nf
10C Syntax
11    #include <mpi.h>
12    int MPI_File_get_type_extent(MPI_File \fIfh\fP, MPI_Datatype
13              \fIdatatype\fP, MPI_Aint \fI*extent\fP)
14
15Fortran Syntax (see FORTRAN 77 NOTES)
16    INCLUDE 'mpif.h'
17    MPI_FILE_GET_TYPE_EXTENT(\fIFH\fP, \fIDATATYPE\fP, \fIEXTENT\fP, \fI IERROR\fP)
18                INTEGER \fIFH, DATATYPE, IERROR\fP
19                INTEGER(KIND=MPI_ADDRESS_KIND) \fIEXTENT\fP
20
21.SH C++ Syntax
22.nf
23#include <mpi.h>
24MPI::Aint MPI::File::Get_type_extent(const MPI::Datatype&
25        \fIdatatype\fP) const
26
27.SH INPUT PARAMETERS
28.ft R
29.TP 1i
30fh
31File handle (handle).
32.ft R
33.TP 1i
34datatype
35Data type (handle).
36
37
38.SH OUTPUT PARAMETERS
39.ft R
40.TP 1i
41extent
42Data type extent (integer).
43.TP 1i
44IERROR
45Fortran only: Error status (integer).
46
47.SH DESCRIPTION
48.ft R
49MPI_File_get_type_extent can be used to calculate \fIextent\fP for \fIdatatype\fP in the file. The extent is the same for all processes accessing the file associated with \fIfh\fP. If the current view uses a user-defined data representation, MPI_File_get_type_extent uses the \fIdtype_file_extent_fn\fP callback to calculate the extent.
50
51.SH FORTRAN 77 NOTES
52.ft R
53The MPI standard prescribes portable Fortran syntax for
54the \fIEXTENT\fP argument only for Fortran 90. FORTRAN 77
55users may use the non-portable syntax
56.sp
57.nf
58     INTEGER*MPI_ADDRESS_KIND \fIEXTENT\fP
59.fi
60.sp
61where MPI_ADDRESS_KIND is a constant defined in mpif.h
62and gives the length of the declared integer in bytes.
63
64.SH NOTES
65.ft R
66If the file data representation is other than "native," care must be taken in constructing etypes and file types. Any of the data-type constructor functions may be used; however, for those functions that accept displacements in bytes, the displacements must be specified in terms of their values in the file for the file data representation being used. MPI will interpret these byte displacements as is; no scaling will be done. The function MPI_File_get_type_extent can be used to calculate the extents of data types in the file. For etypes and  file types that are portable data types, MPI will scale any displacements in the data types to match the file data representation. Data types passed as arguments to read/write routines specify the data layout in memory; therefore, they must always be constructed using displacements corresponding to displacements in memory.
67
68.SH ERRORS
69Almost 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.
70.sp
71Before the error value is returned, the current MPI error handler is
72called. For MPI I/O function errors, the default error handler is set to MPI_ERRORS_RETURN. The error handler may be changed with MPI_File_set_errhandler; the predefined error handler MPI_ERRORS_ARE_FATAL may be used to make I/O errors fatal. Note that MPI does not guarantee that an MPI program can continue past an error. 
73
Note: See TracBrowser for help on using the repository browser.