Sets metadata write mode to collective or independent (default)


H5P_SET_COLL_METADATA_WRITE ( apl_id, is_collective )


<pre><code class="language-c">herr_t H5Pset_coll_metadata_write(
              hid_t fapl_id,
              hbool_t is_collective

<pre><code class="language-fortran">Fortran Interface: h5pset_coll_metadata_write_f
  SUBROUTINE h5pset_coll_metadata_write_f(plist_id, is_collective, hdferr)
    INTEGER(HID_T)  , INTENT(IN)  :: plist_id
    LOGICAL, INTENT(IN)           :: is_collective
    INTEGER, INTENT(OUT)          :: hdferr

  fapl_id        - File access property list identifier.
  is_collective  - Indicates if metadata writes are collective or not.

  hdferr         - Returns 0 if successful and -1 if fails.

<pre><code class="language-cpp">Replace this text with the C++ Function Signature</code></pre>

<pre><code class="language-java">Replace this text with the JAVA Function Signature</code></pre>

hid_t fapl_idIN: File access propery list identifier
hbool_t is_collectiveIN: Boolean value indicating whether metadata writes are collective (TRUE) or independent (FALSE)
Default mode: Independent (FALSE)


 H5Pset_coll_metadata_write tells the HDF5 Library whether to perform metadata writes collectively (TRUE) or independently (FALSE).

If collective access is selected, then on a flush of the metadata cache, all processes will divide the metadata cache entries to be flushed evenly among themselves and issue a single MPI-IO collective write operation. This is the preferred method when the size of the metadata created by the application is large.

If independent access is selected, the library uses the default method for doing metadata I/O either from process zero or independently from each process.



Returns a non-negative value if successful; otherwise returns a negative value.




Release    Change
1.10.0C function and Fortran wrapper introduced with this release.