source: proiecte/hpl/openmpi_compiled/share/man/man3/MPI_File_set_view.3 @ 97

Last change on this file since 97 was 97, checked in by (none), 14 years ago

Adding compiled files

File size: 5.7 KB
Line 
1.\"Copyright 2006-2008 Sun Microsystems, Inc.
2.\" Copyright (c) 1996 Thinking Machines Corporation
3.TH MPI_File_set_view 3 "Dec 08, 2009" "1.4" "Open MPI"
4.SH NAME
5\fBMPI_File_set_view\fP \- Changes process's view of data in file (collective).
6.SH SYNTAX
7.ft R
8.nf
9C Syntax
10    #include <mpi.h>
11    int MPI_File_set_view(MPI_File \fIfh\fP, MPI_Offset \fIdisp\fP,
12              MPI_Datatype \fIetype\fP, MPI_Datatype \fIfiletype\fP,
13              char \fI*datarep\fP, MPI_Info \fIinfo\fP)
14
15Fortran Syntax (see FORTRAN 77 NOTES)
16    INCLUDE 'mpif.h'
17    MPI_FILE_SET_VIEW(\fIFH\fP,\fI DISP\fP,\fI ETYPE\fP,
18              \fI FILETYPE\fP, \fIDATAREP\fP, \fIINFO\fP,\fI IERROR\fP)
19         INTEGER \fIFH, ETYPE, FILETYPE, INFO, IERROR\fP
20         CHARACTER*(*) \fIDATAREP\fP
21         INTEGER(KIND=MPI_OFFSET_KIND) \fIDISP\fP
22
23.SH C++ Syntax
24.nf
25#include <mpi.h>
26void MPI::File::Set_view(MPI::Offset \fIdisp\fP,
27        const MPI::Datatype& \fIetype\fP,
28        const MPI::Datatype& \fIfiletype\fP, const char* \fIdatarep\fP,
29        const MPI::Info& \fIinfo\fP)
30
31.SH INPUT/OUTPUT PARAMETER
32.ft R
33.TP 1i
34fh
35File handle (handle).
36
37.SH INPUT PARAMETERS
38.ft R
39.TP 1i
40disp 
41Displacement (integer).
42.TP 1i
43etype
44Elementary data type (handle).
45.TP 1i
46filetype
47File type (handle). See Restrictions, below.
48.TP 1i
49datarep
50Data representation (string).
51.TP 1i
52info
53Info object (handle).
54
55.SH OUTPUT PARAMETER
56.ft R
57.TP 1i
58IERROR
59Fortran only: Error status (integer).
60
61.SH DESCRIPTION
62.ft R
63The MPI_File_set_view routine changes the process's view of the data
64in the file -- the beginning of the data accessible in the file through
65that view is set to
66.I disp;
67the type of data is set to
68.I etype;
69and the distribution of data to processes is set to
70.I filetype.
71In addition, MPI_File_set_view resets the independent file pointers and
72the shared file pointer to zero. MPI_File_set_view is collective; all
73processes in the group must pass identical values for
74.I fh
75and
76.I etype;
77values for
78.I disp,
79.I filetype,
80and
81.I info
82may vary. It is erroneous to use the shared file pointer data-access
83routines unless identical values for
84.I disp
85and
86.I filetype
87are also given. The data types passed in
88.I etype
89and
90.I filetype
91must be committed.
92.sp
93The
94.I disp
95displacement argument specifies the position (absolute offset in
96bytes from the beginning of the file) where the view begins.
97.sp
98The 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 (or "native"), pass NULL. The user can also pass information via the \fIinfo\fP argument. See the HINTS section for a list of hints that can be set. For more information, see the MPI-2 standard.
99
100.SH HINTS
101.ft R
102The following hints can be used as values for the \fIinfo\fP argument.
103.sp
104SETTABLE HINTS:
105.sp
106- MPI_INFO_NULL
107.sp
108- shared_file_timeout: Amount of time (in seconds) to wait for access to the
109shared file pointer before exiting with MPI_ERR_TIMEDOUT.
110.sp
111- rwlock_timeout: Amount of time (in seconds) to wait for obtaining a read or
112write lock on a contiguous chunk of a UNIX file before exiting with MPI_ERR_TIMEDOUT.
113.sp
114- noncoll_read_bufsize:  Maximum size of the buffer used by
115MPI I/O to satisfy read requests in
116the noncollective data-access routines. (See NOTE, below.)
117.sp
118- noncoll_write_bufsize: Maximum size of the buffer used by
119MPI I/O to satisfy write requests in
120the noncollective data-access routines. (See NOTE, below.)
121.sp
122- coll_read_bufsize:  Maximum size of the buffer used by MPI
123I/O to satisfy read requests in the
124collective data-access routines. (See NOTE, below.)
125.sp
126- coll_write_bufsize:  Maximum size of the buffer used by MPI
127I/O to satisfy write requests in the
128collective data-access routines. (See NOTE, below.)
129.sp
130NOTE: A buffer size smaller than the distance (in bytes) in a UNIX file between the first byte and the last byte of the access request causes MPI I/O to iterate and perform multiple UNIX read() or write() calls. If the request includes multiple noncontiguous chunks of data, and the buffer size is greater than the size of those chunks, then the UNIX read() or write() (made at the MPI I/O level) will access data not requested by this process in order to reduce the total number of write() calls made. If this is not desirable behavior, you should reduce this buffer size to equal the size of the contiguous chunks within the aggregate request.
131.sp
132- mpiio_concurrency: (boolean) controls whether nonblocking
133I/O routines can bind an extra thread to an LWP.
134.sp
135- mpiio_coll_contiguous: (boolean) controls whether subsequent collective data accesses will request collectively contiguous regions of the file.
136.sp
137NON-SETTABLE HINTS:
138.sp
139- filename: Access this hint to get the name of the file.
140
141.SH FORTRAN 77 NOTES
142.ft R
143The MPI standard prescribes portable Fortran syntax for
144the \fIDISP\fP argument only for Fortran 90.  FORTRAN 77
145users may use the non-portable syntax
146.sp
147.nf
148     INTEGER*MPI_OFFSET_KIND \fIDISP\fP
149.fi
150.sp
151where MPI_OFFSET_KIND is a constant defined in mpif.h
152and gives the length of the declared integer in bytes.
153
154.SH ERRORS
155Almost all MPI routines return an error value; C routines as the value of the function and Fortran routines in the last argument. C++ functions do not return errors. If the default error handler is set to MPI::ERRORS_THROW_EXCEPTIONS, then on error the C++ exception mechanism will be used to throw an MPI:Exception object.
156.sp
157Before the error value is returned, the current MPI error handler is
158called. For MPI I/O function errors, the default error handler is set to MPI_ERRORS_RETURN. The error handler may be changed with MPI_File_set_errhandler; the predefined error handler MPI_ERRORS_ARE_FATAL may be used to make I/O errors fatal. Note that MPI does not guarantee that an MPI program can continue past an error. 
159
160
Note: See TracBrowser for help on using the repository browser.