summaryrefslogtreecommitdiffstats
path: root/HDF5Examples/C/H5PAR/ph5_dataset.c
diff options
context:
space:
mode:
authorLarry Knox <lrknox@hdfgroup.org>2024-02-16 20:12:10 (GMT)
committerGitHub <noreply@github.com>2024-02-16 20:12:10 (GMT)
commit034271b239c2f8434a3d9528da5587f4a9813a41 (patch)
tree93badd8efbd89b2202629b591f44e4caa4b8307b /HDF5Examples/C/H5PAR/ph5_dataset.c
parent413d10f6e3d4db5341413ba7cd4f819eb5156a51 (diff)
parent17a542fce3f43ddbcf2113e061772e9315875eb0 (diff)
downloadhdf5-034271b239c2f8434a3d9528da5587f4a9813a41.zip
hdf5-034271b239c2f8434a3d9528da5587f4a9813a41.tar.gz
hdf5-034271b239c2f8434a3d9528da5587f4a9813a41.tar.bz2
Merge pull request #4025 from lrknox/1_14_dev_sync3_lrk
Sync more develop changes to hdf5_1_14
Diffstat (limited to 'HDF5Examples/C/H5PAR/ph5_dataset.c')
-rw-r--r--HDF5Examples/C/H5PAR/ph5_dataset.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/HDF5Examples/C/H5PAR/ph5_dataset.c b/HDF5Examples/C/H5PAR/ph5_dataset.c
index 9b8e8a8..0c25fcc 100644
--- a/HDF5Examples/C/H5PAR/ph5_dataset.c
+++ b/HDF5Examples/C/H5PAR/ph5_dataset.c
@@ -54,6 +54,24 @@ main(int argc, char **argv)
H5Pset_fapl_mpio(plist_id, comm, info);
/*
+ * OPTIONAL: It is generally recommended to set collective
+ * metadata reads on FAPL to perform metadata reads
+ * collectively, which usually allows datasets
+ * to perform better at scale, although it is not
+ * strictly necessary.
+ */
+ H5Pset_all_coll_metadata_ops(plist_id, true);
+
+ /*
+ * OPTIONAL: It is generally recommended to set collective
+ * metadata writes on FAPL to perform metadata writes
+ * collectively, which usually allows datasets
+ * to perform better at scale, although it is not
+ * strictly necessary.
+ */
+ H5Pset_coll_metadata_write(plist_id, true);
+
+ /*
* Create a new file collectively and release property list identifier.
*/
file_id = H5Fcreate(H5FILE_NAME, H5F_ACC_TRUNC, H5P_DEFAULT, plist_id);