Line | |
---|
1 | .\"Copyright 2006-2008 Sun Microsystems, Inc. |
---|
2 | .\" Copyright (c) 1996 Thinking Machines Corporation |
---|
3 | .TH MPI_File_sync 3 "Dec 08, 2009" "1.4" "Open MPI" |
---|
4 | .SH NAME |
---|
5 | \fBMPI_File_sync\fP \- Makes semantics consistent for data-access operations (collective). |
---|
6 | |
---|
7 | .SH SYNTAX |
---|
8 | .ft R |
---|
9 | .nf |
---|
10 | C Syntax |
---|
11 | #include <mpi.h> |
---|
12 | int MPI_File_sync(MPI_File \fIfh\fP) |
---|
13 | |
---|
14 | Fortran Syntax |
---|
15 | INCLUDE 'mpif.h' |
---|
16 | MPI_FILE_SYNC(\fIFH\fP, \fIIERROR\fP) |
---|
17 | INTEGER FH, IERROR |
---|
18 | |
---|
19 | .SH C++ Syntax |
---|
20 | .nf |
---|
21 | #include <mpi.h> |
---|
22 | void MPI::File::Sync() |
---|
23 | |
---|
24 | .SH INPUT PARAMETER |
---|
25 | .ft R |
---|
26 | .TP 1i |
---|
27 | fh |
---|
28 | File handle (handle). |
---|
29 | |
---|
30 | .SH OUTPUT PARAMETER |
---|
31 | .ft R |
---|
32 | .TP 1i |
---|
33 | IERROR |
---|
34 | Fortran only: Error status (integer). |
---|
35 | |
---|
36 | .SH DESCRIPTION |
---|
37 | .ft R |
---|
38 | Calling MPI_File_sync with |
---|
39 | .I fh |
---|
40 | causes all previous writes to |
---|
41 | .I fh |
---|
42 | by the calling process to be written to permanent storage. If other processes have made updates to permanent storage, then all such updates become visible to subsequent reads of |
---|
43 | .I fh |
---|
44 | by the calling process. |
---|
45 | .sp |
---|
46 | MPI_File_sync is a collective operation. The user is responsible for ensuring that all nonblocking requests on |
---|
47 | .I fh |
---|
48 | have been completed before calling MPI_File_sync. Otherwise, the call to MPI_File_sync is erroneous. |
---|
49 | |
---|
50 | .SH ERRORS |
---|
51 | 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. |
---|
52 | .sp |
---|
53 | Before the error value is returned, the current MPI error handler is |
---|
54 | 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. |
---|
55 | |
---|
56 | |
---|
Note: See
TracBrowser
for help on using the repository browser.