diff options
author | Muqun Yang <myang6@hdfgroup.org> | 2021-08-05 13:02:21 (GMT) |
---|---|---|
committer | Muqun Yang <myang6@hdfgroup.org> | 2021-08-05 13:02:21 (GMT) |
commit | d89db6effb914787276bb8ca06afc022927542c5 (patch) | |
tree | 82f2328bf7de7f9cc90758eaa8593c08a8d75b66 | |
parent | 3cdef1e84c78d3fd776916928547f3adb3d4167b (diff) | |
parent | 84b8db9485acfc764bb9380721d1464a30771888 (diff) | |
download | hdf5-d89db6effb914787276bb8ca06afc022927542c5.zip hdf5-d89db6effb914787276bb8ca06afc022927542c5.tar.gz hdf5-d89db6effb914787276bb8ca06afc022927542c5.tar.bz2 |
Merge branch 'feature/vfd_swmr' of https://github.com/kyang2014/hdf5 into feature/vfd_swmr
-rw-r--r-- | test/vfd_swmr_gperf_writer.c | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/test/vfd_swmr_gperf_writer.c b/test/vfd_swmr_gperf_writer.c index 04a35ad..86a5f70 100644 --- a/test/vfd_swmr_gperf_writer.c +++ b/test/vfd_swmr_gperf_writer.c @@ -10,17 +10,17 @@ * help@hdfgroup.org. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ -/* Description of this program: +/* Description of this program: * This program checks the performance of group creations for VFD SWMR. * Currently the group creation time, H5Fopen and H5Fclose time are measured. - * After compiling the program, + * After compiling the program, * ./vfd_swmr_gperf_writer -n 1000 -P -N 5 -a 1 -q - * will generate 1000 groups, each group has 5 attributes. + * will generate 1000 groups, each group has 5 attributes. * ./vfd_swmr_gperf_writer -n 1000 -P -N 0 -q * will generate 1000 empty groups. * ./vfd_swmr_gperf_writer -n 1000 -P -q * will generate 1000 groups,for every ten groups, an attribute is generated. -*/ + */ #define H5F_FRIEND /*suppress error about including H5Fpkg */ #include "hdf5.h" @@ -34,7 +34,7 @@ #ifndef H5_HAVE_WIN32_API -#define VS_ATTR_NAME_LEN 21 +#define VS_ATTR_NAME_LEN 21 #define TIME_PASSED(X, Y) \ ((double)((Y.tv_sec - X.tv_sec) * 1000000000 + (Y.tv_nsec - X.tv_nsec))) / 1000000000.0 @@ -458,7 +458,6 @@ add_attr(state_t *s, hid_t oid, unsigned int which, unsigned num_attrs, const ch } } - } /* end for */ if (H5Tclose(amtype) < 0) { @@ -1573,7 +1572,6 @@ write_group(state_t *s, unsigned int which) } } - /* Then carry out the attribute operation. */ if (s->asteps != 0 && which % s->asteps == 0) result = add_group_attribute(s, g, gcpl, which); @@ -3599,7 +3597,6 @@ vrfy_create_group(state_t *s, unsigned int which) TEST_ERROR; } - return true; error: @@ -3760,7 +3757,6 @@ vrfy_close_group_id(state_t *s, hid_t g) TEST_ERROR; } - return true; error: @@ -3804,7 +3800,6 @@ vrfy_one_link_exist(state_t *s, hid_t obj_id, const char *name, bool expect_exis int link_exists = 0; H5G_info_t group_info; - link_exists = H5Lexists(obj_id, name, H5P_DEFAULT); if (link_exists < 0) { @@ -4527,7 +4522,6 @@ main(int argc, char **argv) TEST_ERROR; } - if (writer) { if (s.gperf) { @@ -4537,7 +4531,6 @@ main(int argc, char **argv) TEST_ERROR; } - } if (s.nglevels >0) { @@ -4576,7 +4569,6 @@ main(int argc, char **argv) fprintf(stdout, "group creation +5 attrs total time = %lf\n", s.total_time); fprintf(stdout, "group creation +5 attrs mean time = %lf\n", s.mean_time); } - } else { |