diff --git a/h5bench_patterns/h5bench_read.c b/h5bench_patterns/h5bench_read.c index 3d93b63f..b56aad2b 100644 --- a/h5bench_patterns/h5bench_read.c +++ b/h5bench_patterns/h5bench_read.c @@ -77,9 +77,9 @@ read_h5_data(time_step *ts, hid_t loc, hid_t *dset_ids, hid_t filespace, hid_t m hid_t dapl; unsigned long t1, t2, t3; dapl = H5Pcreate(H5P_DATASET_ACCESS); - #if H5_VERSION_GE(1,10,0) +#if H5_VERSION_GE(1, 10, 0) H5Pset_all_coll_metadata_ops(dapl, true); - #endif +#endif t1 = get_time_usec(); dset_ids[0] = H5Dopen_async(loc, "x", dapl, ts->es_meta_create); @@ -343,14 +343,14 @@ set_pl(hid_t *fapl, hid_t *gapl) { *fapl = H5Pcreate(H5P_FILE_ACCESS); H5Pset_fapl_mpio(*fapl, MPI_COMM_WORLD, MPI_INFO_NULL); - #if H5_VERSION_GE(1,10,0) +#if H5_VERSION_GE(1, 10, 0) H5Pset_all_coll_metadata_ops(*fapl, true); H5Pset_coll_metadata_write(*fapl, true); - #endif +#endif *gapl = H5Pcreate(H5P_GROUP_ACCESS); - #if H5_VERSION_GE(1,10,0) +#if H5_VERSION_GE(1, 10, 0) H5Pset_all_coll_metadata_ops(*gapl, true); - #endif +#endif } void diff --git a/h5bench_patterns/h5bench_write.c b/h5bench_patterns/h5bench_write.c index 81ad2956..3027aa98 100644 --- a/h5bench_patterns/h5bench_write.c +++ b/h5bench_patterns/h5bench_write.c @@ -885,10 +885,10 @@ set_metadata(hid_t fapl, int align, unsigned long threshold, unsigned long align if (meta_collective == 1) { if (MY_RANK == 0) printf("Collective write: enabled.\n"); - #if H5_VERSION_GE(1,10,0) +#if H5_VERSION_GE(1, 10, 0) H5Pset_all_coll_metadata_ops(fapl, 1); H5Pset_coll_metadata_write(fapl, 1); - #endif +#endif } else { if (MY_RANK == 0)