|
| 1 | +.\" -*- nroff -*- |
| 2 | +.\" Copyright 2010 Cisco Systems, Inc. All rights reserved. |
| 3 | +.\" Copyright 2006-2008 Sun Microsystems, Inc. |
| 4 | +.\" Copyright (c) 1996 Thinking Machines Corporation |
| 5 | +.\" $COPYRIGHT$ |
| 6 | +.TH MPI_File_iread_at_all 3 "#OMPI_DATE#" "#PACKAGE_VERSION#" "#PACKAGE_NAME#" |
| 7 | +.SH NAME |
| 8 | +\fBMPI_File_iread_at_all\fP \- Reads a file at an explicitly specified offset (nonblocking, collective). |
| 9 | + |
| 10 | +.SH SYNTAX |
| 11 | +.ft R |
| 12 | +.nf |
| 13 | +C Syntax |
| 14 | + #include <mpi.h> |
| 15 | + int MPI_File_iread_at_all(MPI_File \fIfh\fP, MPI_Offset \fIoffset\fP, |
| 16 | + void \fI*buf\fP, int \fIcount\fP, MPI_Datatype \fIdatatype\fP, |
| 17 | + MPI_Request \fI*request\fP) |
| 18 | + |
| 19 | +.fi |
| 20 | +.SH Fortran Syntax (see FORTRAN 77 NOTES) |
| 21 | +.nf |
| 22 | + INCLUDE 'mpif.h' |
| 23 | + MPI_FILE_IREAD_AT_ALL(\fIFH\fP, \fIOFFSET\fP, \fIBUF\fP, \fICOUNT\fP, \fIDATATYPE\fP, \fIREQUEST\fP, \fIIERROR\fP) |
| 24 | + <type> \fIBUF\fP(*) |
| 25 | + INTEGER \fIFH, COUNT, DATATYPE, REQUEST, IERROR\fP |
| 26 | + INTEGER(KIND=MPI_OFFSET_KIND) \fIOFFSET\fP |
| 27 | + |
| 28 | +.fi |
| 29 | +.SH C++ Syntax |
| 30 | +.nf |
| 31 | +#include <mpi.h> |
| 32 | +MPI::Request MPI::File::Iread_at(MPI::Offset \fIoffset\fP, void* \fIbuf\fP, |
| 33 | + int \fIcount\fP, const MPI::Datatype& \fIdatatype\fP) |
| 34 | + |
| 35 | +.fi |
| 36 | +.SH INPUT PARAMETERS |
| 37 | +.ft R |
| 38 | +.TP 1i |
| 39 | +fh |
| 40 | +File handle (handle). |
| 41 | +.ft R |
| 42 | +.TP 1i |
| 43 | +offset |
| 44 | +File offset (integer). |
| 45 | +.ft R |
| 46 | +.TP 1i |
| 47 | +count |
| 48 | +Number of elements in the buffer (integer). |
| 49 | +.ft R |
| 50 | +.TP 1i |
| 51 | +datatype |
| 52 | +Data type of each buffer element (handle). |
| 53 | + |
| 54 | +.SH OUTPUT PARAMETERS |
| 55 | +.ft R |
| 56 | +.TP 1i |
| 57 | +buf |
| 58 | +Initial address of the buffer (choice). |
| 59 | +.ft R |
| 60 | +.TP 1i |
| 61 | +request |
| 62 | +Request object (handle). |
| 63 | +.TP 1i |
| 64 | +IERROR |
| 65 | +Fortran only: Error status (integer). |
| 66 | + |
| 67 | +.SH DESCRIPTION |
| 68 | +.ft R |
| 69 | +MPI_File_iread_at_all is the nonblocking version of MPI_File_read_at_all. |
| 70 | + |
| 71 | +MPI_File_iread_at_all is a nonblocking routine that attempts to read from the file associated with |
| 72 | +.I fh |
| 73 | +at the |
| 74 | +.I offset |
| 75 | +position a total number of |
| 76 | +.I count |
| 77 | +data items having |
| 78 | +.I datatype |
| 79 | +type into the user's buffer |
| 80 | +.I buf. |
| 81 | +The |
| 82 | +.I offset |
| 83 | +is in etype units relative to the current view. That is, holes are not counted |
| 84 | +when locating an offset. The data is taken out of those parts of the |
| 85 | +file specified by the current view. MPI_File_iread_at_all stores the |
| 86 | +number of |
| 87 | +.I datatype |
| 88 | +elements actually read in |
| 89 | +.I status. |
| 90 | +All other fields of |
| 91 | +.I status |
| 92 | +are undefined. |
| 93 | + |
| 94 | +.SH FORTRAN 77 NOTES |
| 95 | +.ft R |
| 96 | +The MPI standard prescribes portable Fortran syntax for |
| 97 | +the \fIOFFSET\fP argument only for Fortran 90. Sun FORTRAN 77 |
| 98 | +users may use the non-portable syntax |
| 99 | +.sp |
| 100 | +.nf |
| 101 | + INTEGER*MPI_OFFSET_KIND \fIOFFSET\fP |
| 102 | +.fi |
| 103 | +.sp |
| 104 | +where MPI_OFFSET_KIND is a constant defined in mpif.h |
| 105 | +and gives the length of the declared integer in bytes. |
| 106 | + |
| 107 | +.SH ERRORS |
| 108 | +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. |
| 109 | +.sp |
| 110 | +Before the error value is returned, the current MPI error handler is |
| 111 | +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. |
| 112 | + |
0 commit comments