1 | .\"Copyright 2006-2008 Sun Microsystems, Inc. |
---|
2 | .\" Copyright (c) 1996 Thinking Machines Corporation |
---|
3 | .TH MPI_File_write_shared 3 "Dec 08, 2009" "1.4" "Open MPI" |
---|
4 | .SH NAME |
---|
5 | \fBMPI_File_write_shared\fP \- Writes a file using the shared file pointer (blocking, noncollective). |
---|
6 | |
---|
7 | .SH SYNTAX |
---|
8 | .ft R |
---|
9 | .nf |
---|
10 | C Syntax |
---|
11 | #include <mpi.h> |
---|
12 | int MPI_File_write_shared(MPI_File \fIfh\fP, void \fI*buf\fP, int \fIcount\fP, |
---|
13 | MPI_Datatype \fIdatatype\fP, MPI_Status \fI*status\fP) |
---|
14 | |
---|
15 | Fortran Syntax |
---|
16 | INCLUDE 'mpif.h' |
---|
17 | MPI_FILE_WRITE_SHARED(\fIFH\fP, \fIBUF\fP, \fICOUNT\fP, \fIDATATYPE\fP, \fISTATUS\fP,\fI IERROR\fP) |
---|
18 | <type> \fIBUF(*)\fP |
---|
19 | INTEGER \fIFH, COUNT, DATATYPE, STATUS(MPI_STATUS_SIZE), |
---|
20 | IERROR\fP |
---|
21 | |
---|
22 | .SH C++ Syntax |
---|
23 | .nf |
---|
24 | #include <mpi.h> |
---|
25 | void MPI::File::Write_shared(const void* \fIbuf\fP, int \fIcount\fP, |
---|
26 | const MPI::Datatype& \fIdatatype\fP, MPI::Status& \fIstatus\fP) |
---|
27 | |
---|
28 | void MPI::File::Write_shared(const void* \fIbuf\fP, int \fIcount\fP, |
---|
29 | const MPI::Datatype& \fIdatatype\fP) |
---|
30 | |
---|
31 | .SH INPUT/OUTPUT PARAMETER |
---|
32 | .ft R |
---|
33 | .TP 1i |
---|
34 | fh |
---|
35 | File handle (handle). |
---|
36 | |
---|
37 | .SH INPUT PARAMETERS |
---|
38 | .ft R |
---|
39 | .TP 1i |
---|
40 | buf |
---|
41 | Initial address of buffer (choice). |
---|
42 | .ft R |
---|
43 | .TP 1i |
---|
44 | count |
---|
45 | Number of elements in buffer (integer). |
---|
46 | .ft R |
---|
47 | .TP 1i |
---|
48 | datatype |
---|
49 | Data type of each buffer element (handle). |
---|
50 | |
---|
51 | .SH OUTPUT PARAMETERS |
---|
52 | .ft R |
---|
53 | .TP 1i |
---|
54 | status |
---|
55 | Status object (status). |
---|
56 | .TP 1i |
---|
57 | IERROR |
---|
58 | Fortran only: Error status (integer). |
---|
59 | |
---|
60 | .SH DESCRIPTION |
---|
61 | .ft R |
---|
62 | MPI_File_write_shared is a blocking routine that uses the shared file pointer to write files. The order of serialization is not deterministic for this noncollective routine. |
---|
63 | |
---|
64 | .SH ERRORS |
---|
65 | 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. |
---|
66 | .sp |
---|
67 | Before the error value is returned, the current MPI error handler is |
---|
68 | 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. |
---|
69 | |
---|