1 | .\"Copyright 2006-2008 Sun Microsystems, Inc. |
---|
2 | .\" Copyright (c) 1996 Thinking Machines Corporation |
---|
3 | .TH MPI_File_read_ordered 3 "Dec 08, 2009" "1.4" "Open MPI" |
---|
4 | .SH NAME |
---|
5 | \fBMPI_File_read_ordered\fP \- Reads a file at a location specified by a shared file pointer (blocking, collective). |
---|
6 | |
---|
7 | .SH SYNTAX |
---|
8 | .ft R |
---|
9 | C Syntax |
---|
10 | .nf |
---|
11 | #include <mpi.h> |
---|
12 | int MPI_File_read_ordered(MPI_File \fIfh\fP, void \fI*buf\fP, |
---|
13 | int \fIcount\fP, MPI_Datatype \fIdatatype\fP, |
---|
14 | MPI_Status \fI*status\fP) |
---|
15 | |
---|
16 | Fortran Syntax |
---|
17 | INCLUDE 'mpif.h' |
---|
18 | MPI_FILE_READ_ORDERED(\fIFH\fP,\fI BUF\fP,\fI COUNT\fP,\fI DATATYPE\fP, |
---|
19 | \fISTATUS\fP,\fI IERROR\fP) |
---|
20 | <type> \fIBUF\fP(*) |
---|
21 | INTEGER \fIFH, COUNT, DATATYPE, STATUS(MPI_STATUS_SIZE), IERROR\fP |
---|
22 | |
---|
23 | .SH C++ Syntax |
---|
24 | .nf |
---|
25 | #include <mpi.h> |
---|
26 | void MPI::File::Read_ordered(void* \fIbuf\fP, int \fIcount\fP, |
---|
27 | const MPI::Datatype& \fIdatatype\fP, MPI::Status& \fIstatus\fP) |
---|
28 | |
---|
29 | void MPI::File::Read_ordered(void* \fIbuf\fP, int \fIcount\fP, |
---|
30 | const MPI::Datatype& \fIdatatype\fP) |
---|
31 | |
---|
32 | .SH INPUT PARAMETERS |
---|
33 | .ft R |
---|
34 | .TP 1i |
---|
35 | fh |
---|
36 | File handle (handle). |
---|
37 | .TP 1i |
---|
38 | count |
---|
39 | Number of elements in buffer (integer). |
---|
40 | .TP 1i |
---|
41 | datatype |
---|
42 | Data type of each buffer element (handle). |
---|
43 | |
---|
44 | .SH OUTPUT PARAMETERS |
---|
45 | .ft R |
---|
46 | .TP 1i |
---|
47 | buf |
---|
48 | Initial address of buffer (choice). |
---|
49 | .TP 1i |
---|
50 | status |
---|
51 | Status object (Status). |
---|
52 | .TP 1i |
---|
53 | IERROR |
---|
54 | Fortran only: Error status (integer). |
---|
55 | |
---|
56 | .SH DESCRIPTION |
---|
57 | .ft R |
---|
58 | |
---|
59 | MPI_File_read_ordered is a collective routine. This routine must be |
---|
60 | called by all processes in the communicator group associated with the |
---|
61 | file handle |
---|
62 | .I fh. |
---|
63 | Each process may pass different argument values for the |
---|
64 | .I datatype |
---|
65 | and |
---|
66 | .I count |
---|
67 | arguments. Each process attempts to read, from the file associated with |
---|
68 | .I fh, |
---|
69 | a total number of |
---|
70 | .I count |
---|
71 | data items having |
---|
72 | .I datatype |
---|
73 | type into the user's buffer |
---|
74 | .I buf. |
---|
75 | 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. MPI_File_read_ordered returns the actual number of |
---|
76 | .I datatype |
---|
77 | elements read in |
---|
78 | .I status. |
---|
79 | The shared file pointer is updated by the amounts of data requested by all processes of the group. |
---|
80 | |
---|
81 | .SH ERRORS |
---|
82 | 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. |
---|
83 | .sp |
---|
84 | Before the error value is returned, the current MPI error handler is |
---|
85 | 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. |
---|
86 | |
---|