Updating a File Pointer in Non-collective Mode
Function Syntax
MPI_File_seek(MPI_File fh, MPI_Offset offset, int whence)
PMPI_File_seek(MPI_File fh, MPI_Offset offset, int whence)
Parameters
Parameter |
Description |
Value Range |
Input/Output |
|---|---|---|---|
fh |
File (handle) |
Non-empty |
Input |
offset |
Offset |
Non-negative integer |
Input |
whence |
Update mode |
MPI_SEEK_SET MPI_SEEK_CUR |
Input |
Return Value
- Success: MPI_SUCCESS
- Failure: An error code is returned.
Error Code
Error Code |
Description |
|---|---|
MPI_ERR_FILE |
Invalid file handle |
Parent topic: Information Setting and Access