Rate This Document
Findability
Accuracy
Completeness
Readability

Getting the Range of a Data Type in a File

Function Syntax

MPI_File_get_type_extent(MPI_File fh, MPI_Datatype datatype, MPI_Aint *extent)

PMPI_File_get_type_extent(MPI_File fh, MPI_Datatype datatype, MPI_Aint *extent)

Parameters

Parameter

Description

Value Range

Input/Output

fh

File (handle)

Non-empty

Input

datatype

Data type (handle)

Non-empty

Input

*extent

Data type range

Non-empty

Output

Return Value

  • Success: MPI_SUCCESS
  • Failure: An error code is returned.

Error Code

Error Code

Description

MPI_ERR_FILE

Invalid file handle

Notes

Only basic data types and data types generated by APIs provided by Hyper IO are supported.