diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2019-09-26 08:19:13 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2019-09-27 02:13:13 (GMT) |
commit | fbb0728f5423ba88de5a7bbe4f4d06825ed82aaa (patch) | |
tree | fea65e13d620d0dc9e846e308e22003702ae3a1d /src/H5VLnative_file.c | |
parent | 0ea77179d507bd2c29f3b9b357a0c35d4077b29c (diff) | |
download | hdf5-fbb0728f5423ba88de5a7bbe4f4d06825ed82aaa.zip hdf5-fbb0728f5423ba88de5a7bbe4f4d06825ed82aaa.tar.gz hdf5-fbb0728f5423ba88de5a7bbe4f4d06825ed82aaa.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 0ac70e3..bb77822 100644 --- a/src/H5VLnative_file.c +++ b/src/H5VLnative_file.c @@ -789,6 +789,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 */ |