summaryrefslogtreecommitdiffstats
path: root/perform/pio_perf.c
diff options
context:
space:
mode:
authorBill Wendling <wendling@ncsa.uiuc.edu>2001-12-10 22:45:46 (GMT)
committerBill Wendling <wendling@ncsa.uiuc.edu>2001-12-10 22:45:46 (GMT)
commit43c1f21316556ae6ac898061a49194270d7e9d8b (patch)
treec5b5036cc20639bcfc14675a47c5ec312cb694ca /perform/pio_perf.c
parentb78d34a1475d846959d0335d7b52ae724617be86 (diff)
downloadhdf5-43c1f21316556ae6ac898061a49194270d7e9d8b.zip
hdf5-43c1f21316556ae6ac898061a49194270d7e9d8b.tar.gz
hdf5-43c1f21316556ae6ac898061a49194270d7e9d8b.tar.bz2
[svn-r4691]
Purpose: Small Fixes Description: After conversation with Albert, here are some small fixes for the performance stuff. Not too significant. Though, we did add the "buffer size" as a parameter I pass to the engine.
Diffstat (limited to 'perform/pio_perf.c')
-rw-r--r--perform/pio_perf.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/perform/pio_perf.c b/perform/pio_perf.c
index 059845b..0a546a4 100644
--- a/perform/pio_perf.c
+++ b/perform/pio_perf.c
@@ -69,13 +69,8 @@
#define ONE_GB 1073741824UL
-#if 0
-#define MIN_HDF5_BUF_SIZE 1024
-#define MAX_HDF5_BUF_SIZE (ONE_GB / 2)
-#else
-#define MIN_HDF5_BUF_SIZE 1024*1024*8
-#define MAX_HDF5_BUF_SIZE MIN_HDF5_BUF_SIZE*4
-#endif
+#define MIN_HDF5_BUF_SIZE (1024 * 1024 * 8)
+#define MAX_HDF5_BUF_SIZE (MIN_HDF5_BUF_SIZE * 4)
/* local variables */
static const char *progname = "pio_perf";
@@ -232,6 +227,7 @@ run_test_loop(FILE *output, int max_num_procs, long max_size)
for (j = MIN_HDF5_BUF_SIZE; j <= MAX_HDF5_BUF_SIZE; j <<= 1) {
results res;
+ parms.buf_size = j;
parms.num_dsets = ONE_GB / j;
parms.num_elmts = (max_size * j) / sizeof(int);
@@ -245,6 +241,7 @@ run_test_loop(FILE *output, int max_num_procs, long max_size)
print_indent(output, TAB_SPACE * 3);
fprintf(output, "Write Results = %f MB/s\n",
+ /* WRONG */
(parms.num_dsets * parms.num_elmts * sizeof(int)) /
get_time(res.timers, HDF5_WRITE_FIXED_DIMS));