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

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

Adding compiled files

File size: 4.5 KB
Line 
1.\"Copyright 2006-2008 Sun Microsystems, Inc.
2.\" Copyright (c) 1996 Thinking Machines Corporation
3.TH MPI_Register_datarep 3 "Dec 08, 2009" "1.4" "Open MPI"
4.SH NAME
5\fBMPI_Register_datarep\fP \- Defines data representation.
6
7
8
9.SH SYNTAX
10.ft R
11.nf
12C Syntax
13    #include <mpi.h>
14    int MPI_Register_datarep(char \fI*datarep\fP,
15              MPI_Datarep_conversion_function \fI*read_conversion_fn\fP,
16              MPI_Datarep_conversion_function \fI*write_conversion_fn\fP,
17              MPI_Datarep_extent_function \fI*dtype_file_extent_fn\fP,
18              void \fI*extra_state\fP)
19
20Fortran Syntax
21    INCLUDE 'mpif.h'
22    MPI_REGISTER_DATAREP(\fIDATAREP\fP, \fIREAD_CONVERSION_FN\fP,
23        \fIWRITE_CONVERSION_FN\fP, \fIDTYPE_FILE_EXTENT_FN\fP,
24        \fIEXTRA_STATE\fP,\fI IERROR\fP)
25                CHARACTER*(*) \fIDATAREP\fP
26                EXTERNAL \fIREAD_CONVERSION_FN, WRITE_CONVERSION_FN,
27                         DTYPE_FILE_EXTENT_FN\fP
28                INTEGER \fIIERROR\fP
29                INTEGER(KIND=MPI_ADDRESS_KIND) \fIEXTRA_STATE\fP
30
31.SH C++ Syntax
32.nf
33#include <mpi.h>
34void MPI::Register_datarep(const char* \fIdatarep\fP,
35        MPI::Datarep_conversion_function* \fIread_conversion_fn\fP,
36        MPI::Datarep_conversion_function* \fIwrite_conversion_fn\fP,
37        MPI::Datarep_extent_function* \fIdtype_file_extent_fn\fP,
38        void* \fIextra_state\fP)
39
40.SH INPUT PARAMETERS
41.ft R
42.TP 1i
43datarep
44Data representation identifier (string).
45.ft R
46.TP 1i
47read_conversion_fn
48Function invoked to convert from file representation to native representation (function).
49.ft R
50.TP 1i
51write_conversion_fn
52Function invoked to convert from native representation to file representation (function).
53.ft R
54.TP 1i
55dtype_file_extent_fn
56Function invoked to get the extent of a data type as represented in the file (function).
57.ft R
58.TP 1i
59extra_state
60Extra state.
61
62.SH OUTPUT PARAMETER
63.ft R
64.TP 1i
65IERROR
66Fortran only: Error status (integer).
67
68.SH DESCRIPTION
69.ft R
70MPI_Register_datarep defines a data representation. It associates the data representation's identifier (a string) with the functions that convert from file representation to the native representation and vice versa, with the function that gets the extent of a data type as represented in the file, as well as with "extra state," which is used for passing arguments. Once a data representation has been registered using this routine, you may specify its identifier as an argument to MPI_File_set_view, causing subsequent data-access operations to call the specified conversion functions.
71
72The call associates \fIread_conversion_fn\fP, \fIwrite_conversion_fn\fP, and \fIdtype_file_extent_fn\fP with the data representation identifier \fIdatarep\fP. \fIdatarep\fP can then be used as an argument to MPI_File_set_view, causing subsequent data access operations to call the conversion functions to convert all data items accessed between file data representation and native representation. MPI_Register_datarep is a local operation and only registers the data representation for the calling MPI process. If \fIdatarep\fP is already defined, an error in the error class MPI_ERR_DUP_DATAREP is raised using the default file error handler. The length of a data representation string is limited to the value of MPI_MAX_DATAREP_STRING. MPI_MAX_DATAREP_STRING must have a value of at least 64. No routines are provided to delete data representations and free the associated resources; it is not expected that an application will generate them in significant numbers.
73
74.SH NOTES
75.ft R
76
77The Fortran version of each MPI I/O routine includes a final argument,
78IERROR, which is not defined in the PARAMETERS sections. This argument is used to return the error status of the routine in the manner typical for Fortran library routines.
79.sp
80The C version of each routine returns an error status as an integer return value.
81.sp
82Error classes are found in mpi.h (for C), mpif.h (for Fortran), and mpi++.h (for C++).
83
84.SH ERRORS
85Almost 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.
86.sp
87Before the error value is returned, the current MPI error handler is
88called. 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. 
89
Note: See TracBrowser for help on using the repository browser.