diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2019-09-26 08:19:13 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2019-10-11 02:46:06 (GMT) |
commit | 75bb8add458930420b1d0856605ecc55ff2e12de (patch) | |
tree | 28116f9fe7610969f5754501aeccdbbb1d3f8213 /src/H5VLnative_file.c | |
parent | 3819640e3c7c2967c426f8bfc95d302f0ae0491a (diff) | |
download | hdf5-75bb8add458930420b1d0856605ecc55ff2e12de.zip hdf5-75bb8add458930420b1d0856605ecc55ff2e12de.tar.gz hdf5-75bb8add458930420b1d0856605ecc55ff2e12de.tar.bz2 |
Marked up H5Fget/set_mpi_atomicity() to use the VOL.
Diffstat (limited to 'src/H5VLnative_file.c')
-rw-r--r-- | src/H5VLnative_file.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/H5VLnative_file.c b/src/H5VLnative_file.c index 3c3712a..81cb507 100644 --- a/src/H5VLnative_file.c +++ b/src/H5VLnative_file.c @@ -800,6 +800,24 @@ H5VL__native_file_optional(void *obj, hid_t H5_ATTR_UNUSED dxpl_id, void H5_ATTR break; } + /* H5Fget_mpi_atomicity */ + case H5VL_NATIVE_FILE_GET_MPI_ATOMICITY: + { + hbool_t *flag = (hbool_t *)HDva_arg(arguments, hbool_t *); + if (H5F_get_mpi_atomicity(f, flag) < 0) + HGOTO_ERROR(H5E_FILE, H5E_CANTGET, FAIL, "cannot get MPI atomicity"); + break; + } + + /* H5Fset_mpi_atomicity */ + case H5VL_NATIVE_FILE_SET_MPI_ATOMICITY: + { + hbool_t flag = (hbool_t)HDva_arg(arguments, int); + if (H5F_set_mpi_atomicity(f, flag) < 0) + HGOTO_ERROR(H5E_FILE, H5E_CANTSET, FAIL, "cannot set MPI atomicity"); + break; + } + default: HGOTO_ERROR(H5E_VOL, H5E_UNSUPPORTED, FAIL, "invalid optional operation") } /* end switch */ |