MPI_Datarep_conversion_function callback function
This function is a place holder for the user-defind functions to converts from file data representation to native representation and vice versa.
Syntax
int MPI_Datarep_conversion_function(
_Inout_ void *userbuf,
MPI_Datatype datatype,
int count,
_Inout_ void *filebuf,
MPI_Offset position,
_In_ void *extra_state
);
Parameters
userbuf
Native buffer.datatype
Datatype of the elements.count
Number of elements.filebuf
File buffer.position
Position in the read buffer.extra_state [in]
Extra state.
Return value
The conversion functions should return an error code. If the returned error code has a value other than MPI_SUCCESS, the implementation will raise an error in the class MPI_ERR_CONVERSION.
Fortran
SUBROUTINE DATAREP_CONVERSION_FUNCTION(USERBUF, DATATYPE, COUNT, FILEBUF,
POSITION, EXTRA_STATE, IERROR)
<TYPE> USERBUF(*), FILEBUF(*)
INTEGER COUNT, DATATYPE, IERROR
INTEGER(KIND=MPI_OFFSET_KIND) POSITION
INTEGER(KIND=MPI_ADDRESS_KIND) EXTRA_STATE
Requirements
Product |
HPC Pack 2012 MS-MPI Redistributable Package, HPC Pack 2008 R2 MS-MPI Redistributable Package, HPC Pack 2008 MS-MPI Redistributable Package or HPC Pack 2008 Client Utilities |
Header |
Mpi.h; Mpif.h |