Noncollective coordination |
Collective coordination |
---|---|
MPI_File_get_view |
MPI_File_set_view |
The MPI_File_set_view routine changes the process's view of the data in the file, specifying its displacement, elementary data type, and file type, as well as setting the individual file pointers and shared file pointer to 0. MPI_File_set_view is a collective routine; all processes in the group must pass identical values for the file handle and the elementary data type, although the values for the displacement, the file type, and the info object may vary. However, if you use the data-access routines that use file positioning with a shared file pointer, you must also give the displacement and the file type identical values. The data types passed in as the elementary data type and the file type must be committed.
You can also specify the type of data representation for the file. See "File Interoperability" for information about registering data representation identifiers.
Displacements within the file type and the elementary data type must be monotonically nondecreasing.