summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkmu <kmu@hdfgroup.org>2020-01-22 20:15:40 (GMT)
committerkmu <kmu@hdfgroup.org>2020-01-22 20:15:40 (GMT)
commit9afaf94bef740f89958a1a8aae369d5f607845f4 (patch)
treeaac12b9c539857192701641741a1caf4f64f5aae
parent9cc63d81fb1f311e849e2d098d31e6cfd4f549b5 (diff)
downloadhdf5-9afaf94bef740f89958a1a8aae369d5f607845f4.zip
hdf5-9afaf94bef740f89958a1a8aae369d5f607845f4.tar.gz
hdf5-9afaf94bef740f89958a1a8aae369d5f607845f4.tar.bz2
not use hdf5 private header
-rw-r--r--tools/test/perform/pio_perf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/test/perform/pio_perf.c b/tools/test/perform/pio_perf.c
index 74855cb..1a40f44 100644
--- a/tools/test/perform/pio_perf.c
+++ b/tools/test/perform/pio_perf.c
@@ -59,7 +59,6 @@
#include <stdio.h>
#include <stdlib.h>
-#include "H5private.h"
#include "hdf5.h"
#ifdef H5_HAVE_PARALLEL
@@ -81,6 +80,9 @@
#define PIO_MPI 0x2
#define PIO_HDF5 0x4
+#define DBL_EPSILON 2.2204460492503131e-16
+#define H5_DBL_ABS_EQUAL(X,Y) (fabsf((X)-(Y)) < DBL_EPSILON)
+
/* report 0.0 in case t is zero too */
#define MB_PER_SEC(bytes,t) (((t)==0.0) ? 0.0 : ((((double)bytes) / ONE_MB) / (t)))
#define MB_PER_SEC(bytes,t) (H5_DBL_ABS_EQUAL((t), 0.0) ? 0.0 : ((((double)bytes) / ONE_MB) / (t)))