[97] | 1 | .\"Copyright 2006-2008 Sun Microsystems, Inc. |
---|
| 2 | .\" Copyright (c) 1996 Thinking Machines Corporation |
---|
| 3 | .TH MPI_File_write_at_all_begin 3 "Dec 08, 2009" "1.4" "Open MPI" |
---|
| 4 | .SH NAME |
---|
| 5 | \fBMPI_File_write_at_all_begin\fP \- Writes a file at explicitly specified offsets; beginning part of a split collective routine (nonblocking). |
---|
| 6 | |
---|
| 7 | .SH SYNTAX |
---|
| 8 | .ft R |
---|
| 9 | .nf |
---|
| 10 | C Syntax |
---|
| 11 | #include <mpi.h> |
---|
| 12 | int MPI_File_write_at_all_begin(MPI_File \fIfh\fP, MPI_Offset \fIoffset\fP, |
---|
| 13 | void \fI*buf\fP, int \fIcount\fP, MPI_Datatype \fIdatatype\fP) |
---|
| 14 | |
---|
| 15 | Fortran Syntax (see FORTRAN 77 NOTES) |
---|
| 16 | INCLUDE 'mpif.h' |
---|
| 17 | MPI_FILE_WRITE_AT_ALL_BEGIN(\fIFH\fP, \fIOFFSET\fP, \fIBUF\fP, \fICOUNT\fP, \fIDATATYPE\fP,\fI IERROR\fP) |
---|
| 18 | <TYPE> \fIBUF\fP(*) |
---|
| 19 | INTEGER \fIFH, COUNT, DATATYPE, IERROR\fP |
---|
| 20 | INTEGER(KIND=MPI_OFFSET_KIND) \fIOFFSET\fP |
---|
| 21 | |
---|
| 22 | .SH C++ Syntax |
---|
| 23 | .nf |
---|
| 24 | #include <mpi.h> |
---|
| 25 | void MPI::File::Write_at_all_begin(MPI::Offset \fIoffset\fP, |
---|
| 26 | const void* \fIbuf\fP, int \fIcount\fP, |
---|
| 27 | const MPI::Datatype& \fIdatatype\fP) |
---|
| 28 | |
---|
| 29 | .SH INPUT/OUTPUT PARAMETER |
---|
| 30 | .ft R |
---|
| 31 | .TP 1i |
---|
| 32 | fh |
---|
| 33 | File handle (handle). |
---|
| 34 | |
---|
| 35 | .SH INPUT PARAMETERS |
---|
| 36 | .ft R |
---|
| 37 | .TP 1i |
---|
| 38 | offset |
---|
| 39 | File offset (handle). |
---|
| 40 | .ft R |
---|
| 41 | .TP 1i |
---|
| 42 | buf |
---|
| 43 | Initial address of buffer (choice). |
---|
| 44 | .ft R |
---|
| 45 | .TP 1i |
---|
| 46 | count |
---|
| 47 | Number of elements in buffer (integer). |
---|
| 48 | .ft R |
---|
| 49 | .TP 1i |
---|
| 50 | datatype |
---|
| 51 | Data type of each buffer element (handle). |
---|
| 52 | |
---|
| 53 | .SH OUTPUT PARAMETER |
---|
| 54 | .ft R |
---|
| 55 | .TP 1i |
---|
| 56 | IERROR |
---|
| 57 | Fortran only: Error status (integer). |
---|
| 58 | |
---|
| 59 | .SH DESCRIPTION |
---|
| 60 | .ft R |
---|
| 61 | MPI_File_write_at_all_begin is the beginning part of a split collective, that is, a nonblocking routine that attempts to write into the file associated with |
---|
| 62 | .I fh |
---|
| 63 | (at the |
---|
| 64 | .I offset |
---|
| 65 | position) a total number of |
---|
| 66 | .I count |
---|
| 67 | data items having |
---|
| 68 | .I datatype |
---|
| 69 | type from the user's buffer |
---|
| 70 | .I buf. |
---|
| 71 | The offset is in etype units relative to the current view. That is, holes are not counted |
---|
| 72 | when locating an offset. The data is written into those parts of the |
---|
| 73 | file specified by the current view. |
---|
| 74 | |
---|
| 75 | .SH FORTRAN 77 NOTES |
---|
| 76 | .ft R |
---|
| 77 | The MPI standard prescribes portable Fortran syntax for |
---|
| 78 | the \fIOFFSET\fP argument only for Fortran 90. FORTRAN 77 |
---|
| 79 | users may use the non-portable syntax |
---|
| 80 | .sp |
---|
| 81 | .nf |
---|
| 82 | INTEGER*MPI_OFFSET_KIND \fIOFFSET\fP |
---|
| 83 | .fi |
---|
| 84 | .sp |
---|
| 85 | where MPI_OFFSET_KIND is a constant defined in mpif.h |
---|
| 86 | and gives the length of the declared integer in bytes. |
---|
| 87 | |
---|
| 88 | .SH NOTES |
---|
| 89 | .ft R |
---|
| 90 | All the nonblocking collective routines for data access are "split" into two routines, each with _begin or _end as a suffix. These split collective routines are subject to the semantic rules described in Section 9.4.5 of the MPI-2 standard. |
---|
| 91 | |
---|
| 92 | .SH ERRORS |
---|
| 93 | 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. |
---|
| 94 | .sp |
---|
| 95 | Before the error value is returned, the current MPI error handler is |
---|
| 96 | 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. |
---|
| 97 | |
---|