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

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

Adding compiled files

File size: 3.3 KB
Line 
1.\"Copyright 2006-2008 Sun Microsystems, Inc.
2.\" Copyright (c) 1996 Thinking Machines Corporation
3.TH MPI_File_write_at 3 "Dec 08, 2009" "1.4" "Open MPI"
4.SH NAME
5\fBMPI_File_write_at\fP \- Writes a file at an explicitly specified offset (blocking, noncollective).
6
7.SH SYNTAX
8.ft R
9.nf
10C Syntax
11    #include <mpi.h>
12    int MPI_File_write_at(MPI_File \fIfh\fP, MPI_Offset \fIoffset\fP, void \fI*buf\fP,
13              int \fIcount\fP, MPI_Datatype \fIdatatype\fP, MPI_Status \fI*status\fP)
14
15Fortran Syntax (see FORTRAN 77 NOTES)
16    INCLUDE 'mpif.h'
17    MPI_FILE_WRITE_AT(\fIFH\fP, \fI OFFSET\fP, \fI BUF\fP, \fICOUNT\fP,
18              \fI DATATYPE\fP, \fISTATUS\fP, \fI IERROR\fP)
19         <type> \fIBUF\fP(*)
20         INTEGER \fIFH, COUNT, DATATYPE, STATUS(MPI_STATUS_SIZE), IERROR\fP
21         INTEGER(KIND=MPI_OFFSET_KIND) \fIOFFSET\fP
22
23.SH C++ Syntax
24.nf
25#include <mpi.h>
26void MPI::File::Write_at(MPI::Offset \fIoffset\fP, const void* \fIbuf\fP,
27        int \fIcount\fP, const MPI::Datatype& \fIdatatype\fP, MPI::Status& \fIstatus\fP)
28
29void MPI::File::Write_at(MPI::Offset \fIoffset\fP, const void* \fIbuf\fP,
30        int \fIcount\fP, const MPI::Datatype& \fIdatatype\fP)
31
32.SH INPUT PARAMETERS
33.ft R
34.TP 1i
35fh
36File handle (handle).
37.TP 1i
38offset
39File offset (integer).
40.TP 1i
41buf
42Initial address of buffer (choice).
43.TP 1i
44count
45Number of elements in buffer (integer).
46.TP 1i
47datatype
48Data type of each buffer element (handle).
49
50.SH OUTPUT PARAMETERS
51.ft R
52.TP 1i
53status
54Status object (status).
55.TP 1i
56IERROR
57Fortran only: Error status (integer).
58
59.SH DESCRIPTION
60.ft R
61MPI_File_write_at attempts to write into the file associated with
62.I fh
63(at the
64.I offset
65position) a total number of
66.I count
67data items having
68.I datatype
69type from the user's buffer
70.I buf.
71The offset is in
72.I etype
73units relative to the current view. That is, holes are not counted
74when locating an offset. The data is written into those parts of the
75file specified by the current view. MPI_File_write_at stores the
76number of
77.I datatype
78elements actually written in
79.I status.
80All other fields of
81.I status
82are undefined.
83.sp
84It is erroneous to call this function if MPI_MODE_SEQUENTIAL mode was specified when the file was opened.
85
86.SH FORTRAN 77 NOTES
87.ft R
88The MPI standard prescribes portable Fortran syntax for
89the \fIOFFSET\fP argument only for Fortran 90.  FORTRAN 77
90users may use the non-portable syntax
91.sp
92.nf
93     INTEGER*MPI_OFFSET_KIND \fIOFFSET\fP
94.fi
95.sp
96where MPI_OFFSET_KIND is a constant defined in mpif.h
97and gives the length of the declared integer in bytes.
98
99.SH ERRORS
100Almost 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.
101.sp
102Before the error value is returned, the current MPI error handler is
103called. 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. 
104
105.SH SEE ALSO
106.ft R
107MPI_File_iwrite_at
108.br
109MPI_File_write_at_all
110.br
111MPI_File_write_at_all_begin
112.br
113MPI_File_write_at_all_end
114.br
115
Note: See TracBrowser for help on using the repository browser.