1 | .\"Copyright 2006-2008 Sun Microsystems, Inc. |
---|
2 | .\" Copyright (c) 1996 Thinking Machines Corporation |
---|
3 | .TH MPI_File_write_at_all 3 "Dec 08, 2009" "1.4" "Open MPI" |
---|
4 | .SH NAME |
---|
5 | \fBMPI_File_write_at_all\fP \- Writes a file at explicitly specified offsets (blocking, collective). |
---|
6 | |
---|
7 | .SH SYNTAX |
---|
8 | .ft R |
---|
9 | .nf |
---|
10 | C Syntax |
---|
11 | #include <mpi.h> |
---|
12 | int MPI_File_write_at_all(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 | |
---|
15 | Fortran Syntax (see FORTRAN 77 NOTES) |
---|
16 | INCLUDE 'mpif.h' |
---|
17 | MPI_FILE_WRITE_AT_ALL(\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> |
---|
26 | void MPI::File::Write_at_all(MPI::Offset \fIoffset\fP, const void* \fIbuf\fP, |
---|
27 | int \fIcount\fP, const MPI::Datatype& \fIdatatype\fP, |
---|
28 | MPI::Status& \fIstatus\fP) |
---|
29 | |
---|
30 | void MPI::File::Write_at_all(MPI::Offset \fIoffset\fP, const void* \fIbuf\fP, |
---|
31 | int \fIcount\fP, const MPI::Datatype& \fIdatatype\fP) |
---|
32 | |
---|
33 | .SH INPUT PARAMETERS |
---|
34 | .ft R |
---|
35 | .TP 1i |
---|
36 | fh |
---|
37 | File handle (handle). |
---|
38 | .TP 1i |
---|
39 | offset |
---|
40 | File offset (integer). |
---|
41 | .TP 1i |
---|
42 | buf |
---|
43 | Initial address of buffer (choice). |
---|
44 | .TP 1i |
---|
45 | count |
---|
46 | Number of elements in buffer (integer). |
---|
47 | .TP 1i |
---|
48 | datatype |
---|
49 | Data type of each buffer element (handle). |
---|
50 | |
---|
51 | .SH OUTPUT PARAMETERS |
---|
52 | .ft R |
---|
53 | .TP 1i |
---|
54 | status |
---|
55 | Status object (status). |
---|
56 | .TP 1i |
---|
57 | IERROR |
---|
58 | Fortran only: Error status (integer). |
---|
59 | |
---|
60 | .SH DESCRIPTION |
---|
61 | .ft R |
---|
62 | MPI_File_write_at_all is a collective routine that attempts to write into the file associated with |
---|
63 | .I fh |
---|
64 | (at the |
---|
65 | .I offset |
---|
66 | position) a total number of |
---|
67 | .I count |
---|
68 | data items having |
---|
69 | .I datatype |
---|
70 | type from the user's buffer |
---|
71 | .I buf. |
---|
72 | The offset is in etype units relative to the current view. That is, holes are not counted |
---|
73 | when locating an offset. The data is written into those parts of the |
---|
74 | file specified by the current view. MPI_File_write_at_all stores the |
---|
75 | number of |
---|
76 | .I datatype |
---|
77 | elements actually written in |
---|
78 | .I status. |
---|
79 | All other fields of |
---|
80 | .I status |
---|
81 | are undefined. |
---|
82 | .sp |
---|
83 | It is erroneous to call this function if MPI_MODE_SEQUENTIAL mode was specified when the file was opened. |
---|
84 | |
---|
85 | .SH FORTRAN 77 NOTES |
---|
86 | .ft R |
---|
87 | The MPI standard prescribes portable Fortran syntax for |
---|
88 | the \fIOFFSET\fP argument only for Fortran 90. FORTRAN 77 |
---|
89 | users may use the non-portable syntax |
---|
90 | .sp |
---|
91 | .nf |
---|
92 | INTEGER*MPI_OFFSET_KIND \fIOFFSET\fP |
---|
93 | .fi |
---|
94 | .sp |
---|
95 | where MPI_OFFSET_KIND is a constant defined in mpif.h |
---|
96 | and gives the length of the declared integer in bytes. |
---|
97 | |
---|
98 | .SH ERRORS |
---|
99 | Almost 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. |
---|
100 | .sp |
---|
101 | Before the error value is returned, the current MPI error handler is |
---|
102 | called. 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. |
---|
103 | |
---|