[97] | 1 | .\"Copyright 2006-2008 Sun Microsystems, Inc. |
---|
| 2 | .\" Copyright (c) 1996 Thinking Machines Corporation |
---|
| 3 | .TH MPI_File_read_ordered_begin 3 "Dec 08, 2009" "1.4" "Open MPI" |
---|
| 4 | .SH NAME |
---|
| 5 | \fBMPI_File_read_ordered_begin\fP \- Reads a file at a location specified by a shared file pointer; 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_read_ordered_begin(MPI_File \fIfh\fP, void \fI*buf\fP, |
---|
| 13 | int \fIcount\fP, MPI_Datatype \fIdatatype\fP) |
---|
| 14 | |
---|
| 15 | Fortran Syntax |
---|
| 16 | INCLUDE 'mpif.h' |
---|
| 17 | MPI_FILE_READ_ORDERED_BEGIN(\fIFH\fP, \fIBUF\fP, \fICOUNT\fP, \fIDATATYPE\fP,\fI IERROR\fP) |
---|
| 18 | <type> BUF(*) |
---|
| 19 | INTEGER FH, COUNT, DATATYPE, IERROR |
---|
| 20 | |
---|
| 21 | .SH C++ Syntax |
---|
| 22 | .nf |
---|
| 23 | #include <mpi.h> |
---|
| 24 | void MPI::File::Read_ordered_begin(void* \fIbuf\fP, int \fIcount\fP, |
---|
| 25 | const MPI::Datatype& \fIdatatype\fP) |
---|
| 26 | |
---|
| 27 | .SH INPUT/OUTPUT PARAMETER |
---|
| 28 | .ft R |
---|
| 29 | .TP 1i |
---|
| 30 | fh |
---|
| 31 | File handle (handle). |
---|
| 32 | |
---|
| 33 | .SH INPUT PARAMETERS |
---|
| 34 | .ft R |
---|
| 35 | .TP 1i |
---|
| 36 | count |
---|
| 37 | Number of elements in buffer (integer). |
---|
| 38 | .ft R |
---|
| 39 | .TP 1i |
---|
| 40 | datatype |
---|
| 41 | Data type of each buffer element (handle). |
---|
| 42 | |
---|
| 43 | .SH OUTPUT PARAMETERS |
---|
| 44 | .ft R |
---|
| 45 | .TP 1i |
---|
| 46 | buf |
---|
| 47 | Initial address of buffer (choice). |
---|
| 48 | .TP 1i |
---|
| 49 | IERROR |
---|
| 50 | Fortran only: Error status (integer). |
---|
| 51 | |
---|
| 52 | .SH DESCRIPTION |
---|
| 53 | .ft R |
---|
| 54 | MPI_File_read_ordered_begin is the beginning part of a split collective, nonblocking routine that must be |
---|
| 55 | called by all processes in the communicator group associated with the |
---|
| 56 | file handle |
---|
| 57 | .I fh. |
---|
| 58 | Each process may pass different argument values for the |
---|
| 59 | .I datatype |
---|
| 60 | and |
---|
| 61 | .I count |
---|
| 62 | arguments. Each process attempts to read, from the file associated with |
---|
| 63 | .I fh, |
---|
| 64 | a total number of |
---|
| 65 | .I count |
---|
| 66 | data items having |
---|
| 67 | .I datatype |
---|
| 68 | type into the user's buffer |
---|
| 69 | .I buf. |
---|
| 70 | For each process, the location in the file at which data is read is the position at which the shared file pointer would be after all processes whose ranks within the group are less than that of this process had read their data. |
---|
| 71 | |
---|
| 72 | .SH NOTES |
---|
| 73 | .ft R |
---|
| 74 | 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. |
---|
| 75 | |
---|
| 76 | .SH ERRORS |
---|
| 77 | 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. |
---|
| 78 | .sp |
---|
| 79 | Before the error value is returned, the current MPI error handler is |
---|
| 80 | 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. |
---|
| 81 | |
---|