summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkmu <kmu@hdfgroup.org>2020-01-22 20:15:40 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2020-05-20 14:31:51 (GMT)
commitf0ee8b2883b714536dc7539b25237efd777ad01e (patch)
tree32256afd100302e0c2e6a9e858436f8fdb17cb03
parent1c226ac077b078445cd52ba2d46968fc9ecb0c65 (diff)
downloadhdf5-f0ee8b2883b714536dc7539b25237efd777ad01e.zip
hdf5-f0ee8b2883b714536dc7539b25237efd777ad01e.tar.gz
hdf5-f0ee8b2883b714536dc7539b25237efd777ad01e.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)))