summaryrefslogtreecommitdiffstats
path: root/perform
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2003-06-13 06:57:34 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2003-06-13 06:57:34 (GMT)
commitce57ff966874ba201665e3e9dc7cf1299c0e6a06 (patch)
tree100d441abc558cab4b36481fb6382792d6c3e4af /perform
parent7fa8474aced9866945c3b73e41ff4740b064f863 (diff)
downloadhdf5-ce57ff966874ba201665e3e9dc7cf1299c0e6a06.zip
hdf5-ce57ff966874ba201665e3e9dc7cf1299c0e6a06.tar.gz
hdf5-ce57ff966874ba201665e3e9dc7cf1299c0e6a06.tar.bz2
[svn-r7033] Purpose:
minor improvment Description: corrected an omission in the usage help output. Added more parameters checks. Solution: Platforms tested: Only in modi4. Misc. update:
Diffstat (limited to 'perform')
-rw-r--r--perform/pio_perf.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/perform/pio_perf.c b/perform/pio_perf.c
index 8ba1567..0ec76b3 100644
--- a/perform/pio_perf.c
+++ b/perform/pio_perf.c
@@ -1304,8 +1304,16 @@ parse_command_line(int argc, char *argv[])
cl_opts->max_xfer_size = cl_opts->num_bpp;
if (cl_opts->min_xfer_size > cl_opts->max_xfer_size)
cl_opts->min_xfer_size = cl_opts->max_xfer_size;
+ /* check range of number of processes */
+ if (cl_opts->min_num_procs <= 0)
+ cl_opts->min_num_procs = 1;
+ if (cl_opts->max_num_procs <= 0)
+ cl_opts->max_num_procs = 1;
if (cl_opts->min_num_procs > cl_opts->max_num_procs)
cl_opts->min_num_procs = cl_opts->max_num_procs;
+ /* check iteration */
+ if (cl_opts->num_iters <= 0)
+ cl_opts->num_iters = 1;
return cl_opts;
}
@@ -1395,7 +1403,7 @@ usage(const char *prog)
printf(" -e S, --num-bytes=S Number of bytes per process per dataset\n");
printf(" [default: 256K]\n");
printf(" -F N, --num-files=N Number of files [default: 1]\n");
- printf(" -i, --num-iterations Number of iterations to perform [default: 1]\n");
+ printf(" -i N, --num-iterations=N Number of iterations to perform [default: 1]\n");
printf(" -I, --interleaved Interleaved block I/O (see below for example)\n");
printf(" [default: Contiguous block I/O]\n");
printf(" -m, --mpi-posix Use MPI-posix driver for HDF5 I/O\n");