Open MPI logo

MPI_File_write_shared(3) man page (version 5.0.0rc2)

  |   Home   |   Support   |   FAQ   |  

« Return to documentation listing

Table of Contents

Name

C]MPI_File_write_sharedR] - Writes a file using the shared file pointer (blocking, noncollective).

Syntax

C Syntax



C]#include <mpi.h>int MPI_File_write_shared(MPI_File fh, const void *buf, int count, MPI_Datatype datatype, MPI_Status *status)R]Fortran Syntax



C]USE MPI! or the older form: INCLUDE [aq]mpif.h[aq]MPI_FILE_WRITE_SHARED(FH, BUF, COUNT, DATATYPE, STATUS, IERROR) <type> BUF(*) INTEGER FH, COUNT, DATATYPE, STATUS(MPI_STATUS_SIZE), IERRORR]Fortran 2008 Syntax



C]USE mpi_f08MPI_File_write_shared(fh, buf, count, datatype, status, ierror) TYPE(MPI_File), INTENT(IN) :: fh TYPE(*), DIMENSION(..), INTENT(IN) :: buf INTEGER, INTENT(IN) :: count TYPE(MPI_Datatype), INTENT(IN) :: datatype TYPE(MPI_Status) :: status INTEGER, OPTIONAL, INTENT(OUT) :: ierrorR]Input/Output Parameter

[bu]
C]fhR] : File handle (handle).

Input Parameters

[bu]
C]bufR] : Initial address of buffer (choice).
[bu]
C]countR] : Number of elements in buffer (integer).
[bu]
C]datatypeR] : Data type of each buffer element (handle).

Output Parameters

[bu]
C]statusR] : Status object (status).
[bu]
C]IERRORR] : Fortran only: Error status (integer).

Description

C]MPI_File_write_sharedR] is a blocking routine that uses the shared file pointer to write files. The order of serialization is not deterministic for this noncollective routine.

Errors

Almost all MPI routines return an error value; C routines as the value of the function and Fortran routines in the last argument.

Before the error value is returned, the current MPI error handler is called. For MPI I/O function errors, the default error handler is set to C]MPI_ERRORS_RETURNR]. The error handler may be changed with C]MPI_File_set_errhandlerR]; the predefined error handler C]MPI_ERRORS_ARE_FATALR] may be used to make I/O errors fatal. Note that MPI does not guarantee that an MPI program can continue past an error.


Table of Contents

« Return to documentation listing