'\" t .\" Man page generated from reStructuredText .\" by the Docutils 0.23 manpage writer. . . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .TH "MPI_FILE_SET_VIEW" "3" "Nov 07, 2026" "" "Open MPI" .SH NAME MPI_File_set_view \- Changes process's view of data in file .sp MPI_File_set_view — Changes process\(aqs view of data in file (collective). .SH INPUT/OUTPUT PARAMETER .INDENT 0.0 .IP \(bu 2 \fBfh\fP: File handle (handle). .UNINDENT .SH INPUT PARAMETERS .INDENT 0.0 .IP \(bu 2 \fBdisp\fP: Displacement (integer). .IP \(bu 2 \fBetype\fP: Elementary data type (handle). .IP \(bu 2 \fBfiletype\fP: File type (handle). See Restrictions, below. .IP \(bu 2 \fBdatarep\fP: Data representation (string). .IP \(bu 2 \fBinfo\fP: Info object (handle). .UNINDENT .SH OUTPUT PARAMETER .INDENT 0.0 .IP \(bu 2 \fBierror\fP: Fortran only: Error status (integer). .UNINDENT .SH DESCRIPTION .sp The MPI_File_set_view routine changes the process\(aqs view of the data in the file — the beginning of the data accessible in the file through that view is set to \fIdisp;\fP the type of data is set to \fIetype;\fP and the distribution of data to processes is set to \fIfiletype.\fP In addition, MPI_File_set_view resets the independent file pointers and the shared file pointer to zero. MPI_File_set_view is collective across the \fIfh\fP; all processes in the group must pass identical values for \fIdatarep\fP and provide an \fIetype\fP with an identical extent. The values for \fIdisp\fP, \fIfiletype\fP, and \fIinfo\fP may vary. It is erroneous to use the shared file pointer data\-access routines unless identical values for \fIdisp\fP and \fIfiletype\fP are also given. The data types passed in \fIetype\fP and \fIfiletype\fP must be committed. .sp The \fIdisp\fP displacement argument specifies the position (absolute offset in bytes from the beginning of the file) where the view begins. .sp The MPI_File_set_view interface allows the user to pass a data\-representation string to MPI I/O via the \fIdatarep\fP argument. To obtain the default value pass the value \(dqnative\(dq. The user can also pass information via the \fIinfo\fP argument. See the HINTS section for a list of hints that can be set. .SH HINTS .sp MPI allows applications to pass \fBMPI_Info\fP hints to MPI_File_open \%<#\:mpi-file-open>, MPI_File_set_view, and MPI_File_set_info \%<#\:mpi-file-set-info>\&. Hints are advisory: OMPIO may ignore hints that are not supported in the selected component stack. The MPI_File_get_info \%<#\:mpi-file-get-info> routine returns a new \fBMPI_Info\fP object containing the public hints that OMPIO currently associates with the file. The caller is responsible for freeing that returned object with MPI_Info_free \%<#\:mpi-info-free>\&. .sp OMPIO preserves the spelling of a supported hint that was accepted from the user\(aqs \fBMPI_Info\fP object. When OMPIO reports an internal default that did not come from a user\-supplied hint, it uses the canonical public spelling shown below. .SS OMPIO common hints .TS box center; l|l|l|l. T{ Hint T} T{ Accepted by T} T{ Default / MCA parameter T} T{ Notes T} _ T{ \fBcb_buffer_size\fP T} T{ \fBMPI_File_open\fP, \fBMPI_File_set_info\fP, \fBMPI_File_set_view\fP T} T{ \fBio_ompio_bytes_per_agg\fP T} T{ Size, in bytes, of the temporary collective I/O buffer on each aggregator. T} _ T{ \fBcb_nodes\fP T} T{ \fBMPI_File_open\fP, \fBMPI_File_set_info\fP, \fBMPI_File_set_view\fP T} T{ \fBio_ompio_num_aggregators\fP when that MCA parameter is set to a non\-negative value. T} T{ Number of collective I/O aggregators. When OMPIO is using its automatic aggregator selection, this hint is not returned as \fB\-1\fP\&. T} _ T{ \fBcollective_buffering\fP T} T{ \fBMPI_File_open\fP, \fBMPI_File_set_info\fP, \fBMPI_File_set_view\fP T} T{ \fBtrue\fP T} T{ Controls whether collective buffering is enabled for collective I/O decisions. T} .TE .SS \fBsharedfp\fP component hints .TS box center; l|l|l|l|l. T{ Component T} T{ Hint T} T{ Accepted by T} T{ Default / MCA parameter T} T{ Notes T} _ T{ \fBsharedfp/individual\fP T} T{ \fBOMPIO_SHAREDFP_RELAXED_ORDERING\fP T} T{ \fBMPI_File_open\fP T} T{ No default; no corresponding MCA parameter. T} T{ If present on a write\-capable file open, this hint raises the priority of the \fBindividual\fP shared file pointer component. OMPIO reports it only when that component is selected for the file. T} .TE .SS Lustre \fBfs\fP component hints .sp The Lustre layout hints affect file layout creation. Lustre applies these settings only when a file is created in a mode where layout can be set safely; changing them after a file has been opened does not change the already\-created file layout. .TS box center; l|l|l|l|l. T{ Canonical hint T} T{ Accepted alias T} T{ Accepted by T} T{ Default / MCA parameter T} T{ Notes T} _ T{ \fBstriping_unit\fP T} T{ \fBstripe_size\fP T} T{ \fBMPI_File_open\fP T} T{ \fBfs_lustre_stripe_size\fP when greater than zero. T} T{ Stripe size in bytes. T} _ T{ \fBstriping_factor\fP T} T{ \fBstripe_width\fP T} T{ \fBMPI_File_open\fP T} T{ \fBfs_lustre_stripe_width\fP when greater than zero. T} T{ Number of Lustre object storage targets to stripe across. T} .TE .sp If an application supplies an alias, MPI_File_get_info \%<#\:mpi-file-get-info> returns the alias spelling. If both a canonical hint and its alias are supplied, OMPIO prefers the canonical spelling. If only an MCA parameter supplies the value, OMPIO reports the canonical spelling. .SS GPFS \fBfs\fP component hints .sp The GPFS component accepts the hints listed below when the GPFS component is built and selected. These hints are consumed when the file is opened. Later \fBMPI_File_set_info\fP or \fBMPI_File_set_view\fP calls do not reapply them to GPFS, and MPI_File_get_info \%<#\:mpi-file-get-info> continues to report the open\-time accepted values. .TS box center; l|l|l|l. T{ Hint T} T{ Accepted by T} T{ Default / MCA parameter T} T{ Notes T} _ T{ \fBuseSIOXLib\fP T} T{ \fBMPI_File_open\fP T} T{ No default; no corresponding MCA parameter. T} T{ Enables optional SIOX\-assisted GPFS I/O selection when SIOX support is compiled in. T} _ T{ \fBgpfsAccessRange\fP T} T{ \fBMPI_File_open\fP T} T{ No default; no corresponding MCA parameter. T} T{ Passed to GPFS as an access range hint. T} _ T{ \fBgpfsFreeRange\fP T} T{ \fBMPI_File_open\fP T} T{ No default; no corresponding MCA parameter. T} T{ Passed to GPFS as a free range hint. T} _ T{ \fBgpfsClearFileCache\fP T} T{ \fBMPI_File_open\fP T} T{ No default; no corresponding MCA parameter. T} T{ Requests GPFS file\-cache clearing. T} _ T{ \fBgpfsCancelHints\fP T} T{ \fBMPI_File_open\fP T} T{ No default; no corresponding MCA parameter. T} T{ Requests cancellation of GPFS hints. T} _ T{ \fBgpfsSetReplication\fP T} T{ \fBMPI_File_open\fP T} T{ No default; no corresponding MCA parameter. T} T{ Passed to GPFS as a replication hint. T} _ T{ \fBgpfsByteRange\fP T} T{ \fBMPI_File_open\fP T} T{ No default; no corresponding MCA parameter. T} T{ Passed to GPFS as a byte range hint. T} _ T{ \fBgpfsRestripeData\fP T} T{ \fBMPI_File_open\fP T} T{ No default; no corresponding MCA parameter. T} T{ Requests GPFS data restriping. T} .TE .sp When SIOX support is compiled in, the GPFS component also accepts: \fBsioxAccessRange\fP, \fBsioxFreeRange\fP, \fBsioxClearFileCache\fP, \fBsioxCancelHints\fP, \fBsioxDataShipStart\fP, \fBsioxDataShipStop\fP, \fBsioxSetReplication\fP, \fBsioxByteRange\fP, and \fBsioxRestripeData\fP\&. .SH ERRORS .sp Almost all MPI routines return an error value; C routines as the return result of the function and Fortran routines in the last argument. .sp Before the error value is returned, the current MPI error handler associated with the communication object (e.g., communicator, window, file) is called. If no communication object is associated with the MPI call, then the call is considered attached to MPI_COMM_SELF and will call the associated MPI error handler. When MPI_COMM_SELF is not initialized (i.e., before MPI_Init \%<#\:mpi-init>/MPI_Init_thread \%<#\:mpi-init-thread>, after MPI_Finalize \%<#\:mpi-finalize>, or when using the Sessions Model exclusively) the error raises the initial error handler. The initial error handler can be changed by calling MPI_Comm_set_errhandler \%<#\:mpi-comm-set-errhandler> on MPI_COMM_SELF when using the World model, or the mpi_initial_errhandler CLI argument to mpiexec or info key to MPI_Comm_spawn \%<#\:mpi-comm-spawn>/MPI_Comm_spawn_multiple \%<#\:mpi-comm-spawn-multiple>\&. If no other appropriate error handler has been set, then the MPI_ERRORS_RETURN error handler is called for MPI I/O functions and the MPI_ERRORS_ABORT error handler is called for all other MPI functions. .sp Open MPI includes three predefined error handlers that can be used: .INDENT 0.0 .IP \(bu 2 \fBMPI_ERRORS_ARE_FATAL\fP Causes the program to abort all connected MPI processes. .IP \(bu 2 \fBMPI_ERRORS_ABORT\fP An error handler that can be invoked on a communicator, window, file, or session. When called on a communicator, it acts as if MPI_Abort \%<#\:mpi-abort> was called on that communicator. If called on a window or file, acts as if MPI_Abort \%<#\:mpi-abort> was called on a communicator containing the group of processes in the corresponding window or file. If called on a session, aborts only the local process. .IP \(bu 2 \fBMPI_ERRORS_RETURN\fP Returns an error code to the application. .UNINDENT .sp MPI applications can also implement their own error handlers by calling: .INDENT 0.0 .IP \(bu 2 MPI_Comm_create_errhandler \%<#\:mpi-comm-create-errhandler> then MPI_Comm_set_errhandler \%<#\:mpi-comm-set-errhandler> .IP \(bu 2 MPI_File_create_errhandler \%<#\:mpi-file-create-errhandler> then MPI_File_set_errhandler \%<#\:mpi-file-set-errhandler> .IP \(bu 2 MPI_Session_create_errhandler \%<#\:mpi-session-create-errhandler> then MPI_Session_set_errhandler \%<#\:mpi-session-set-errhandler> or at MPI_Session_init \%<#\:mpi-session-init> .IP \(bu 2 MPI_Win_create_errhandler \%<#\:mpi-win-create-errhandler> then MPI_Win_set_errhandler \%<#\:mpi-win-set-errhandler> .UNINDENT .sp Note that MPI does not guarantee that an MPI program can continue past an error. .sp See the MPI man page \%<#\:open-mpi> for a full list of MPI error codes \%<#\:open-mpi-errors>\&. .sp See the Error Handling section of the MPI\-5.0 standard for more information. .SH Author The Open MPI community .SH Copyright 2003-2026, The Open MPI Community .\" End of generated man page.