diff options
author | Bill Wendling <wendling@ncsa.uiuc.edu> | 2002-01-08 23:28:12 (GMT) |
---|---|---|
committer | Bill Wendling <wendling@ncsa.uiuc.edu> | 2002-01-08 23:28:12 (GMT) |
commit | 4d20a1d87f77d653b227a5873f1fbd4ff4488af9 (patch) | |
tree | 11cb0a1d62e413d9fc3161db7e74323a4272574e /perform | |
parent | 173dd7f2fe33139ca272355a5e2ad80dafd3e5d3 (diff) | |
download | hdf5-4d20a1d87f77d653b227a5873f1fbd4ff4488af9.zip hdf5-4d20a1d87f77d653b227a5873f1fbd4ff4488af9.tar.gz hdf5-4d20a1d87f77d653b227a5873f1fbd4ff4488af9.tar.bz2 |
[svn-r4803]
Purpose:
Feature Add
Description:
Added output which tells how large the file is (that is, the number
of dsets * number of elements in a dset * sizeof(int)).
Platforms tested:
Linux(pp)
Diffstat (limited to 'perform')
-rw-r--r-- | perform/pio_perf.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/perform/pio_perf.c b/perform/pio_perf.c index 2db68e9..c21d34c 100644 --- a/perform/pio_perf.c +++ b/perform/pio_perf.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2001 + * Copyright (C) 2001, 2002 * National Center for Supercomputing Applications * All rights reserved. * @@ -78,15 +78,11 @@ #define MB_PER_SEC(bytes,t) (((bytes) / ONE_MB) / t) -#define MIN_HDF5_BUF_SIZE (ONE_MB >> 1) -#define MAX_HDF5_BUF_SIZE (ONE_GB / 2) - /* global variables */ MPI_Comm pio_comm_g; /* Communicator to run the PIO */ int pio_mpi_rank_g; /* MPI rank of pio_comm_g */ int pio_mpi_nprocs_g; /* number of processes of pio_comm_g */ - /* local variables */ static const char *progname = "pio_perf"; @@ -348,7 +344,9 @@ run_test_loop(FILE *output, struct options *opts) parms.num_elmts = opts->file_size / (parms.num_dsets * sizeof(int)); print_indent(output, TAB_SPACE * 1); - output_report(output, "Transfer Buffer Size: %ld\n", buf_size); + output_report(output, "Transfer Buffer Size: %.2f KBs, File size: %.2f MBs\n", + ((double)buf_size) / ONE_KB, + ((double)parms.num_dsets * parms.num_elmts * sizeof(int)) / ONE_MB); print_indent(output, TAB_SPACE * 1); output_report(output, " # of files: %ld, # of dsets: %ld, # of elmts per dset: %ld\n", @@ -453,7 +451,7 @@ run_test(FILE *output, iotype iot, parameters parms) total_mm = accumulate_minmax_stuff(write_mm_table, parms.num_iters); print_indent(output, TAB_SPACE * 3); - output_report(output, "Write (%d iterations):\n", parms.num_iters); + output_report(output, "Write (%d iteration(s)):\n", parms.num_iters); print_indent(output, TAB_SPACE * 4); output_report(output, "Minimum Time: %.2fs (%.2f MB/s)\n", @@ -471,7 +469,7 @@ run_test(FILE *output, iotype iot, parameters parms) total_mm = accumulate_minmax_stuff(read_mm_table, parms.num_iters); print_indent(output, TAB_SPACE * 3); - output_report(output, "Read (%d iterations):\n", parms.num_iters); + output_report(output, "Read (%d iteration(s)):\n", parms.num_iters); print_indent(output, TAB_SPACE * 4); output_report(output, "Minimum Time: %.2fs (%.2f MB/s)\n", |