diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/test/perform/pio_perf.c | 4 |
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))) |