Sets the MPI atomicity mode
Procedure:
H5F_SET_MPI_ATOMICITY (file_id, flag)
Signature:
herr_t H5Fset_mpi_atomicity( hid_t file_id, hbool_t flag )
SUBROUTINE h5fset_mpi_atomicity_f(file_id, flag, hdferr)
IMPLICIT NONE
INTEGER(HID_T), INTENT(IN) :: file_id ! File identifier
INTEGER(HBOOL_T), INTENT(IN) :: flag ! Atomicity flag
INTEGER, INTENT(OUT) :: hdferr ! Error code
! 0 on success; -1 on failure
END SUBROUTINE h5fset_mpi_atomicity_f
Parameters:
hid_t file_id , | IN: HDF5 file identifier |
hbool_t flag | IN: Logical flag for atomicity setting Valid values are:1 Sets MPI file access to atomic mode.
0 Sets MPI file access to nonatomic mode.
|
Description:
H5F_SET_MPI_ATOMICITY sets MPI consistency semantics for data access to the file, file_id
.
If flag
is set to 1
, all file access operations will appear atomic, guaranteeing sequential consistency. If flag
is set to 0
, enforcement of atomic file access will be turned off.
H5F_SET_MPI_ATOMICITY is a collective function and all participating processes must pass the same values for file_id
and flag
.
This function is available only when the HDF5 library is configured with parallel support (--enable-parallel
). It is useful only when used with the H5FD_MPIO
driver (see H5P_SET_FAPL_MPIO).
See Also:
Returns:
Returns a non-negative value if successful; otherwise returns a negative value.
Example:
History:
Release | Change |
---|
1.8.9 | C function and Fortran subroutine introduced in this release. |
--- Last Modified: July 22, 2020 | 03:13 PM