diff options
author | Bill Wendling <wendling@ncsa.uiuc.edu> | 2001-12-12 16:53:13 (GMT) |
---|---|---|
committer | Bill Wendling <wendling@ncsa.uiuc.edu> | 2001-12-12 16:53:13 (GMT) |
commit | d3f9fa143479e047c7f8ca05bf3e6bc75d0d7482 (patch) | |
tree | 0fe100539ca99518705fe7c83ee2735107708e24 /perform/pio_perf.c | |
parent | 59d30c94ef1c82527f16b5a93cf742d0013e42a6 (diff) | |
download | hdf5-d3f9fa143479e047c7f8ca05bf3e6bc75d0d7482.zip hdf5-d3f9fa143479e047c7f8ca05bf3e6bc75d0d7482.tar.gz hdf5-d3f9fa143479e047c7f8ca05bf3e6bc75d0d7482.tar.bz2 |
[svn-r4703]
Purpose:
Feature Fix
Description:
Changed default size of file to 512MB. The "-m" flag is now in
megabytes as well. This makes running things a bit faster.
Platforms tested:
Linux
Diffstat (limited to 'perform/pio_perf.c')
-rw-r--r-- | perform/pio_perf.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/perform/pio_perf.c b/perform/pio_perf.c index 4fda6a1..af06a97 100644 --- a/perform/pio_perf.c +++ b/perform/pio_perf.c @@ -232,8 +232,9 @@ run_test_loop(FILE *output, int max_num_procs, long max_size) results res; parms.buf_size = j; - parms.num_dsets = ONE_GB / j; - parms.num_elmts = (max_size * j) / sizeof(int); + parms.num_dsets = MAX_HDF5_BUF_SIZE / j; + parms.num_dsets = (parms.num_dsets ? parms.num_dsets : 1); + parms.num_elmts = max_size / (parms.num_dsets * sizeof(int)); print_indent(output, TAB_SPACE * 2); fprintf(output, @@ -244,7 +245,7 @@ run_test_loop(FILE *output, int max_num_procs, long max_size) res = do_pio(parms); print_indent(output, TAB_SPACE * 3); - fprintf(output, "Write Results = %f MB/s\n", + fprintf(output, "Write Results = %.2f MB/s\n", MB_PER_SEC(parms.num_dsets * parms.num_elmts * sizeof(int), get_time(res.timers, HDF5_WRITE_FIXED_DIMS))); @@ -283,7 +284,7 @@ usage(const char *prog) fprintf(stdout, "usage: %s [OPTIONS]\n", prog); fprintf(stdout, " OPTIONS\n"); fprintf(stdout, " -h, --help Print a usage message and exit\n"); - fprintf(stdout, " -m #, --max-size=# Maximum size of file in gigabytes [default: 2]\n"); + fprintf(stdout, " -m #, --max-size=# Maximum size of file in megabytes [default: 512]\n"); fprintf(stdout, " -o F, --output=F Output raw data into file F\n"); fprintf(stdout, "\n"); fprintf(stdout, " F - is a filename.\n"); @@ -305,7 +306,7 @@ parse_command_line(int argc, char *argv[]) struct options *cl_opts; cl_opts = (struct options *)calloc(1, sizeof(struct options)); - cl_opts->max_size = 2; + cl_opts->max_size = 512 * ONE_MB; while ((opt = get_option(argc, (const char **)argv, s_opts, l_opts)) != EOF) { switch ((char)opt) { @@ -315,7 +316,7 @@ parse_command_line(int argc, char *argv[]) break; #endif /* 0 */ case 'm': - cl_opts->max_size = atol(opt_arg); + cl_opts->max_size = atol(opt_arg) * ONE_MB; break; case 'o': cl_opts->output_file = opt_arg; |