summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorjhendersonHDF <jhenderson@hdfgroup.org>2023-09-25 20:37:15 (GMT)
committerGitHub <noreply@github.com>2023-09-25 20:37:15 (GMT)
commit08b574d68bcc97a57e5844ec1fb825b81e87188c (patch)
tree2d0e3c906084dad1850b5500020e990082ec2c8d /src
parent1e852b94bdcfbfe6f5e21c02c2d01a709b8040b0 (diff)
downloadhdf5-08b574d68bcc97a57e5844ec1fb825b81e87188c.zip
hdf5-08b574d68bcc97a57e5844ec1fb825b81e87188c.tar.gz
hdf5-08b574d68bcc97a57e5844ec1fb825b81e87188c.tar.bz2
Fix docs for H5Pset_dxpl_mpio_collective_opt() (#3594)
Diffstat (limited to 'src')
-rw-r--r--src/H5FDmpio.c16
-rw-r--r--src/H5FDmpio.h20
2 files changed, 21 insertions, 15 deletions
diff --git a/src/H5FDmpio.c b/src/H5FDmpio.c
index d2377cb..9149d2b 100644
--- a/src/H5FDmpio.c
+++ b/src/H5FDmpio.c
@@ -559,13 +559,13 @@ done:
/*-------------------------------------------------------------------------
* Function: H5Pset_dxpl_mpio_collective_opt
*
- * Purpose: To set a flag to choose linked chunk I/O or multi-chunk I/O
- * without involving decision-making inside HDF5
- *
- * Note: The library will do linked chunk I/O or multi-chunk I/O without
- * involving communications for decision-making process.
- * The library won't behave as it asks for only when we find
- * that the low-level MPI-IO package doesn't support this.
+ * Purpose: Set the data transfer property list DXPL_ID to use transfer
+ * mode OPT_MODE during I/O. This allows the application to
+ * specify collective I/O at the HDF5 interface level (with
+ * the H5Pset_dxpl_mpio routine), while controlling whether
+ * the actual I/O is performed collectively (e.g., via
+ * MPI_File_write_at_all) or independently (e.g., via
+ * MPI_File_write_at).
*
* Return: Success: Non-negative
* Failure: Negative
@@ -2032,7 +2032,7 @@ done:
/*-------------------------------------------------------------------------
* Function: H5FD__mpio_read_vector()
*
- * Purpose: The behaviour of this function dependes on the value of
+ * Purpose: The behavior of this function depends on the value of
* the io_xfer_mode obtained from the context.
*
* If it is H5FD_MPIO_COLLECTIVE, this is a collective
diff --git a/src/H5FDmpio.h b/src/H5FDmpio.h
index 3678601..96a9366 100644
--- a/src/H5FDmpio.h
+++ b/src/H5FDmpio.h
@@ -164,18 +164,24 @@ H5_DLL herr_t H5Pget_dxpl_mpio(hid_t dxpl_id, H5FD_mpio_xfer_t *xfer_mode /*out*
/**
* \ingroup DXPL
*
- * \brief Sets data transfer mode
+ * \brief Sets low-level data transfer mode
*
* \dxpl_id
* \param[in] opt_mode Transfer mode
* \returns \herr_t
*
- * \details H5Pset_dxpl_mpio() sets the data transfer property list \p dxpl_id
- * to use transfer mode xfer_mode. The property list can then be used
- * to control the I/O transfer mode during data I/O operations.
- *
- * Valid transfer modes are #H5FD_MPIO_INDEPENDENT (default) and
- * #H5FD_MPIO_COLLECTIVE.
+ * \details H5Pset_dxpl_mpio_collective_opt() sets the data transfer property
+ * list \p dxpl_id to use transfer mode \p opt_mode when performing
+ * I/O. This allows the application to specify collective I/O at the
+ * HDF5 interface level (with the H5Pset_dxpl_mpio() API routine),
+ * while controlling whether the actual I/O is performed collectively
+ * (e.g., via MPI_File_write_at_all) or independently (e.g., via
+ * MPI_File_write_at). If the collectivity setting at the HDF5
+ * interface level (set via H5Pset_dxpl_mpio()) is not set to
+ * H5FD_MPIO_COLLECTIVE, this setting will be ignored.
+ *
+ * Valid transfer modes are #H5FD_MPIO_COLLECTIVE_IO (default) and
+ * #H5FD_MPIO_INDIVIDUAL_IO.
*
* \since 1.4.0
*