2002-06-20 11:44:20 +08:00
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
2007-02-07 22:56:24 +08:00
|
|
|
* Copyright by The HDF Group. *
|
2002-06-20 11:44:20 +08:00
|
|
|
* Copyright by the Board of Trustees of the University of Illinois. *
|
|
|
|
* All rights reserved. *
|
|
|
|
* *
|
|
|
|
* This file is part of HDF5. The full HDF5 copyright notice, including *
|
|
|
|
* terms governing use, modification, and redistribution, is contained in *
|
|
|
|
* the files COPYING and Copyright.html. COPYING can be found at the root *
|
|
|
|
* of the source code distribution tree; Copyright.html can be found at the *
|
|
|
|
* root level of an installed copy of the electronic HDF5 document set and *
|
|
|
|
* is linked from the top-level documents page. It can also be found at *
|
2007-02-07 22:56:24 +08:00
|
|
|
* http://hdfgroup.org/HDF5/doc/Copyright.html. If you do not have *
|
|
|
|
* access to either file, you may request a copy from help@hdfgroup.org. *
|
2002-06-20 11:44:20 +08:00
|
|
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
2001-11-07 23:28:33 +08:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Parallel HDF5 Performance Testing Code
|
|
|
|
* --------------------------------------
|
|
|
|
*
|
|
|
|
* Portable code to test performance on the different platforms we support.
|
|
|
|
* This is what the report should look like:
|
|
|
|
*
|
|
|
|
* nprocs = Max#Procs
|
2002-05-23 07:22:46 +08:00
|
|
|
* IO API = POSIXIO
|
2001-11-07 23:28:33 +08:00
|
|
|
* # Files = 1, # of dsets = 1000, Elements per dset = 37000
|
|
|
|
* Write Results = x MB/s
|
|
|
|
* Read Results = x MB/s
|
|
|
|
* # Files = 1, # of dsets = 3000, Elements per dset = 37000
|
|
|
|
* Write Results = x MB/s
|
|
|
|
* Read Results = x MB/s
|
|
|
|
*
|
|
|
|
* . . .
|
|
|
|
*
|
2002-05-23 07:22:46 +08:00
|
|
|
* IO API = MPIO
|
2001-11-07 23:28:33 +08:00
|
|
|
* # Files = 1, # of dsets = 1000, Elements per dset = 37000
|
|
|
|
* Write Results = x MB/s
|
|
|
|
* Read Results = x MB/s
|
|
|
|
* # Files = 1, # of dsets = 3000, Elements per dset = 37000
|
|
|
|
* Write Results = x MB/s
|
|
|
|
* Read Results = x MB/s
|
|
|
|
*
|
|
|
|
* . . .
|
|
|
|
*
|
2002-05-23 07:22:46 +08:00
|
|
|
* IO API = PHDF5
|
2001-11-07 23:28:33 +08:00
|
|
|
* # Files = 1, # of dsets = 1000, Elements per dset = 37000
|
|
|
|
* Write Results = x MB/s
|
|
|
|
* Read Results = x MB/s
|
|
|
|
* # Files = 1, # of dsets = 3000, Elements per dset = 37000
|
|
|
|
* Write Results = x MB/s
|
|
|
|
* Read Results = x MB/s
|
|
|
|
*
|
|
|
|
* . . .
|
|
|
|
*
|
|
|
|
* nprocs = Max#Procs / 2
|
|
|
|
*
|
|
|
|
* . . .
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* system header files */
|
2001-12-20 06:10:15 +08:00
|
|
|
#include <stdarg.h>
|
2001-11-07 23:28:33 +08:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
2001-11-16 06:46:32 +08:00
|
|
|
#include "hdf5.h"
|
|
|
|
|
|
|
|
#ifdef H5_HAVE_PARALLEL
|
|
|
|
|
2001-11-07 23:28:33 +08:00
|
|
|
/* library header files */
|
|
|
|
#include <mpi.h>
|
|
|
|
|
|
|
|
/* our header files */
|
|
|
|
#include "pio_perf.h"
|
|
|
|
|
|
|
|
/* useful macros */
|
|
|
|
#define TAB_SPACE 4
|
|
|
|
|
2001-12-12 04:57:53 +08:00
|
|
|
#define ONE_KB 1024
|
|
|
|
#define ONE_MB (ONE_KB * ONE_KB)
|
|
|
|
#define ONE_GB (ONE_MB * ONE_KB)
|
2001-11-07 23:28:33 +08:00
|
|
|
|
2002-05-30 07:31:12 +08:00
|
|
|
#define PIO_POSIX 0x1
|
|
|
|
#define PIO_MPI 0x2
|
|
|
|
#define PIO_HDF5 0x4
|
[svn-r4733]
Purpose:
Feature Changes
Description:
Okay, I needed to add in more parameters so that the user can modify
how things are supposed to work with the PIO programs. Also needed
to change the algorithm a bit to make these work. And needed to add
in timing for the READ option.
Solution:
Added the above things. The parameters took a major rewrite of the
command-line parsing stuff. Here's the usage statement:
usage: pio_perf [OPTIONS]
OPTIONS
-h, --help Print a usage message and exit
-d N, --num-dsets=N Number of datasets per file [default:1]
-f S, --file-size=S Size of a single file [default: 64M]
-F N, --num-files=N Number of files [default: 1]
-H, --hdf5 Run HDF5 performance test
-i, --num-iterations Number of iterations to perform [default: 1]
-m, --mpiio Run MPI/IO performance test
-o F, --output=F Output raw data into file F [default: none]
-P N, --max-num-processes=N Maximum number of processes to use [default: 1]
-p N, --min-num-processes=N Minimum number of processes to use [default: 1]
-r, --raw Run raw (UNIX) performance test
-X S, --max-xfer-size=S Maximum transfer buffer size [default: 1M]
-x S, --min-xfer-size=S Minimum transfer buffer size [default: 1K]
F - is a filename.
N - is an integer >=0.
S - is a size specifier, an integer >=0 followed by a size indicator:
K - Kilobyte
M - Megabyte
G - Gigabyte
Example: 37M = 37 Megabytes
Platforms tested:
Linux, but not fully finished...
2001-12-19 04:12:21 +08:00
|
|
|
|
2002-05-23 07:22:46 +08:00
|
|
|
/* 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)))
|
2001-12-12 04:57:53 +08:00
|
|
|
|
2002-06-05 05:31:35 +08:00
|
|
|
#ifndef TRUE
|
|
|
|
#define TRUE 1
|
|
|
|
#endif /* TRUE */
|
|
|
|
#ifndef FALSE
|
|
|
|
#define FALSE (!TRUE)
|
|
|
|
#endif /* FALSE */
|
|
|
|
|
2001-12-20 06:10:15 +08:00
|
|
|
/* global variables */
|
2002-05-07 07:58:57 +08:00
|
|
|
FILE *output; /* output file */
|
|
|
|
int comm_world_rank_g; /* my rank in MPI_COMM_RANK */
|
|
|
|
int comm_world_nprocs_g;/* num. of processes of MPI_COMM_WORLD */
|
2001-12-20 06:10:15 +08:00
|
|
|
MPI_Comm pio_comm_g; /* Communicator to run the PIO */
|
|
|
|
int pio_mpi_rank_g; /* MPI rank of pio_comm_g */
|
2002-01-30 12:16:15 +08:00
|
|
|
int pio_mpi_nprocs_g; /* Number of processes of pio_comm_g */
|
|
|
|
int pio_debug_level = 0;/* The debug level:
|
|
|
|
* 0 - Off
|
|
|
|
* 1 - Minimal
|
|
|
|
* 2 - Some more
|
|
|
|
* 3 - Maximal
|
2002-05-23 07:22:46 +08:00
|
|
|
* 4 - Maximal & then some
|
2002-01-30 12:16:15 +08:00
|
|
|
*/
|
2001-12-20 06:10:15 +08:00
|
|
|
|
2001-11-07 23:28:33 +08:00
|
|
|
/* local variables */
|
2002-07-03 04:06:22 +08:00
|
|
|
static const char *progname = "h5perf";
|
2001-11-07 23:28:33 +08:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Command-line options: The user can specify short or long-named
|
|
|
|
* parameters. The long-named ones can be partially spelled. When
|
|
|
|
* adding more, make sure that they don't clash with each other.
|
|
|
|
*/
|
|
|
|
#if 1
|
2005-08-19 22:24:21 +08:00
|
|
|
static const char *s_opts = "a:A:B:cCd:D:e:F:ghi:Imno:p:P:stT:wx:X:";
|
2001-11-07 23:28:33 +08:00
|
|
|
#else
|
2005-08-19 22:24:21 +08:00
|
|
|
static const char *s_opts = "a:A:bB:cCd:D:e:F:ghi:Imno:p:P:stT:wx:X:";
|
2001-11-07 23:28:33 +08:00
|
|
|
#endif /* 1 */
|
|
|
|
static struct long_options l_opts[] = {
|
2002-05-23 07:22:46 +08:00
|
|
|
{ "align", require_arg, 'a' },
|
|
|
|
{ "alig", require_arg, 'a' },
|
|
|
|
{ "ali", require_arg, 'a' },
|
|
|
|
{ "al", require_arg, 'a' },
|
|
|
|
{ "api", require_arg, 'A' },
|
|
|
|
{ "ap", require_arg, 'A' },
|
2001-11-07 23:28:33 +08:00
|
|
|
#if 0
|
2002-05-23 07:22:46 +08:00
|
|
|
/* a sighting of the elusive binary option */
|
2001-11-07 23:28:33 +08:00
|
|
|
{ "binary", no_arg, 'b' },
|
|
|
|
{ "binar", no_arg, 'b' },
|
|
|
|
{ "bina", no_arg, 'b' },
|
|
|
|
{ "bin", no_arg, 'b' },
|
|
|
|
{ "bi", no_arg, 'b' },
|
|
|
|
#endif /* 0 */
|
2002-07-03 04:06:22 +08:00
|
|
|
{ "block-size", require_arg, 'B' },
|
|
|
|
{ "block-siz", require_arg, 'B' },
|
|
|
|
{ "block-si", require_arg, 'B' },
|
|
|
|
{ "block-s", require_arg, 'B' },
|
|
|
|
{ "block-", require_arg, 'B' },
|
|
|
|
{ "block", require_arg, 'B' },
|
|
|
|
{ "bloc", require_arg, 'B' },
|
|
|
|
{ "blo", require_arg, 'B' },
|
|
|
|
{ "bl", require_arg, 'B' },
|
2002-05-23 07:22:46 +08:00
|
|
|
{ "chunk", no_arg, 'c' },
|
|
|
|
{ "chun", no_arg, 'c' },
|
|
|
|
{ "chu", no_arg, 'c' },
|
|
|
|
{ "ch", no_arg, 'c' },
|
2002-06-27 23:09:12 +08:00
|
|
|
{ "collective", no_arg, 'C' },
|
|
|
|
{ "collectiv", no_arg, 'C' },
|
|
|
|
{ "collecti", no_arg, 'C' },
|
|
|
|
{ "collect", no_arg, 'C' },
|
|
|
|
{ "collec", no_arg, 'C' },
|
|
|
|
{ "colle", no_arg, 'C' },
|
|
|
|
{ "coll", no_arg, 'C' },
|
|
|
|
{ "col", no_arg, 'C' },
|
|
|
|
{ "co", no_arg, 'C' },
|
2002-01-30 12:16:15 +08:00
|
|
|
{ "debug", require_arg, 'D' },
|
|
|
|
{ "debu", require_arg, 'D' },
|
|
|
|
{ "deb", require_arg, 'D' },
|
|
|
|
{ "de", require_arg, 'D' },
|
2005-08-19 22:24:21 +08:00
|
|
|
{ "geometry", no_arg, 'g' },
|
|
|
|
{ "geometr", no_arg, 'g' },
|
|
|
|
{ "geomet", no_arg, 'g' },
|
|
|
|
{ "geome", no_arg, 'g' },
|
|
|
|
{ "geom", no_arg, 'g' },
|
|
|
|
{ "geo", no_arg, 'g' },
|
|
|
|
{ "ge", no_arg, 'g' },
|
2002-07-03 04:06:22 +08:00
|
|
|
{ "help", no_arg, 'h' },
|
|
|
|
{ "hel", no_arg, 'h' },
|
|
|
|
{ "he", no_arg, 'h' },
|
2002-06-27 21:11:31 +08:00
|
|
|
{ "interleaved", require_arg, 'I' },
|
|
|
|
{ "interleave", require_arg, 'I' },
|
|
|
|
{ "interleav", require_arg, 'I' },
|
|
|
|
{ "interlea", require_arg, 'I' },
|
|
|
|
{ "interle", require_arg, 'I' },
|
|
|
|
{ "interl", require_arg, 'I' },
|
|
|
|
{ "inter", require_arg, 'I' },
|
|
|
|
{ "inte", require_arg, 'I' },
|
|
|
|
{ "int", require_arg, 'I' },
|
|
|
|
{ "in", require_arg, 'I' },
|
[svn-r4733]
Purpose:
Feature Changes
Description:
Okay, I needed to add in more parameters so that the user can modify
how things are supposed to work with the PIO programs. Also needed
to change the algorithm a bit to make these work. And needed to add
in timing for the READ option.
Solution:
Added the above things. The parameters took a major rewrite of the
command-line parsing stuff. Here's the usage statement:
usage: pio_perf [OPTIONS]
OPTIONS
-h, --help Print a usage message and exit
-d N, --num-dsets=N Number of datasets per file [default:1]
-f S, --file-size=S Size of a single file [default: 64M]
-F N, --num-files=N Number of files [default: 1]
-H, --hdf5 Run HDF5 performance test
-i, --num-iterations Number of iterations to perform [default: 1]
-m, --mpiio Run MPI/IO performance test
-o F, --output=F Output raw data into file F [default: none]
-P N, --max-num-processes=N Maximum number of processes to use [default: 1]
-p N, --min-num-processes=N Minimum number of processes to use [default: 1]
-r, --raw Run raw (UNIX) performance test
-X S, --max-xfer-size=S Maximum transfer buffer size [default: 1M]
-x S, --min-xfer-size=S Minimum transfer buffer size [default: 1K]
F - is a filename.
N - is an integer >=0.
S - is a size specifier, an integer >=0 followed by a size indicator:
K - Kilobyte
M - Megabyte
G - Gigabyte
Example: 37M = 37 Megabytes
Platforms tested:
Linux, but not fully finished...
2001-12-19 04:12:21 +08:00
|
|
|
{ "max-num-processes", require_arg, 'P' },
|
|
|
|
{ "max-num-processe", require_arg, 'P' },
|
|
|
|
{ "max-num-process", require_arg, 'P' },
|
|
|
|
{ "max-num-proces", require_arg, 'P' },
|
|
|
|
{ "max-num-proce", require_arg, 'P' },
|
|
|
|
{ "max-num-proc", require_arg, 'P' },
|
|
|
|
{ "max-num-pro", require_arg, 'P' },
|
|
|
|
{ "max-num-pr", require_arg, 'P' },
|
|
|
|
{ "max-num-p", require_arg, 'P' },
|
|
|
|
{ "min-num-processes", require_arg, 'p' },
|
|
|
|
{ "min-num-processe", require_arg, 'p' },
|
|
|
|
{ "min-num-process", require_arg, 'p' },
|
|
|
|
{ "min-num-proces", require_arg, 'p' },
|
|
|
|
{ "min-num-proce", require_arg, 'p' },
|
|
|
|
{ "min-num-proc", require_arg, 'p' },
|
|
|
|
{ "min-num-pro", require_arg, 'p' },
|
|
|
|
{ "min-num-pr", require_arg, 'p' },
|
|
|
|
{ "min-num-p", require_arg, 'p' },
|
|
|
|
{ "max-xfer-size", require_arg, 'X' },
|
|
|
|
{ "max-xfer-siz", require_arg, 'X' },
|
|
|
|
{ "max-xfer-si", require_arg, 'X' },
|
|
|
|
{ "max-xfer-s", require_arg, 'X' },
|
|
|
|
{ "max-xfer", require_arg, 'X' },
|
|
|
|
{ "max-xfe", require_arg, 'X' },
|
|
|
|
{ "max-xf", require_arg, 'X' },
|
|
|
|
{ "max-x", require_arg, 'X' },
|
|
|
|
{ "min-xfer-size", require_arg, 'x' },
|
|
|
|
{ "min-xfer-siz", require_arg, 'x' },
|
|
|
|
{ "min-xfer-si", require_arg, 'x' },
|
|
|
|
{ "min-xfer-s", require_arg, 'x' },
|
|
|
|
{ "min-xfer", require_arg, 'x' },
|
|
|
|
{ "min-xfe", require_arg, 'x' },
|
|
|
|
{ "min-xf", require_arg, 'x' },
|
|
|
|
{ "min-x", require_arg, 'x' },
|
2002-07-15 23:21:05 +08:00
|
|
|
{ "mpi-posix", no_arg, 'm' },
|
|
|
|
{ "mpi-posi", no_arg, 'm' },
|
|
|
|
{ "mpi-pos", no_arg, 'm' },
|
|
|
|
{ "mpi-po", no_arg, 'm' },
|
|
|
|
{ "mpi-p", no_arg, 'm' },
|
|
|
|
{ "mpi-", no_arg, 'm' },
|
|
|
|
{ "mpi", no_arg, 'm' },
|
|
|
|
{ "mp", no_arg, 'm' },
|
2002-07-03 04:06:22 +08:00
|
|
|
{ "num-bytes", require_arg, 'e' },
|
|
|
|
{ "num-byte", require_arg, 'e' },
|
|
|
|
{ "num-byt", require_arg, 'e' },
|
|
|
|
{ "num-by", require_arg, 'e' },
|
|
|
|
{ "num-b", require_arg, 'e' },
|
[svn-r4733]
Purpose:
Feature Changes
Description:
Okay, I needed to add in more parameters so that the user can modify
how things are supposed to work with the PIO programs. Also needed
to change the algorithm a bit to make these work. And needed to add
in timing for the READ option.
Solution:
Added the above things. The parameters took a major rewrite of the
command-line parsing stuff. Here's the usage statement:
usage: pio_perf [OPTIONS]
OPTIONS
-h, --help Print a usage message and exit
-d N, --num-dsets=N Number of datasets per file [default:1]
-f S, --file-size=S Size of a single file [default: 64M]
-F N, --num-files=N Number of files [default: 1]
-H, --hdf5 Run HDF5 performance test
-i, --num-iterations Number of iterations to perform [default: 1]
-m, --mpiio Run MPI/IO performance test
-o F, --output=F Output raw data into file F [default: none]
-P N, --max-num-processes=N Maximum number of processes to use [default: 1]
-p N, --min-num-processes=N Minimum number of processes to use [default: 1]
-r, --raw Run raw (UNIX) performance test
-X S, --max-xfer-size=S Maximum transfer buffer size [default: 1M]
-x S, --min-xfer-size=S Minimum transfer buffer size [default: 1K]
F - is a filename.
N - is an integer >=0.
S - is a size specifier, an integer >=0 followed by a size indicator:
K - Kilobyte
M - Megabyte
G - Gigabyte
Example: 37M = 37 Megabytes
Platforms tested:
Linux, but not fully finished...
2001-12-19 04:12:21 +08:00
|
|
|
{ "num-dsets", require_arg, 'd' },
|
|
|
|
{ "num-dset", require_arg, 'd' },
|
|
|
|
{ "num-dse", require_arg, 'd' },
|
|
|
|
{ "num-ds", require_arg, 'd' },
|
|
|
|
{ "num-d", require_arg, 'd' },
|
|
|
|
{ "num-files", require_arg, 'F' },
|
|
|
|
{ "num-file", require_arg, 'F' },
|
|
|
|
{ "num-fil", require_arg, 'F' },
|
|
|
|
{ "num-fi", require_arg, 'F' },
|
|
|
|
{ "num-f", require_arg, 'F' },
|
|
|
|
{ "num-iterations", require_arg, 'i' },
|
|
|
|
{ "num-iteration", require_arg, 'i' },
|
|
|
|
{ "num-iteratio", require_arg, 'i' },
|
|
|
|
{ "num-iterati", require_arg, 'i' },
|
|
|
|
{ "num-iterat", require_arg, 'i' },
|
|
|
|
{ "num-itera", require_arg, 'i' },
|
|
|
|
{ "num-iter", require_arg, 'i' },
|
|
|
|
{ "num-ite", require_arg, 'i' },
|
|
|
|
{ "num-it", require_arg, 'i' },
|
|
|
|
{ "num-i", require_arg, 'i' },
|
2001-11-07 23:28:33 +08:00
|
|
|
{ "output", require_arg, 'o' },
|
|
|
|
{ "outpu", require_arg, 'o' },
|
|
|
|
{ "outp", require_arg, 'o' },
|
|
|
|
{ "out", require_arg, 'o' },
|
|
|
|
{ "ou", require_arg, 'o' },
|
2002-05-23 07:22:46 +08:00
|
|
|
{ "threshold", require_arg, 'T' },
|
|
|
|
{ "threshol", require_arg, 'T' },
|
|
|
|
{ "thresho", require_arg, 'T' },
|
|
|
|
{ "thresh", require_arg, 'T' },
|
|
|
|
{ "thres", require_arg, 'T' },
|
|
|
|
{ "thre", require_arg, 'T' },
|
|
|
|
{ "thr", require_arg, 'T' },
|
|
|
|
{ "th", require_arg, 'T' },
|
2002-06-05 05:31:35 +08:00
|
|
|
{ "write-only", require_arg, 'w' },
|
|
|
|
{ "write-onl", require_arg, 'w' },
|
|
|
|
{ "write-on", require_arg, 'w' },
|
|
|
|
{ "write-o", require_arg, 'w' },
|
|
|
|
{ "write", require_arg, 'w' },
|
|
|
|
{ "writ", require_arg, 'w' },
|
|
|
|
{ "wri", require_arg, 'w' },
|
|
|
|
{ "wr", require_arg, 'w' },
|
2001-11-07 23:28:33 +08:00
|
|
|
{ NULL, 0, '\0' }
|
|
|
|
};
|
|
|
|
|
|
|
|
struct options {
|
[svn-r4733]
Purpose:
Feature Changes
Description:
Okay, I needed to add in more parameters so that the user can modify
how things are supposed to work with the PIO programs. Also needed
to change the algorithm a bit to make these work. And needed to add
in timing for the READ option.
Solution:
Added the above things. The parameters took a major rewrite of the
command-line parsing stuff. Here's the usage statement:
usage: pio_perf [OPTIONS]
OPTIONS
-h, --help Print a usage message and exit
-d N, --num-dsets=N Number of datasets per file [default:1]
-f S, --file-size=S Size of a single file [default: 64M]
-F N, --num-files=N Number of files [default: 1]
-H, --hdf5 Run HDF5 performance test
-i, --num-iterations Number of iterations to perform [default: 1]
-m, --mpiio Run MPI/IO performance test
-o F, --output=F Output raw data into file F [default: none]
-P N, --max-num-processes=N Maximum number of processes to use [default: 1]
-p N, --min-num-processes=N Minimum number of processes to use [default: 1]
-r, --raw Run raw (UNIX) performance test
-X S, --max-xfer-size=S Maximum transfer buffer size [default: 1M]
-x S, --min-xfer-size=S Minimum transfer buffer size [default: 1K]
F - is a filename.
N - is an integer >=0.
S - is a size specifier, an integer >=0 followed by a size indicator:
K - Kilobyte
M - Megabyte
G - Gigabyte
Example: 37M = 37 Megabytes
Platforms tested:
Linux, but not fully finished...
2001-12-19 04:12:21 +08:00
|
|
|
long io_types; /* bitmask of which I/O types to test */
|
2001-11-07 23:28:33 +08:00
|
|
|
const char *output_file; /* file to print report to */
|
[svn-r4733]
Purpose:
Feature Changes
Description:
Okay, I needed to add in more parameters so that the user can modify
how things are supposed to work with the PIO programs. Also needed
to change the algorithm a bit to make these work. And needed to add
in timing for the READ option.
Solution:
Added the above things. The parameters took a major rewrite of the
command-line parsing stuff. Here's the usage statement:
usage: pio_perf [OPTIONS]
OPTIONS
-h, --help Print a usage message and exit
-d N, --num-dsets=N Number of datasets per file [default:1]
-f S, --file-size=S Size of a single file [default: 64M]
-F N, --num-files=N Number of files [default: 1]
-H, --hdf5 Run HDF5 performance test
-i, --num-iterations Number of iterations to perform [default: 1]
-m, --mpiio Run MPI/IO performance test
-o F, --output=F Output raw data into file F [default: none]
-P N, --max-num-processes=N Maximum number of processes to use [default: 1]
-p N, --min-num-processes=N Minimum number of processes to use [default: 1]
-r, --raw Run raw (UNIX) performance test
-X S, --max-xfer-size=S Maximum transfer buffer size [default: 1M]
-x S, --min-xfer-size=S Minimum transfer buffer size [default: 1K]
F - is a filename.
N - is an integer >=0.
S - is a size specifier, an integer >=0 followed by a size indicator:
K - Kilobyte
M - Megabyte
G - Gigabyte
Example: 37M = 37 Megabytes
Platforms tested:
Linux, but not fully finished...
2001-12-19 04:12:21 +08:00
|
|
|
long num_dsets; /* number of datasets */
|
|
|
|
long num_files; /* number of files */
|
2005-08-19 22:24:21 +08:00
|
|
|
off_t num_bpp; /* number of bytes per proc per dset */
|
2002-06-19 20:54:53 +08:00
|
|
|
int num_iters; /* number of iterations */
|
2002-05-23 07:22:46 +08:00
|
|
|
int max_num_procs; /* maximum number of processes to use */
|
|
|
|
int min_num_procs; /* minimum number of processes to use */
|
2002-05-14 03:55:33 +08:00
|
|
|
size_t max_xfer_size; /* maximum transfer buffer size */
|
|
|
|
size_t min_xfer_size; /* minimum transfer buffer size */
|
2002-07-03 04:06:22 +08:00
|
|
|
size_t blk_size; /* Block size */
|
2002-06-27 21:11:31 +08:00
|
|
|
unsigned interleaved; /* Interleaved vs. contiguous blocks */
|
2002-06-27 23:09:12 +08:00
|
|
|
unsigned collective; /* Collective vs. independent I/O */
|
2008-07-24 04:41:02 +08:00
|
|
|
unsigned dim2d; /* 1D vs. 2D geometry */
|
2002-05-23 07:22:46 +08:00
|
|
|
int print_times; /* print times as well as throughputs */
|
|
|
|
int print_raw; /* print raw data throughput info */
|
|
|
|
off_t h5_alignment; /* alignment in HDF5 file */
|
|
|
|
off_t h5_threshold; /* threshold for alignment in HDF5 file */
|
|
|
|
int h5_use_chunks; /* Make HDF5 dataset chunked */
|
2002-06-05 05:31:35 +08:00
|
|
|
int h5_write_only; /* Perform the write tests only */
|
2002-07-15 23:21:05 +08:00
|
|
|
unsigned h5_use_mpi_posix; /* Use MPI-posix VFD for HDF5 I/O (instead of MPI-I/O VFD) */
|
2002-06-06 12:58:29 +08:00
|
|
|
int verify; /* Verify data correctness */
|
2001-11-07 23:28:33 +08:00
|
|
|
};
|
|
|
|
|
2001-12-20 06:10:15 +08:00
|
|
|
typedef struct _minmax {
|
|
|
|
double min;
|
|
|
|
double max;
|
|
|
|
double sum;
|
|
|
|
int num;
|
|
|
|
} minmax;
|
|
|
|
|
2001-11-07 23:28:33 +08:00
|
|
|
/* local functions */
|
2002-05-14 03:55:33 +08:00
|
|
|
static off_t parse_size_directive(const char *size);
|
2001-11-07 23:28:33 +08:00
|
|
|
static struct options *parse_command_line(int argc, char *argv[]);
|
2002-05-07 07:58:57 +08:00
|
|
|
static void run_test_loop(struct options *options);
|
2002-05-23 07:22:46 +08:00
|
|
|
static int run_test(iotype iot, parameters parms, struct options *opts);
|
2002-05-07 07:58:57 +08:00
|
|
|
static void output_all_info(minmax *mm, int count, int indent_level);
|
2002-01-12 04:16:44 +08:00
|
|
|
static void get_minmax(minmax *mm, double val);
|
2002-05-23 07:22:46 +08:00
|
|
|
static minmax accumulate_minmax_stuff(minmax *mm, int count);
|
2001-12-21 13:58:41 +08:00
|
|
|
static int create_comm_world(int num_procs, int *doing_pio);
|
2001-12-20 06:10:15 +08:00
|
|
|
static int destroy_comm_world(void);
|
2002-05-29 05:54:58 +08:00
|
|
|
static void output_results(const struct options *options, const char *name,
|
|
|
|
minmax *table, int table_size, off_t data_size);
|
2008-10-04 04:51:19 +08:00
|
|
|
static void output_times(const struct options *options, const char *name,
|
|
|
|
minmax *table, int table_size);
|
2002-05-07 07:58:57 +08:00
|
|
|
static void output_report(const char *fmt, ...);
|
|
|
|
static void print_indent(register int indent);
|
2001-11-07 23:28:33 +08:00
|
|
|
static void usage(const char *prog);
|
2002-05-29 05:54:58 +08:00
|
|
|
static void report_parameters(struct options *opts);
|
2001-11-07 23:28:33 +08:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Function: main
|
|
|
|
* Purpose: Start things up. Initialize MPI and then call the test looping
|
|
|
|
* function.
|
|
|
|
* Return: EXIT_SUCCESS or EXIT_FAILURE
|
|
|
|
* Programmer: Bill Wendling, 30. October 2001
|
|
|
|
* Modifications:
|
|
|
|
*/
|
|
|
|
int
|
|
|
|
main(int argc, char **argv)
|
|
|
|
{
|
2002-02-14 23:51:12 +08:00
|
|
|
int ret;
|
2001-11-07 23:28:33 +08:00
|
|
|
int exit_value = EXIT_SUCCESS;
|
2001-12-20 06:10:15 +08:00
|
|
|
struct options *opts = NULL;
|
2001-11-07 23:28:33 +08:00
|
|
|
|
2002-05-07 07:58:57 +08:00
|
|
|
output = stdout;
|
|
|
|
|
2001-11-07 23:28:33 +08:00
|
|
|
/* initialize MPI and get the maximum num of processors we started with */
|
|
|
|
MPI_Init(&argc, &argv);
|
2002-02-14 23:51:12 +08:00
|
|
|
ret = MPI_Comm_size(MPI_COMM_WORLD, &comm_world_nprocs_g);
|
2001-11-07 23:28:33 +08:00
|
|
|
|
|
|
|
if (ret != MPI_SUCCESS) {
|
|
|
|
fprintf(stderr, "%s: MPI_Comm_size call failed\n", progname);
|
|
|
|
|
|
|
|
if (ret == MPI_ERR_COMM)
|
|
|
|
fprintf(stderr, "invalid MPI communicator\n");
|
|
|
|
else
|
|
|
|
fprintf(stderr, "invalid argument\n");
|
|
|
|
|
|
|
|
exit_value = EXIT_FAILURE;
|
2001-12-20 06:10:15 +08:00
|
|
|
goto finish;
|
|
|
|
}
|
2002-05-29 05:54:58 +08:00
|
|
|
|
2002-02-14 23:51:12 +08:00
|
|
|
ret = MPI_Comm_rank(MPI_COMM_WORLD, &comm_world_rank_g);
|
|
|
|
|
|
|
|
if (ret != MPI_SUCCESS) {
|
|
|
|
fprintf(stderr, "%s: MPI_Comm_rank call failed\n", progname);
|
|
|
|
|
|
|
|
if (ret == MPI_ERR_COMM)
|
|
|
|
fprintf(stderr, "invalid MPI communicator\n");
|
|
|
|
else
|
|
|
|
fprintf(stderr, "invalid argument\n");
|
|
|
|
|
|
|
|
exit_value = EXIT_FAILURE;
|
|
|
|
goto finish;
|
|
|
|
}
|
2001-12-20 06:10:15 +08:00
|
|
|
|
|
|
|
pio_comm_g = MPI_COMM_WORLD;
|
|
|
|
|
2002-05-22 02:49:44 +08:00
|
|
|
h5_set_info_object();
|
2001-12-20 06:10:15 +08:00
|
|
|
opts = parse_command_line(argc, argv);
|
|
|
|
|
|
|
|
if (!opts) {
|
|
|
|
exit_value = EXIT_FAILURE;
|
|
|
|
goto finish;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (opts->output_file) {
|
|
|
|
if ((output = fopen(opts->output_file, "w")) == NULL) {
|
|
|
|
fprintf(stderr, "%s: cannot open output file\n", progname);
|
|
|
|
perror(opts->output_file);
|
|
|
|
goto finish;
|
|
|
|
}
|
2001-11-07 23:28:33 +08:00
|
|
|
}
|
2002-05-29 05:54:58 +08:00
|
|
|
|
2002-05-29 06:00:26 +08:00
|
|
|
if ((pio_debug_level == 0 && comm_world_rank_g == 0) || pio_debug_level > 0)
|
|
|
|
report_parameters(opts);
|
|
|
|
|
2002-05-07 07:58:57 +08:00
|
|
|
run_test_loop(opts);
|
2001-11-07 23:28:33 +08:00
|
|
|
|
2001-12-20 06:10:15 +08:00
|
|
|
finish:
|
2001-11-07 23:28:33 +08:00
|
|
|
MPI_Finalize();
|
|
|
|
free(opts);
|
|
|
|
return exit_value;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Function: run_test_loop
|
|
|
|
* Purpose: Run the I/O tests. Write the results to OUTPUT.
|
|
|
|
*
|
|
|
|
* - The slowest changing part of the test is the number of
|
|
|
|
* processors to use. For each loop iteration, we divide that
|
|
|
|
* number by 2 and rerun the test.
|
|
|
|
*
|
2002-05-23 07:22:46 +08:00
|
|
|
* - The second slowest is what type of IO API to perform. We have
|
|
|
|
* three choices: POSIXIO, MPI-IO, and PHDF5.
|
2001-11-07 23:28:33 +08:00
|
|
|
*
|
|
|
|
* - Then we change the size of the buffer. This information is
|
|
|
|
* inferred from the number of datasets to create and the number
|
|
|
|
* of integers to put into each dataset. The backend code figures
|
|
|
|
* this out.
|
|
|
|
*
|
|
|
|
* Return: Nothing
|
|
|
|
* Programmer: Bill Wendling, 30. October 2001
|
|
|
|
* Modifications:
|
2005-08-19 22:24:21 +08:00
|
|
|
* Added 2D testing (Christian Chilan, 10. August 2005)
|
2001-11-07 23:28:33 +08:00
|
|
|
*/
|
|
|
|
static void
|
2002-05-07 07:58:57 +08:00
|
|
|
run_test_loop(struct options *opts)
|
2001-11-07 23:28:33 +08:00
|
|
|
{
|
|
|
|
parameters parms;
|
2002-05-23 07:22:46 +08:00
|
|
|
int num_procs;
|
2002-05-29 05:54:58 +08:00
|
|
|
int doing_pio; /* if this process is doing PIO */
|
2001-11-07 23:28:33 +08:00
|
|
|
|
[svn-r4733]
Purpose:
Feature Changes
Description:
Okay, I needed to add in more parameters so that the user can modify
how things are supposed to work with the PIO programs. Also needed
to change the algorithm a bit to make these work. And needed to add
in timing for the READ option.
Solution:
Added the above things. The parameters took a major rewrite of the
command-line parsing stuff. Here's the usage statement:
usage: pio_perf [OPTIONS]
OPTIONS
-h, --help Print a usage message and exit
-d N, --num-dsets=N Number of datasets per file [default:1]
-f S, --file-size=S Size of a single file [default: 64M]
-F N, --num-files=N Number of files [default: 1]
-H, --hdf5 Run HDF5 performance test
-i, --num-iterations Number of iterations to perform [default: 1]
-m, --mpiio Run MPI/IO performance test
-o F, --output=F Output raw data into file F [default: none]
-P N, --max-num-processes=N Maximum number of processes to use [default: 1]
-p N, --min-num-processes=N Minimum number of processes to use [default: 1]
-r, --raw Run raw (UNIX) performance test
-X S, --max-xfer-size=S Maximum transfer buffer size [default: 1M]
-x S, --min-xfer-size=S Minimum transfer buffer size [default: 1K]
F - is a filename.
N - is an integer >=0.
S - is a size specifier, an integer >=0 followed by a size indicator:
K - Kilobyte
M - Megabyte
G - Gigabyte
Example: 37M = 37 Megabytes
Platforms tested:
Linux, but not fully finished...
2001-12-19 04:12:21 +08:00
|
|
|
parms.num_files = opts->num_files;
|
|
|
|
parms.num_dsets = opts->num_dsets;
|
|
|
|
parms.num_iters = opts->num_iters;
|
2002-07-03 04:06:22 +08:00
|
|
|
parms.blk_size = opts->blk_size;
|
2002-06-27 21:11:31 +08:00
|
|
|
parms.interleaved = opts->interleaved;
|
2002-06-27 23:09:12 +08:00
|
|
|
parms.collective = opts->collective;
|
2005-08-19 22:24:21 +08:00
|
|
|
parms.dim2d = opts->dim2d;
|
2002-05-23 07:22:46 +08:00
|
|
|
parms.h5_align = opts->h5_alignment;
|
|
|
|
parms.h5_thresh = opts->h5_threshold;
|
|
|
|
parms.h5_use_chunks = opts->h5_use_chunks;
|
2002-06-05 05:31:35 +08:00
|
|
|
parms.h5_write_only = opts->h5_write_only;
|
2002-07-15 23:21:05 +08:00
|
|
|
parms.h5_use_mpi_posix = opts->h5_use_mpi_posix;
|
2002-06-06 12:58:29 +08:00
|
|
|
parms.verify = opts->verify;
|
2001-11-07 23:28:33 +08:00
|
|
|
|
2002-02-14 23:51:12 +08:00
|
|
|
/* start with max_num_procs and decrement it by half for each loop. */
|
|
|
|
/* if performance needs restart, fewer processes may be needed. */
|
|
|
|
for (num_procs = opts->max_num_procs;
|
|
|
|
num_procs >= opts->min_num_procs; num_procs >>= 1) {
|
2002-05-14 03:55:33 +08:00
|
|
|
register size_t buf_size;
|
2001-11-07 23:28:33 +08:00
|
|
|
|
[svn-r4733]
Purpose:
Feature Changes
Description:
Okay, I needed to add in more parameters so that the user can modify
how things are supposed to work with the PIO programs. Also needed
to change the algorithm a bit to make these work. And needed to add
in timing for the READ option.
Solution:
Added the above things. The parameters took a major rewrite of the
command-line parsing stuff. Here's the usage statement:
usage: pio_perf [OPTIONS]
OPTIONS
-h, --help Print a usage message and exit
-d N, --num-dsets=N Number of datasets per file [default:1]
-f S, --file-size=S Size of a single file [default: 64M]
-F N, --num-files=N Number of files [default: 1]
-H, --hdf5 Run HDF5 performance test
-i, --num-iterations Number of iterations to perform [default: 1]
-m, --mpiio Run MPI/IO performance test
-o F, --output=F Output raw data into file F [default: none]
-P N, --max-num-processes=N Maximum number of processes to use [default: 1]
-p N, --min-num-processes=N Minimum number of processes to use [default: 1]
-r, --raw Run raw (UNIX) performance test
-X S, --max-xfer-size=S Maximum transfer buffer size [default: 1M]
-x S, --min-xfer-size=S Minimum transfer buffer size [default: 1K]
F - is a filename.
N - is an integer >=0.
S - is a size specifier, an integer >=0 followed by a size indicator:
K - Kilobyte
M - Megabyte
G - Gigabyte
Example: 37M = 37 Megabytes
Platforms tested:
Linux, but not fully finished...
2001-12-19 04:12:21 +08:00
|
|
|
parms.num_procs = num_procs;
|
2001-11-07 23:28:33 +08:00
|
|
|
|
2001-12-21 13:58:41 +08:00
|
|
|
if (create_comm_world(parms.num_procs, &doing_pio) != SUCCESS) {
|
2001-12-20 06:10:15 +08:00
|
|
|
/* do something harsh */
|
|
|
|
}
|
|
|
|
|
2008-07-24 04:41:02 +08:00
|
|
|
/* only processes doing PIO will run the tests */
|
|
|
|
if (doing_pio){
|
2002-05-07 07:58:57 +08:00
|
|
|
output_report("Number of processors = %ld\n", parms.num_procs);
|
2002-01-30 12:16:15 +08:00
|
|
|
|
|
|
|
/* multiply the xfer buffer size by 2 for each loop iteration */
|
|
|
|
for (buf_size = opts->min_xfer_size;
|
|
|
|
buf_size <= opts->max_xfer_size; buf_size <<= 1) {
|
|
|
|
parms.buf_size = buf_size;
|
|
|
|
|
2008-07-24 04:41:02 +08:00
|
|
|
if (parms.dim2d){
|
|
|
|
parms.num_bytes = (off_t)pow((double)(opts->num_bpp*parms.num_procs),2);
|
|
|
|
if (parms.interleaved)
|
|
|
|
output_report("Transfer Buffer Size: %ldx%ld bytes, File size: %.2f MBs\n",
|
|
|
|
buf_size, opts->blk_size,
|
|
|
|
((double)parms.num_dsets * (double)parms.num_bytes)
|
|
|
|
/ ONE_MB);
|
|
|
|
else
|
|
|
|
output_report("Transfer Buffer Size: %ldx%ld bytes, File size: %.2f MBs\n",
|
|
|
|
opts->blk_size, buf_size,
|
|
|
|
((double)parms.num_dsets * (double)parms.num_bytes)
|
|
|
|
/ ONE_MB);
|
|
|
|
|
|
|
|
print_indent(1);
|
|
|
|
output_report(" # of files: %ld, # of datasets: %ld, dataset size: %.2fx%.2f KBs\n",
|
|
|
|
parms.num_files, parms.num_dsets, (double)(opts->num_bpp*parms.num_procs)/ONE_KB,
|
|
|
|
(double)(opts->num_bpp*parms.num_procs)/ONE_KB);
|
|
|
|
}
|
|
|
|
else{
|
|
|
|
parms.num_bytes = (off_t)opts->num_bpp*parms.num_procs;
|
|
|
|
output_report("Transfer Buffer Size: %ld bytes, File size: %.2f MBs\n",
|
|
|
|
buf_size,((double)parms.num_dsets * (double)parms.num_bytes) / ONE_MB);
|
|
|
|
|
|
|
|
print_indent(1);
|
|
|
|
output_report(" # of files: %ld, # of datasets: %ld, dataset size: %.2f MBs\n",
|
|
|
|
parms.num_files, parms.num_dsets, (double)(opts->num_bpp*parms.num_procs)/ONE_MB);
|
|
|
|
}
|
2002-01-30 12:16:15 +08:00
|
|
|
|
2002-05-30 07:31:12 +08:00
|
|
|
if (opts->io_types & PIO_POSIX)
|
2002-05-23 07:22:46 +08:00
|
|
|
run_test(POSIXIO, parms, opts);
|
2002-01-30 12:16:15 +08:00
|
|
|
|
2002-05-30 07:31:12 +08:00
|
|
|
if (opts->io_types & PIO_MPI)
|
2002-05-23 07:22:46 +08:00
|
|
|
run_test(MPIO, parms, opts);
|
2002-01-30 12:16:15 +08:00
|
|
|
|
2002-05-30 07:31:12 +08:00
|
|
|
if (opts->io_types & PIO_HDF5)
|
2002-05-23 07:22:46 +08:00
|
|
|
run_test(PHDF5, parms, opts);
|
|
|
|
|
|
|
|
/* Run the tests once if buf_size==0, but then break out */
|
|
|
|
if(buf_size==0)
|
|
|
|
break;
|
2002-01-30 12:16:15 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
if (destroy_comm_world() != SUCCESS) {
|
|
|
|
/* do something harsh */
|
|
|
|
}
|
2008-07-24 04:41:02 +08:00
|
|
|
}
|
2001-11-07 23:28:33 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
[svn-r4733]
Purpose:
Feature Changes
Description:
Okay, I needed to add in more parameters so that the user can modify
how things are supposed to work with the PIO programs. Also needed
to change the algorithm a bit to make these work. And needed to add
in timing for the READ option.
Solution:
Added the above things. The parameters took a major rewrite of the
command-line parsing stuff. Here's the usage statement:
usage: pio_perf [OPTIONS]
OPTIONS
-h, --help Print a usage message and exit
-d N, --num-dsets=N Number of datasets per file [default:1]
-f S, --file-size=S Size of a single file [default: 64M]
-F N, --num-files=N Number of files [default: 1]
-H, --hdf5 Run HDF5 performance test
-i, --num-iterations Number of iterations to perform [default: 1]
-m, --mpiio Run MPI/IO performance test
-o F, --output=F Output raw data into file F [default: none]
-P N, --max-num-processes=N Maximum number of processes to use [default: 1]
-p N, --min-num-processes=N Minimum number of processes to use [default: 1]
-r, --raw Run raw (UNIX) performance test
-X S, --max-xfer-size=S Maximum transfer buffer size [default: 1M]
-x S, --min-xfer-size=S Minimum transfer buffer size [default: 1K]
F - is a filename.
N - is an integer >=0.
S - is a size specifier, an integer >=0 followed by a size indicator:
K - Kilobyte
M - Megabyte
G - Gigabyte
Example: 37M = 37 Megabytes
Platforms tested:
Linux, but not fully finished...
2001-12-19 04:12:21 +08:00
|
|
|
* Function: run_test
|
|
|
|
* Purpose: Inner loop call to actually run the I/O test.
|
2001-11-07 23:28:33 +08:00
|
|
|
* Return: Nothing
|
[svn-r4733]
Purpose:
Feature Changes
Description:
Okay, I needed to add in more parameters so that the user can modify
how things are supposed to work with the PIO programs. Also needed
to change the algorithm a bit to make these work. And needed to add
in timing for the READ option.
Solution:
Added the above things. The parameters took a major rewrite of the
command-line parsing stuff. Here's the usage statement:
usage: pio_perf [OPTIONS]
OPTIONS
-h, --help Print a usage message and exit
-d N, --num-dsets=N Number of datasets per file [default:1]
-f S, --file-size=S Size of a single file [default: 64M]
-F N, --num-files=N Number of files [default: 1]
-H, --hdf5 Run HDF5 performance test
-i, --num-iterations Number of iterations to perform [default: 1]
-m, --mpiio Run MPI/IO performance test
-o F, --output=F Output raw data into file F [default: none]
-P N, --max-num-processes=N Maximum number of processes to use [default: 1]
-p N, --min-num-processes=N Minimum number of processes to use [default: 1]
-r, --raw Run raw (UNIX) performance test
-X S, --max-xfer-size=S Maximum transfer buffer size [default: 1M]
-x S, --min-xfer-size=S Minimum transfer buffer size [default: 1K]
F - is a filename.
N - is an integer >=0.
S - is a size specifier, an integer >=0 followed by a size indicator:
K - Kilobyte
M - Megabyte
G - Gigabyte
Example: 37M = 37 Megabytes
Platforms tested:
Linux, but not fully finished...
2001-12-19 04:12:21 +08:00
|
|
|
* Programmer: Bill Wendling, 18. December 2001
|
2001-11-07 23:28:33 +08:00
|
|
|
* Modifications:
|
|
|
|
*/
|
2001-12-20 06:10:15 +08:00
|
|
|
static int
|
2002-05-23 07:22:46 +08:00
|
|
|
run_test(iotype iot, parameters parms, struct options *opts)
|
2001-11-07 23:28:33 +08:00
|
|
|
{
|
2001-12-20 06:10:15 +08:00
|
|
|
results res;
|
|
|
|
register int i, ret_value = SUCCESS;
|
|
|
|
int comm_size;
|
2002-05-14 03:55:33 +08:00
|
|
|
off_t raw_size;
|
2002-05-23 07:22:46 +08:00
|
|
|
minmax *write_mpi_mm_table=NULL;
|
|
|
|
minmax *write_mm_table=NULL;
|
|
|
|
minmax *write_gross_mm_table=NULL;
|
|
|
|
minmax *write_raw_mm_table=NULL;
|
|
|
|
minmax *read_mpi_mm_table=NULL;
|
|
|
|
minmax *read_mm_table=NULL;
|
|
|
|
minmax *read_gross_mm_table=NULL;
|
|
|
|
minmax *read_raw_mm_table=NULL;
|
2008-07-24 04:41:02 +08:00
|
|
|
minmax *read_open_mm_table=NULL;
|
|
|
|
minmax *read_close_mm_table=NULL;
|
|
|
|
minmax *write_open_mm_table=NULL;
|
|
|
|
minmax *write_close_mm_table=NULL;
|
2002-05-08 01:34:59 +08:00
|
|
|
minmax write_mpi_mm = {0.0, 0.0, 0.0, 0};
|
2001-12-20 06:10:15 +08:00
|
|
|
minmax write_mm = {0.0, 0.0, 0.0, 0};
|
2002-01-12 03:44:51 +08:00
|
|
|
minmax write_gross_mm = {0.0, 0.0, 0.0, 0};
|
2002-05-23 07:22:46 +08:00
|
|
|
minmax write_raw_mm = {0.0, 0.0, 0.0, 0};
|
2002-05-08 01:34:59 +08:00
|
|
|
minmax read_mpi_mm = {0.0, 0.0, 0.0, 0};
|
2001-12-20 06:10:15 +08:00
|
|
|
minmax read_mm = {0.0, 0.0, 0.0, 0};
|
2002-01-12 03:44:51 +08:00
|
|
|
minmax read_gross_mm = {0.0, 0.0, 0.0, 0};
|
2002-05-23 07:22:46 +08:00
|
|
|
minmax read_raw_mm = {0.0, 0.0, 0.0, 0};
|
2008-07-24 04:41:02 +08:00
|
|
|
minmax read_open_mm = {0.0, 0.0, 0.0, 0};
|
|
|
|
minmax read_close_mm = {0.0, 0.0, 0.0, 0};
|
|
|
|
minmax write_open_mm = {0.0, 0.0, 0.0, 0};
|
|
|
|
minmax write_close_mm = {0.0, 0.0, 0.0, 0};
|
[svn-r4733]
Purpose:
Feature Changes
Description:
Okay, I needed to add in more parameters so that the user can modify
how things are supposed to work with the PIO programs. Also needed
to change the algorithm a bit to make these work. And needed to add
in timing for the READ option.
Solution:
Added the above things. The parameters took a major rewrite of the
command-line parsing stuff. Here's the usage statement:
usage: pio_perf [OPTIONS]
OPTIONS
-h, --help Print a usage message and exit
-d N, --num-dsets=N Number of datasets per file [default:1]
-f S, --file-size=S Size of a single file [default: 64M]
-F N, --num-files=N Number of files [default: 1]
-H, --hdf5 Run HDF5 performance test
-i, --num-iterations Number of iterations to perform [default: 1]
-m, --mpiio Run MPI/IO performance test
-o F, --output=F Output raw data into file F [default: none]
-P N, --max-num-processes=N Maximum number of processes to use [default: 1]
-p N, --min-num-processes=N Minimum number of processes to use [default: 1]
-r, --raw Run raw (UNIX) performance test
-X S, --max-xfer-size=S Maximum transfer buffer size [default: 1M]
-x S, --min-xfer-size=S Minimum transfer buffer size [default: 1K]
F - is a filename.
N - is an integer >=0.
S - is a size specifier, an integer >=0 followed by a size indicator:
K - Kilobyte
M - Megabyte
G - Gigabyte
Example: 37M = 37 Megabytes
Platforms tested:
Linux, but not fully finished...
2001-12-19 04:12:21 +08:00
|
|
|
|
2008-10-04 04:51:19 +08:00
|
|
|
raw_size = parms.num_files * (off_t)parms.num_dsets * (off_t)parms.num_bytes;
|
[svn-r4733]
Purpose:
Feature Changes
Description:
Okay, I needed to add in more parameters so that the user can modify
how things are supposed to work with the PIO programs. Also needed
to change the algorithm a bit to make these work. And needed to add
in timing for the READ option.
Solution:
Added the above things. The parameters took a major rewrite of the
command-line parsing stuff. Here's the usage statement:
usage: pio_perf [OPTIONS]
OPTIONS
-h, --help Print a usage message and exit
-d N, --num-dsets=N Number of datasets per file [default:1]
-f S, --file-size=S Size of a single file [default: 64M]
-F N, --num-files=N Number of files [default: 1]
-H, --hdf5 Run HDF5 performance test
-i, --num-iterations Number of iterations to perform [default: 1]
-m, --mpiio Run MPI/IO performance test
-o F, --output=F Output raw data into file F [default: none]
-P N, --max-num-processes=N Maximum number of processes to use [default: 1]
-p N, --min-num-processes=N Minimum number of processes to use [default: 1]
-r, --raw Run raw (UNIX) performance test
-X S, --max-xfer-size=S Maximum transfer buffer size [default: 1M]
-x S, --min-xfer-size=S Minimum transfer buffer size [default: 1K]
F - is a filename.
N - is an integer >=0.
S - is a size specifier, an integer >=0 followed by a size indicator:
K - Kilobyte
M - Megabyte
G - Gigabyte
Example: 37M = 37 Megabytes
Platforms tested:
Linux, but not fully finished...
2001-12-19 04:12:21 +08:00
|
|
|
parms.io_type = iot;
|
2002-05-07 07:58:57 +08:00
|
|
|
print_indent(2);
|
2002-05-23 07:22:46 +08:00
|
|
|
output_report("IO API = ");
|
[svn-r4733]
Purpose:
Feature Changes
Description:
Okay, I needed to add in more parameters so that the user can modify
how things are supposed to work with the PIO programs. Also needed
to change the algorithm a bit to make these work. And needed to add
in timing for the READ option.
Solution:
Added the above things. The parameters took a major rewrite of the
command-line parsing stuff. Here's the usage statement:
usage: pio_perf [OPTIONS]
OPTIONS
-h, --help Print a usage message and exit
-d N, --num-dsets=N Number of datasets per file [default:1]
-f S, --file-size=S Size of a single file [default: 64M]
-F N, --num-files=N Number of files [default: 1]
-H, --hdf5 Run HDF5 performance test
-i, --num-iterations Number of iterations to perform [default: 1]
-m, --mpiio Run MPI/IO performance test
-o F, --output=F Output raw data into file F [default: none]
-P N, --max-num-processes=N Maximum number of processes to use [default: 1]
-p N, --min-num-processes=N Minimum number of processes to use [default: 1]
-r, --raw Run raw (UNIX) performance test
-X S, --max-xfer-size=S Maximum transfer buffer size [default: 1M]
-x S, --min-xfer-size=S Minimum transfer buffer size [default: 1K]
F - is a filename.
N - is an integer >=0.
S - is a size specifier, an integer >=0 followed by a size indicator:
K - Kilobyte
M - Megabyte
G - Gigabyte
Example: 37M = 37 Megabytes
Platforms tested:
Linux, but not fully finished...
2001-12-19 04:12:21 +08:00
|
|
|
|
|
|
|
switch (iot) {
|
2002-05-23 07:22:46 +08:00
|
|
|
case POSIXIO:
|
|
|
|
output_report("POSIX\n");
|
[svn-r4733]
Purpose:
Feature Changes
Description:
Okay, I needed to add in more parameters so that the user can modify
how things are supposed to work with the PIO programs. Also needed
to change the algorithm a bit to make these work. And needed to add
in timing for the READ option.
Solution:
Added the above things. The parameters took a major rewrite of the
command-line parsing stuff. Here's the usage statement:
usage: pio_perf [OPTIONS]
OPTIONS
-h, --help Print a usage message and exit
-d N, --num-dsets=N Number of datasets per file [default:1]
-f S, --file-size=S Size of a single file [default: 64M]
-F N, --num-files=N Number of files [default: 1]
-H, --hdf5 Run HDF5 performance test
-i, --num-iterations Number of iterations to perform [default: 1]
-m, --mpiio Run MPI/IO performance test
-o F, --output=F Output raw data into file F [default: none]
-P N, --max-num-processes=N Maximum number of processes to use [default: 1]
-p N, --min-num-processes=N Minimum number of processes to use [default: 1]
-r, --raw Run raw (UNIX) performance test
-X S, --max-xfer-size=S Maximum transfer buffer size [default: 1M]
-x S, --min-xfer-size=S Minimum transfer buffer size [default: 1K]
F - is a filename.
N - is an integer >=0.
S - is a size specifier, an integer >=0 followed by a size indicator:
K - Kilobyte
M - Megabyte
G - Gigabyte
Example: 37M = 37 Megabytes
Platforms tested:
Linux, but not fully finished...
2001-12-19 04:12:21 +08:00
|
|
|
break;
|
|
|
|
case MPIO:
|
2002-05-07 07:58:57 +08:00
|
|
|
output_report("MPIO\n");
|
[svn-r4733]
Purpose:
Feature Changes
Description:
Okay, I needed to add in more parameters so that the user can modify
how things are supposed to work with the PIO programs. Also needed
to change the algorithm a bit to make these work. And needed to add
in timing for the READ option.
Solution:
Added the above things. The parameters took a major rewrite of the
command-line parsing stuff. Here's the usage statement:
usage: pio_perf [OPTIONS]
OPTIONS
-h, --help Print a usage message and exit
-d N, --num-dsets=N Number of datasets per file [default:1]
-f S, --file-size=S Size of a single file [default: 64M]
-F N, --num-files=N Number of files [default: 1]
-H, --hdf5 Run HDF5 performance test
-i, --num-iterations Number of iterations to perform [default: 1]
-m, --mpiio Run MPI/IO performance test
-o F, --output=F Output raw data into file F [default: none]
-P N, --max-num-processes=N Maximum number of processes to use [default: 1]
-p N, --min-num-processes=N Minimum number of processes to use [default: 1]
-r, --raw Run raw (UNIX) performance test
-X S, --max-xfer-size=S Maximum transfer buffer size [default: 1M]
-x S, --min-xfer-size=S Minimum transfer buffer size [default: 1K]
F - is a filename.
N - is an integer >=0.
S - is a size specifier, an integer >=0 followed by a size indicator:
K - Kilobyte
M - Megabyte
G - Gigabyte
Example: 37M = 37 Megabytes
Platforms tested:
Linux, but not fully finished...
2001-12-19 04:12:21 +08:00
|
|
|
break;
|
|
|
|
case PHDF5:
|
2002-07-15 23:21:05 +08:00
|
|
|
if(parms.h5_use_mpi_posix)
|
|
|
|
output_report("PHDF5 (w/MPI-posix driver)\n");
|
|
|
|
else
|
|
|
|
output_report("PHDF5 (w/MPI-I/O driver)\n");
|
[svn-r4733]
Purpose:
Feature Changes
Description:
Okay, I needed to add in more parameters so that the user can modify
how things are supposed to work with the PIO programs. Also needed
to change the algorithm a bit to make these work. And needed to add
in timing for the READ option.
Solution:
Added the above things. The parameters took a major rewrite of the
command-line parsing stuff. Here's the usage statement:
usage: pio_perf [OPTIONS]
OPTIONS
-h, --help Print a usage message and exit
-d N, --num-dsets=N Number of datasets per file [default:1]
-f S, --file-size=S Size of a single file [default: 64M]
-F N, --num-files=N Number of files [default: 1]
-H, --hdf5 Run HDF5 performance test
-i, --num-iterations Number of iterations to perform [default: 1]
-m, --mpiio Run MPI/IO performance test
-o F, --output=F Output raw data into file F [default: none]
-P N, --max-num-processes=N Maximum number of processes to use [default: 1]
-p N, --min-num-processes=N Minimum number of processes to use [default: 1]
-r, --raw Run raw (UNIX) performance test
-X S, --max-xfer-size=S Maximum transfer buffer size [default: 1M]
-x S, --min-xfer-size=S Minimum transfer buffer size [default: 1K]
F - is a filename.
N - is an integer >=0.
S - is a size specifier, an integer >=0 followed by a size indicator:
K - Kilobyte
M - Megabyte
G - Gigabyte
Example: 37M = 37 Megabytes
Platforms tested:
Linux, but not fully finished...
2001-12-19 04:12:21 +08:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
2001-12-20 06:10:15 +08:00
|
|
|
MPI_Comm_size(pio_comm_g, &comm_size);
|
|
|
|
|
2002-05-23 07:22:46 +08:00
|
|
|
/* allocate space for tables minmax and that it is sufficient */
|
|
|
|
/* to initialize all elements to zeros by calloc. */
|
2002-06-20 00:06:55 +08:00
|
|
|
write_mpi_mm_table = calloc((size_t)parms.num_iters , sizeof(minmax));
|
|
|
|
write_mm_table = calloc((size_t)parms.num_iters , sizeof(minmax));
|
|
|
|
write_gross_mm_table = calloc((size_t)parms.num_iters , sizeof(minmax));
|
|
|
|
write_raw_mm_table = calloc((size_t)parms.num_iters , sizeof(minmax));
|
2006-01-27 06:45:51 +08:00
|
|
|
write_open_mm_table = calloc((size_t)parms.num_iters , sizeof(minmax));
|
|
|
|
write_close_mm_table = calloc((size_t)parms.num_iters , sizeof(minmax));
|
2002-06-05 05:31:35 +08:00
|
|
|
if (!parms.h5_write_only) {
|
2008-07-24 04:41:02 +08:00
|
|
|
read_mpi_mm_table = calloc((size_t)parms.num_iters , sizeof(minmax));
|
|
|
|
read_mm_table = calloc((size_t)parms.num_iters , sizeof(minmax));
|
|
|
|
read_gross_mm_table = calloc((size_t)parms.num_iters , sizeof(minmax));
|
|
|
|
read_raw_mm_table = calloc((size_t)parms.num_iters , sizeof(minmax));
|
|
|
|
read_open_mm_table = calloc((size_t)parms.num_iters , sizeof(minmax));
|
|
|
|
read_close_mm_table = calloc((size_t)parms.num_iters , sizeof(minmax));
|
|
|
|
}
|
2002-05-23 07:22:46 +08:00
|
|
|
|
|
|
|
/* Do IO iteration times, collecting statistics each time */
|
2001-12-20 06:10:15 +08:00
|
|
|
for (i = 0; i < parms.num_iters; ++i) {
|
|
|
|
double t;
|
|
|
|
|
|
|
|
MPI_Barrier(pio_comm_g);
|
2002-05-07 07:58:57 +08:00
|
|
|
res = do_pio(parms);
|
2001-12-20 06:10:15 +08:00
|
|
|
|
2002-05-08 01:34:59 +08:00
|
|
|
/* gather all of the "mpi write" times */
|
|
|
|
t = get_time(res.timers, HDF5_MPI_WRITE);
|
2008-07-24 04:41:02 +08:00
|
|
|
get_minmax(&write_mpi_mm, t);
|
2002-05-08 01:34:59 +08:00
|
|
|
|
|
|
|
write_mpi_mm_table[i] = write_mpi_mm;
|
|
|
|
|
2002-01-11 02:45:34 +08:00
|
|
|
/* gather all of the "write" times */
|
2002-01-12 03:44:51 +08:00
|
|
|
t = get_time(res.timers, HDF5_FINE_WRITE_FIXED_DIMS);
|
2008-07-24 04:41:02 +08:00
|
|
|
get_minmax(&write_mm, t);
|
2001-12-20 06:10:15 +08:00
|
|
|
|
|
|
|
write_mm_table[i] = write_mm;
|
|
|
|
|
2002-01-12 03:44:51 +08:00
|
|
|
/* gather all of the "write" times from open to close */
|
|
|
|
t = get_time(res.timers, HDF5_GROSS_WRITE_FIXED_DIMS);
|
2008-07-24 04:41:02 +08:00
|
|
|
get_minmax(&write_gross_mm, t);
|
2002-01-12 03:44:51 +08:00
|
|
|
|
|
|
|
write_gross_mm_table[i] = write_gross_mm;
|
|
|
|
|
2002-05-23 07:22:46 +08:00
|
|
|
/* gather all of the raw "write" times */
|
2008-07-24 04:41:02 +08:00
|
|
|
t = get_time(res.timers, HDF5_RAW_WRITE_FIXED_DIMS);
|
|
|
|
get_minmax(&write_raw_mm, t);
|
2002-05-23 07:22:46 +08:00
|
|
|
|
2008-07-24 04:41:02 +08:00
|
|
|
write_raw_mm_table[i] = write_raw_mm;
|
2006-01-27 06:45:51 +08:00
|
|
|
|
2008-07-24 04:41:02 +08:00
|
|
|
/* gather all of the file open times (time from open to first write) */
|
|
|
|
t = get_time(res.timers, HDF5_FILE_WRITE_OPEN);
|
|
|
|
get_minmax(&write_open_mm, t);
|
2006-01-27 06:45:51 +08:00
|
|
|
|
2008-07-24 04:41:02 +08:00
|
|
|
write_open_mm_table[i] = write_open_mm;
|
2006-01-27 06:45:51 +08:00
|
|
|
|
2008-07-24 04:41:02 +08:00
|
|
|
/* gather all of the file close times (time from last write to close) */
|
|
|
|
t = get_time(res.timers, HDF5_FILE_WRITE_CLOSE);
|
|
|
|
get_minmax(&write_close_mm, t);
|
2006-01-27 06:45:51 +08:00
|
|
|
|
|
|
|
write_close_mm_table[i] = write_close_mm;
|
2002-05-23 07:22:46 +08:00
|
|
|
|
2002-06-05 05:31:35 +08:00
|
|
|
if (!parms.h5_write_only) {
|
|
|
|
/* gather all of the "mpi read" times */
|
|
|
|
t = get_time(res.timers, HDF5_MPI_READ);
|
|
|
|
get_minmax(&read_mpi_mm, t);
|
2002-05-08 01:34:59 +08:00
|
|
|
|
2002-06-05 05:31:35 +08:00
|
|
|
read_mpi_mm_table[i] = read_mpi_mm;
|
2002-05-08 01:34:59 +08:00
|
|
|
|
2002-06-05 05:31:35 +08:00
|
|
|
/* gather all of the "read" times */
|
|
|
|
t = get_time(res.timers, HDF5_FINE_READ_FIXED_DIMS);
|
|
|
|
get_minmax(&read_mm, t);
|
2001-12-20 06:10:15 +08:00
|
|
|
|
2002-06-05 05:31:35 +08:00
|
|
|
read_mm_table[i] = read_mm;
|
2002-01-11 02:45:34 +08:00
|
|
|
|
2002-06-05 05:31:35 +08:00
|
|
|
/* gather all of the "read" times from open to close */
|
|
|
|
t = get_time(res.timers, HDF5_GROSS_READ_FIXED_DIMS);
|
|
|
|
get_minmax(&read_gross_mm, t);
|
2002-01-11 02:45:34 +08:00
|
|
|
|
2002-06-05 05:31:35 +08:00
|
|
|
read_gross_mm_table[i] = read_gross_mm;
|
2002-05-23 07:22:46 +08:00
|
|
|
|
2002-06-05 05:31:35 +08:00
|
|
|
/* gather all of the raw "read" times */
|
|
|
|
t = get_time(res.timers, HDF5_RAW_READ_FIXED_DIMS);
|
|
|
|
get_minmax(&read_raw_mm, t);
|
|
|
|
|
|
|
|
read_raw_mm_table[i] = read_raw_mm;
|
2006-01-27 06:45:51 +08:00
|
|
|
|
2008-07-24 04:41:02 +08:00
|
|
|
/* gather all of the file open times (time from open to first read) */
|
|
|
|
t = get_time(res.timers, HDF5_FILE_READ_OPEN);
|
|
|
|
get_minmax(&read_open_mm, t);
|
2006-01-27 06:45:51 +08:00
|
|
|
|
2008-07-24 04:41:02 +08:00
|
|
|
read_open_mm_table[i] = read_open_mm;
|
2006-01-27 06:45:51 +08:00
|
|
|
|
2008-07-24 04:41:02 +08:00
|
|
|
/* gather all of the file close times (time from last read to close) */
|
|
|
|
t = get_time(res.timers, HDF5_FILE_READ_CLOSE);
|
|
|
|
get_minmax(&read_close_mm, t);
|
2006-01-27 06:45:51 +08:00
|
|
|
|
2008-07-24 04:41:02 +08:00
|
|
|
read_close_mm_table[i] = read_close_mm;
|
2006-06-27 22:45:06 +08:00
|
|
|
|
2008-07-24 04:41:02 +08:00
|
|
|
}
|
2002-05-23 07:22:46 +08:00
|
|
|
|
2008-07-24 04:41:02 +08:00
|
|
|
pio_time_destroy(res.timers);
|
2001-12-20 06:10:15 +08:00
|
|
|
}
|
|
|
|
|
2005-08-14 04:53:35 +08:00
|
|
|
/*
|
2002-05-23 07:22:46 +08:00
|
|
|
* Show various statistics
|
2002-05-14 03:55:33 +08:00
|
|
|
*/
|
2002-05-23 07:22:46 +08:00
|
|
|
/* Write statistics */
|
|
|
|
/* Print the raw data throughput if desired */
|
2002-05-29 05:54:58 +08:00
|
|
|
if (opts->print_raw) {
|
2002-05-23 07:22:46 +08:00
|
|
|
/* accumulate and output the max, min, and average "raw write" times */
|
|
|
|
if (pio_debug_level >= 3) {
|
|
|
|
/* output all of the times for all iterations */
|
|
|
|
print_indent(3);
|
|
|
|
output_report("Raw Data Write details:\n");
|
|
|
|
output_all_info(write_raw_mm_table, parms.num_iters, 4);
|
|
|
|
}
|
|
|
|
|
|
|
|
output_results(opts,"Raw Data Write",write_raw_mm_table,parms.num_iters,raw_size);
|
|
|
|
} /* end if */
|
|
|
|
|
2002-05-08 01:34:59 +08:00
|
|
|
/* show mpi write statics */
|
|
|
|
if (pio_debug_level >= 3) {
|
|
|
|
/* output all of the times for all iterations */
|
|
|
|
print_indent(3);
|
|
|
|
output_report("MPI Write details:\n");
|
|
|
|
output_all_info(write_mpi_mm_table, parms.num_iters, 4);
|
|
|
|
}
|
|
|
|
|
2002-05-23 07:22:46 +08:00
|
|
|
/* We don't currently output the MPI write results */
|
|
|
|
|
2002-01-11 02:45:34 +08:00
|
|
|
/* accumulate and output the max, min, and average "write" times */
|
2002-05-03 05:19:19 +08:00
|
|
|
if (pio_debug_level >= 3) {
|
2002-01-30 12:16:15 +08:00
|
|
|
/* output all of the times for all iterations */
|
2002-05-07 07:58:57 +08:00
|
|
|
print_indent(3);
|
|
|
|
output_report("Write details:\n");
|
|
|
|
output_all_info(write_mm_table, parms.num_iters, 4);
|
2002-01-30 12:16:15 +08:00
|
|
|
}
|
|
|
|
|
2002-05-23 07:22:46 +08:00
|
|
|
output_results(opts,"Write",write_mm_table,parms.num_iters,raw_size);
|
2001-12-20 06:10:15 +08:00
|
|
|
|
2002-01-12 03:44:51 +08:00
|
|
|
/* accumulate and output the max, min, and average "gross write" times */
|
2002-05-03 05:19:19 +08:00
|
|
|
if (pio_debug_level >= 3) {
|
2002-01-30 12:16:15 +08:00
|
|
|
/* output all of the times for all iterations */
|
2002-05-07 07:58:57 +08:00
|
|
|
print_indent(3);
|
|
|
|
output_report("Write Open-Close details:\n");
|
|
|
|
output_all_info(write_gross_mm_table, parms.num_iters, 4);
|
2002-01-30 12:16:15 +08:00
|
|
|
}
|
|
|
|
|
2002-05-23 07:22:46 +08:00
|
|
|
output_results(opts,"Write Open-Close",write_gross_mm_table,parms.num_iters,raw_size);
|
2008-10-04 04:51:19 +08:00
|
|
|
|
|
|
|
if (opts->print_times) {
|
|
|
|
output_times(opts,"Write File Open",write_open_mm_table,parms.num_iters);
|
|
|
|
output_times(opts,"Write File Close",write_close_mm_table,parms.num_iters);
|
|
|
|
}
|
|
|
|
|
2006-01-27 06:45:51 +08:00
|
|
|
/* Print out time from open to first write */
|
|
|
|
if (pio_debug_level >= 3) {
|
2008-07-24 04:41:02 +08:00
|
|
|
/* output all of the times for all iterations */
|
|
|
|
print_indent(3);
|
|
|
|
output_report("Write file open details:\n");
|
|
|
|
output_all_info(write_open_mm_table, parms.num_iters, 4);
|
2006-01-27 06:45:51 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Print out time from last write to close */
|
|
|
|
if (pio_debug_level >= 3) {
|
2008-07-24 04:41:02 +08:00
|
|
|
/* output all of the times for all iterations */
|
|
|
|
print_indent(3);
|
|
|
|
output_report("Write file close details:\n");
|
|
|
|
output_all_info(write_close_mm_table, parms.num_iters, 4);
|
2006-01-27 06:45:51 +08:00
|
|
|
}
|
|
|
|
|
2002-06-05 05:31:35 +08:00
|
|
|
if (!parms.h5_write_only) {
|
|
|
|
/* Read statistics */
|
|
|
|
/* Print the raw data throughput if desired */
|
|
|
|
if (opts->print_raw) {
|
|
|
|
/* accumulate and output the max, min, and average "raw read" times */
|
|
|
|
if (pio_debug_level >= 3) {
|
|
|
|
/* output all of the times for all iterations */
|
|
|
|
print_indent(3);
|
|
|
|
output_report("Raw Data Read details:\n");
|
|
|
|
output_all_info(read_raw_mm_table, parms.num_iters, 4);
|
|
|
|
}
|
|
|
|
|
|
|
|
output_results(opts, "Raw Data Read", read_raw_mm_table,
|
|
|
|
parms.num_iters, raw_size);
|
|
|
|
} /* end if */
|
|
|
|
|
|
|
|
/* show mpi read statics */
|
2002-05-23 07:22:46 +08:00
|
|
|
if (pio_debug_level >= 3) {
|
|
|
|
/* output all of the times for all iterations */
|
|
|
|
print_indent(3);
|
2002-06-05 05:31:35 +08:00
|
|
|
output_report("MPI Read details:\n");
|
|
|
|
output_all_info(read_mpi_mm_table, parms.num_iters, 4);
|
2002-05-23 07:22:46 +08:00
|
|
|
}
|
2002-01-12 03:44:51 +08:00
|
|
|
|
2002-06-05 05:31:35 +08:00
|
|
|
/* We don't currently output the MPI read results */
|
[svn-r4733]
Purpose:
Feature Changes
Description:
Okay, I needed to add in more parameters so that the user can modify
how things are supposed to work with the PIO programs. Also needed
to change the algorithm a bit to make these work. And needed to add
in timing for the READ option.
Solution:
Added the above things. The parameters took a major rewrite of the
command-line parsing stuff. Here's the usage statement:
usage: pio_perf [OPTIONS]
OPTIONS
-h, --help Print a usage message and exit
-d N, --num-dsets=N Number of datasets per file [default:1]
-f S, --file-size=S Size of a single file [default: 64M]
-F N, --num-files=N Number of files [default: 1]
-H, --hdf5 Run HDF5 performance test
-i, --num-iterations Number of iterations to perform [default: 1]
-m, --mpiio Run MPI/IO performance test
-o F, --output=F Output raw data into file F [default: none]
-P N, --max-num-processes=N Maximum number of processes to use [default: 1]
-p N, --min-num-processes=N Minimum number of processes to use [default: 1]
-r, --raw Run raw (UNIX) performance test
-X S, --max-xfer-size=S Maximum transfer buffer size [default: 1M]
-x S, --min-xfer-size=S Minimum transfer buffer size [default: 1K]
F - is a filename.
N - is an integer >=0.
S - is a size specifier, an integer >=0 followed by a size indicator:
K - Kilobyte
M - Megabyte
G - Gigabyte
Example: 37M = 37 Megabytes
Platforms tested:
Linux, but not fully finished...
2001-12-19 04:12:21 +08:00
|
|
|
|
2002-06-05 05:31:35 +08:00
|
|
|
/* accumulate and output the max, min, and average "read" times */
|
|
|
|
if (pio_debug_level >= 3) {
|
|
|
|
/* output all of the times for all iterations */
|
|
|
|
print_indent(3);
|
|
|
|
output_report("Read details:\n");
|
|
|
|
output_all_info(read_mm_table, parms.num_iters, 4);
|
|
|
|
}
|
2002-05-23 07:22:46 +08:00
|
|
|
|
2002-06-05 05:31:35 +08:00
|
|
|
output_results(opts, "Read", read_mm_table, parms.num_iters, raw_size);
|
2002-01-30 12:16:15 +08:00
|
|
|
|
2002-06-05 05:31:35 +08:00
|
|
|
/* accumulate and output the max, min, and average "gross read" times */
|
|
|
|
if (pio_debug_level >= 3) {
|
|
|
|
/* output all of the times for all iterations */
|
|
|
|
print_indent(3);
|
|
|
|
output_report("Read Open-Close details:\n");
|
|
|
|
output_all_info(read_gross_mm_table, parms.num_iters, 4);
|
|
|
|
}
|
[svn-r4733]
Purpose:
Feature Changes
Description:
Okay, I needed to add in more parameters so that the user can modify
how things are supposed to work with the PIO programs. Also needed
to change the algorithm a bit to make these work. And needed to add
in timing for the READ option.
Solution:
Added the above things. The parameters took a major rewrite of the
command-line parsing stuff. Here's the usage statement:
usage: pio_perf [OPTIONS]
OPTIONS
-h, --help Print a usage message and exit
-d N, --num-dsets=N Number of datasets per file [default:1]
-f S, --file-size=S Size of a single file [default: 64M]
-F N, --num-files=N Number of files [default: 1]
-H, --hdf5 Run HDF5 performance test
-i, --num-iterations Number of iterations to perform [default: 1]
-m, --mpiio Run MPI/IO performance test
-o F, --output=F Output raw data into file F [default: none]
-P N, --max-num-processes=N Maximum number of processes to use [default: 1]
-p N, --min-num-processes=N Minimum number of processes to use [default: 1]
-r, --raw Run raw (UNIX) performance test
-X S, --max-xfer-size=S Maximum transfer buffer size [default: 1M]
-x S, --min-xfer-size=S Minimum transfer buffer size [default: 1K]
F - is a filename.
N - is an integer >=0.
S - is a size specifier, an integer >=0 followed by a size indicator:
K - Kilobyte
M - Megabyte
G - Gigabyte
Example: 37M = 37 Megabytes
Platforms tested:
Linux, but not fully finished...
2001-12-19 04:12:21 +08:00
|
|
|
|
2008-10-04 04:51:19 +08:00
|
|
|
output_results(opts, "Read Open-Close", read_gross_mm_table,parms.num_iters, raw_size);
|
|
|
|
|
|
|
|
if (opts->print_times) {
|
|
|
|
output_times(opts,"Read File Open",read_open_mm_table,parms.num_iters);
|
|
|
|
output_times(opts,"Read File Close",read_close_mm_table,parms.num_iters);
|
|
|
|
}
|
2006-01-27 06:45:51 +08:00
|
|
|
|
2008-07-24 04:41:02 +08:00
|
|
|
/* Print out time from open to first read */
|
|
|
|
if (pio_debug_level >= 3) {
|
|
|
|
/* output all of the times for all iterations */
|
|
|
|
print_indent(3);
|
|
|
|
output_report("Read file open details:\n");
|
|
|
|
output_all_info(read_open_mm_table, parms.num_iters, 4);
|
|
|
|
}
|
2006-01-27 06:45:51 +08:00
|
|
|
|
2008-07-24 04:41:02 +08:00
|
|
|
/* Print out time from last read to close */
|
|
|
|
if (pio_debug_level >= 3) {
|
|
|
|
/* output all of the times for all iterations */
|
|
|
|
print_indent(3);
|
|
|
|
output_report("Read file close details:\n");
|
|
|
|
output_all_info(read_close_mm_table, parms.num_iters, 4);
|
|
|
|
}
|
2006-01-27 06:45:51 +08:00
|
|
|
|
2002-01-30 12:16:15 +08:00
|
|
|
}
|
2002-01-11 02:45:34 +08:00
|
|
|
|
2002-02-21 06:35:20 +08:00
|
|
|
/* clean up our mess */
|
2002-05-08 01:34:59 +08:00
|
|
|
free(write_mpi_mm_table);
|
2001-12-20 06:10:15 +08:00
|
|
|
free(write_mm_table);
|
2002-02-21 06:35:20 +08:00
|
|
|
free(write_gross_mm_table);
|
2002-05-23 07:22:46 +08:00
|
|
|
free(write_raw_mm_table);
|
2006-01-27 06:45:51 +08:00
|
|
|
free(write_open_mm_table);
|
|
|
|
free(write_close_mm_table);
|
2002-06-05 05:31:35 +08:00
|
|
|
|
|
|
|
if (!parms.h5_write_only) {
|
|
|
|
free(read_mpi_mm_table);
|
|
|
|
free(read_mm_table);
|
|
|
|
free(read_gross_mm_table);
|
|
|
|
free(read_raw_mm_table);
|
2008-07-24 04:41:02 +08:00
|
|
|
free(read_open_mm_table);
|
|
|
|
free(read_close_mm_table);
|
2002-06-05 05:31:35 +08:00
|
|
|
}
|
|
|
|
|
2001-12-20 06:10:15 +08:00
|
|
|
return ret_value;
|
|
|
|
}
|
|
|
|
|
2002-01-30 12:16:15 +08:00
|
|
|
/*
|
|
|
|
* Function: output_all_info
|
2005-08-14 04:53:35 +08:00
|
|
|
* Purpose:
|
2002-01-30 12:16:15 +08:00
|
|
|
* Return: Nothing
|
|
|
|
* Programmer: Bill Wendling, 29. January 2002
|
|
|
|
* Modifications:
|
|
|
|
*/
|
|
|
|
static void
|
2002-05-07 07:58:57 +08:00
|
|
|
output_all_info(minmax *mm, int count, int indent_level)
|
2002-01-30 12:16:15 +08:00
|
|
|
{
|
2002-06-19 20:54:53 +08:00
|
|
|
int i;
|
2002-01-30 12:16:15 +08:00
|
|
|
|
|
|
|
for (i = 0; i < count; ++i) {
|
2002-05-07 07:58:57 +08:00
|
|
|
print_indent(indent_level);
|
|
|
|
output_report("Iteration %d:\n", i + 1);
|
|
|
|
print_indent(indent_level + 1);
|
|
|
|
output_report("Minimum Time: %.2fs\n", mm[i].min);
|
|
|
|
print_indent(indent_level + 1);
|
|
|
|
output_report("Maximum Time: %.2fs\n", mm[i].max);
|
2002-01-30 12:16:15 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2001-12-22 05:39:52 +08:00
|
|
|
/*
|
2002-05-23 07:22:46 +08:00
|
|
|
* Function: get_minmax
|
2002-01-12 04:16:44 +08:00
|
|
|
* Purpose: Gather all the min, max and total of val.
|
2001-12-22 05:39:52 +08:00
|
|
|
* Return: Nothing
|
|
|
|
* Programmer: Bill Wendling, 21. December 2001
|
|
|
|
* Modifications:
|
2002-01-12 04:16:44 +08:00
|
|
|
* Use MPI_Allreduce to do it. -akc, 2002/01/11
|
2001-12-22 05:39:52 +08:00
|
|
|
*/
|
2001-12-20 06:10:15 +08:00
|
|
|
static void
|
2002-01-12 04:16:44 +08:00
|
|
|
get_minmax(minmax *mm, double val)
|
2001-12-20 06:10:15 +08:00
|
|
|
{
|
2002-01-12 04:30:02 +08:00
|
|
|
int myrank;
|
2001-12-20 06:10:15 +08:00
|
|
|
|
|
|
|
MPI_Comm_rank(pio_comm_g, &myrank);
|
2002-01-12 04:30:02 +08:00
|
|
|
MPI_Comm_size(pio_comm_g, &mm->num);
|
2001-12-20 06:10:15 +08:00
|
|
|
|
2002-01-12 04:30:02 +08:00
|
|
|
MPI_Allreduce(&val, &mm->max, 1, MPI_DOUBLE, MPI_MAX, pio_comm_g);
|
|
|
|
MPI_Allreduce(&val, &mm->min, 1, MPI_DOUBLE, MPI_MIN, pio_comm_g);
|
|
|
|
MPI_Allreduce(&val, &mm->sum, 1, MPI_DOUBLE, MPI_SUM, pio_comm_g);
|
2001-12-20 06:10:15 +08:00
|
|
|
}
|
|
|
|
|
2001-12-22 05:39:52 +08:00
|
|
|
/*
|
|
|
|
* Function: accumulate_minmax_stuff
|
|
|
|
* Purpose: Accumulate the minimum, maximum, and average of the times
|
|
|
|
* across all processes.
|
|
|
|
* Return: TOTAL_MM - the total of all of these.
|
|
|
|
* Programmer: Bill Wendling, 21. December 2001
|
|
|
|
* Modifications:
|
2002-05-23 07:22:46 +08:00
|
|
|
* Changed to use seconds instead of MB/s - QAK, 5/9/02
|
2001-12-22 05:39:52 +08:00
|
|
|
*/
|
2001-12-20 06:10:15 +08:00
|
|
|
static minmax
|
2002-05-23 07:22:46 +08:00
|
|
|
accumulate_minmax_stuff(minmax *mm, int count)
|
2001-12-20 06:10:15 +08:00
|
|
|
{
|
2002-06-19 20:54:53 +08:00
|
|
|
int i;
|
2002-01-30 12:16:15 +08:00
|
|
|
minmax total_mm;
|
2005-08-14 04:53:35 +08:00
|
|
|
|
2002-05-23 07:22:46 +08:00
|
|
|
total_mm.sum = 0.0;
|
|
|
|
total_mm.max = -DBL_MAX;
|
|
|
|
total_mm.min = DBL_MAX;
|
2002-01-30 12:16:15 +08:00
|
|
|
total_mm.num = count;
|
2001-12-20 06:10:15 +08:00
|
|
|
|
2002-05-23 07:22:46 +08:00
|
|
|
for (i = 0; i < count; ++i) {
|
|
|
|
double m = mm[i].max;
|
2001-12-20 06:10:15 +08:00
|
|
|
|
2002-01-30 12:16:15 +08:00
|
|
|
total_mm.sum += m;
|
2001-12-20 06:10:15 +08:00
|
|
|
|
2002-01-30 12:16:15 +08:00
|
|
|
if (m < total_mm.min)
|
|
|
|
total_mm.min = m;
|
|
|
|
|
|
|
|
if (m > total_mm.max)
|
|
|
|
total_mm.max = m;
|
2001-12-20 06:10:15 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
return total_mm;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Function: create_comm_world
|
|
|
|
* Purpose: Create an MPI Comm world and store it in pio_comm_g, which
|
|
|
|
* is a global variable.
|
|
|
|
* Return: SUCCESS on success.
|
|
|
|
* FAIL otherwise.
|
|
|
|
* Programmer: Bill Wendling, 19. December 2001
|
|
|
|
* Modifications:
|
|
|
|
*/
|
|
|
|
static int
|
2001-12-21 13:58:41 +08:00
|
|
|
create_comm_world(int num_procs, int *doing_pio)
|
2001-12-20 06:10:15 +08:00
|
|
|
{
|
|
|
|
/* MPI variables */
|
2002-06-20 00:06:55 +08:00
|
|
|
int mrc; /* return values */
|
2001-12-20 06:10:15 +08:00
|
|
|
int color; /* for communicator creation */
|
|
|
|
int myrank, nprocs;
|
|
|
|
|
|
|
|
pio_comm_g = MPI_COMM_NULL;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Create a sub communicator for this PIO run. Easier to use the first N
|
|
|
|
* processes.
|
|
|
|
*/
|
|
|
|
MPI_Comm_size(MPI_COMM_WORLD, &nprocs);
|
|
|
|
|
|
|
|
if (num_procs > nprocs) {
|
|
|
|
fprintf(stderr,
|
|
|
|
"number of process(%d) must be <= number of processes in MPI_COMM_WORLD(%d)\n",
|
|
|
|
num_procs, nprocs);
|
|
|
|
goto error_done;
|
|
|
|
}
|
|
|
|
|
|
|
|
MPI_Comm_rank(MPI_COMM_WORLD, &myrank);
|
|
|
|
color = (myrank < num_procs);
|
|
|
|
mrc = MPI_Comm_split(MPI_COMM_WORLD, color, myrank, &pio_comm_g);
|
|
|
|
|
|
|
|
if (mrc != MPI_SUCCESS) {
|
|
|
|
fprintf(stderr, "MPI_Comm_split failed\n");
|
|
|
|
goto error_done;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!color) {
|
|
|
|
/* not involved in this run */
|
|
|
|
mrc = destroy_comm_world();
|
|
|
|
goto done;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* determine the MPI rank in the PIO communicator */
|
|
|
|
MPI_Comm_size(pio_comm_g, &pio_mpi_nprocs_g);
|
|
|
|
MPI_Comm_rank(pio_comm_g, &pio_mpi_rank_g);
|
|
|
|
|
|
|
|
done:
|
2001-12-21 13:58:41 +08:00
|
|
|
*doing_pio = color;
|
2002-06-20 00:06:55 +08:00
|
|
|
return SUCCESS;
|
2001-12-20 06:10:15 +08:00
|
|
|
|
|
|
|
error_done:
|
|
|
|
destroy_comm_world();
|
|
|
|
return FAIL;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Function: destroy_comm_world
|
|
|
|
* Purpose: Destroy the created MPI Comm world which is stored in the
|
|
|
|
* pio_comm_g global variable.
|
|
|
|
* Return: SUCCESS on success.
|
|
|
|
* FAIL otherwise.
|
|
|
|
* Programmer: Bill Wendling, 19. December 2001
|
|
|
|
* Modifications:
|
|
|
|
*/
|
|
|
|
static int
|
|
|
|
destroy_comm_world(void)
|
|
|
|
{
|
|
|
|
int mrc = SUCCESS; /* return code */
|
|
|
|
|
|
|
|
/* release MPI resources */
|
|
|
|
if (pio_comm_g != MPI_COMM_NULL)
|
|
|
|
mrc = (MPI_Comm_free(&pio_comm_g) == MPI_SUCCESS ? SUCCESS : FAIL);
|
|
|
|
|
|
|
|
return mrc;
|
|
|
|
}
|
|
|
|
|
2002-05-23 07:22:46 +08:00
|
|
|
/*
|
|
|
|
* Function: output_results
|
|
|
|
* Purpose: Print information about the time & bandwidth for a given
|
|
|
|
* minmax & # of iterations.
|
|
|
|
* Return: Nothing
|
|
|
|
* Programmer: Quincey Koziol, 9. May 2002
|
|
|
|
* Modifications:
|
|
|
|
*/
|
|
|
|
static void
|
|
|
|
output_results(const struct options *opts, const char *name, minmax *table,
|
|
|
|
int table_size,off_t data_size)
|
|
|
|
{
|
|
|
|
minmax total_mm;
|
|
|
|
|
|
|
|
total_mm = accumulate_minmax_stuff(table, table_size);
|
|
|
|
|
|
|
|
print_indent(3);
|
2002-06-19 20:54:53 +08:00
|
|
|
output_report("%s (%d iteration(s)):\n", name,table_size);
|
2002-05-23 07:22:46 +08:00
|
|
|
|
|
|
|
/* Note: The maximum throughput uses the minimum amount of time & vice versa */
|
|
|
|
|
|
|
|
print_indent(4);
|
|
|
|
output_report("Maximum Throughput: %6.2f MB/s", MB_PER_SEC(data_size,total_mm.min));
|
|
|
|
if(opts->print_times)
|
|
|
|
output_report(" (%7.3f s)\n", total_mm.min);
|
|
|
|
else
|
|
|
|
output_report("\n");
|
|
|
|
|
|
|
|
print_indent(4);
|
|
|
|
output_report("Average Throughput: %6.2f MB/s",
|
|
|
|
MB_PER_SEC(data_size,total_mm.sum / total_mm.num));
|
|
|
|
if(opts->print_times)
|
|
|
|
output_report(" (%7.3f s)\n", (total_mm.sum / total_mm.num));
|
|
|
|
else
|
|
|
|
output_report("\n");
|
|
|
|
|
|
|
|
print_indent(4);
|
|
|
|
output_report("Minimum Throughput: %6.2f MB/s", MB_PER_SEC(data_size,total_mm.max));
|
|
|
|
if(opts->print_times)
|
|
|
|
output_report(" (%7.3f s)\n", total_mm.max);
|
|
|
|
else
|
|
|
|
output_report("\n");
|
2008-10-04 04:51:19 +08:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
output_times(const struct options *opts, const char *name, minmax *table,
|
|
|
|
int table_size)
|
|
|
|
{
|
|
|
|
minmax total_mm;
|
|
|
|
|
|
|
|
total_mm = accumulate_minmax_stuff(table, table_size);
|
|
|
|
|
|
|
|
print_indent(3);
|
|
|
|
output_report("%s (%d iteration(s)):\n", name,table_size);
|
|
|
|
|
|
|
|
/* Note: The maximum throughput uses the minimum amount of time & vice versa */
|
|
|
|
|
|
|
|
print_indent(4);
|
|
|
|
output_report("Minimum Accumulated Time using %d file(s): %7.5f s\n", opts->num_files,(total_mm.min));
|
|
|
|
|
|
|
|
print_indent(4);
|
2008-10-10 02:12:34 +08:00
|
|
|
output_report("Average Accumulated Time using %d file(s): %7.5f s\n", opts->num_files,(total_mm.sum / total_mm.num));
|
2008-10-04 04:51:19 +08:00
|
|
|
|
|
|
|
print_indent(4);
|
|
|
|
output_report("Maximum Accumulated Time using %d file(s): %7.5f s\n", opts->num_files,(total_mm.max));
|
2002-05-23 07:22:46 +08:00
|
|
|
}
|
|
|
|
|
2001-12-20 06:10:15 +08:00
|
|
|
/*
|
|
|
|
* Function: output_report
|
|
|
|
* Purpose: Print a line of the report. Only do so if I'm the 0 process.
|
|
|
|
* Return: Nothing
|
|
|
|
* Programmer: Bill Wendling, 19. December 2001
|
|
|
|
* Modifications:
|
|
|
|
*/
|
2002-05-04 05:09:52 +08:00
|
|
|
static void
|
2002-05-07 07:58:57 +08:00
|
|
|
output_report(const char *fmt, ...)
|
2001-12-20 06:10:15 +08:00
|
|
|
{
|
|
|
|
int myrank;
|
|
|
|
|
|
|
|
MPI_Comm_rank(pio_comm_g, &myrank);
|
|
|
|
|
|
|
|
if (myrank == 0) {
|
|
|
|
va_list ap;
|
|
|
|
|
|
|
|
va_start(ap, fmt);
|
|
|
|
vfprintf(output, fmt, ap);
|
|
|
|
va_end(ap);
|
|
|
|
}
|
2001-11-07 23:28:33 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
[svn-r4733]
Purpose:
Feature Changes
Description:
Okay, I needed to add in more parameters so that the user can modify
how things are supposed to work with the PIO programs. Also needed
to change the algorithm a bit to make these work. And needed to add
in timing for the READ option.
Solution:
Added the above things. The parameters took a major rewrite of the
command-line parsing stuff. Here's the usage statement:
usage: pio_perf [OPTIONS]
OPTIONS
-h, --help Print a usage message and exit
-d N, --num-dsets=N Number of datasets per file [default:1]
-f S, --file-size=S Size of a single file [default: 64M]
-F N, --num-files=N Number of files [default: 1]
-H, --hdf5 Run HDF5 performance test
-i, --num-iterations Number of iterations to perform [default: 1]
-m, --mpiio Run MPI/IO performance test
-o F, --output=F Output raw data into file F [default: none]
-P N, --max-num-processes=N Maximum number of processes to use [default: 1]
-p N, --min-num-processes=N Minimum number of processes to use [default: 1]
-r, --raw Run raw (UNIX) performance test
-X S, --max-xfer-size=S Maximum transfer buffer size [default: 1M]
-x S, --min-xfer-size=S Minimum transfer buffer size [default: 1K]
F - is a filename.
N - is an integer >=0.
S - is a size specifier, an integer >=0 followed by a size indicator:
K - Kilobyte
M - Megabyte
G - Gigabyte
Example: 37M = 37 Megabytes
Platforms tested:
Linux, but not fully finished...
2001-12-19 04:12:21 +08:00
|
|
|
* Function: print_indent
|
|
|
|
* Purpose: Print spaces to indent a new line of text for pretty printing
|
|
|
|
* things.
|
2001-11-07 23:28:33 +08:00
|
|
|
* Return: Nothing
|
[svn-r4733]
Purpose:
Feature Changes
Description:
Okay, I needed to add in more parameters so that the user can modify
how things are supposed to work with the PIO programs. Also needed
to change the algorithm a bit to make these work. And needed to add
in timing for the READ option.
Solution:
Added the above things. The parameters took a major rewrite of the
command-line parsing stuff. Here's the usage statement:
usage: pio_perf [OPTIONS]
OPTIONS
-h, --help Print a usage message and exit
-d N, --num-dsets=N Number of datasets per file [default:1]
-f S, --file-size=S Size of a single file [default: 64M]
-F N, --num-files=N Number of files [default: 1]
-H, --hdf5 Run HDF5 performance test
-i, --num-iterations Number of iterations to perform [default: 1]
-m, --mpiio Run MPI/IO performance test
-o F, --output=F Output raw data into file F [default: none]
-P N, --max-num-processes=N Maximum number of processes to use [default: 1]
-p N, --min-num-processes=N Minimum number of processes to use [default: 1]
-r, --raw Run raw (UNIX) performance test
-X S, --max-xfer-size=S Maximum transfer buffer size [default: 1M]
-x S, --min-xfer-size=S Minimum transfer buffer size [default: 1K]
F - is a filename.
N - is an integer >=0.
S - is a size specifier, an integer >=0 followed by a size indicator:
K - Kilobyte
M - Megabyte
G - Gigabyte
Example: 37M = 37 Megabytes
Platforms tested:
Linux, but not fully finished...
2001-12-19 04:12:21 +08:00
|
|
|
* Programmer: Bill Wendling, 29. October 2001
|
2001-11-07 23:28:33 +08:00
|
|
|
* Modifications:
|
|
|
|
*/
|
2002-05-04 05:09:52 +08:00
|
|
|
static void
|
2002-05-07 07:58:57 +08:00
|
|
|
print_indent(register int indent)
|
2001-11-07 23:28:33 +08:00
|
|
|
{
|
2002-02-20 06:01:00 +08:00
|
|
|
int myrank;
|
|
|
|
|
|
|
|
MPI_Comm_rank(pio_comm_g, &myrank);
|
2002-01-30 12:16:15 +08:00
|
|
|
|
2002-02-20 06:01:00 +08:00
|
|
|
if (myrank == 0) {
|
2002-04-24 00:07:50 +08:00
|
|
|
indent *= TAB_SPACE;
|
2002-02-20 06:01:00 +08:00
|
|
|
|
2002-04-24 00:07:50 +08:00
|
|
|
for (; indent > 0; --indent)
|
|
|
|
fputc(' ', output);
|
2002-02-20 06:01:00 +08:00
|
|
|
}
|
2001-11-07 23:28:33 +08:00
|
|
|
}
|
|
|
|
|
2002-05-29 05:54:58 +08:00
|
|
|
static void
|
2009-02-19 04:02:05 +08:00
|
|
|
recover_size_and_print(long long val, const char *end)
|
2002-05-29 05:54:58 +08:00
|
|
|
{
|
|
|
|
if (val >= ONE_KB && (val % ONE_KB) == 0) {
|
|
|
|
if (val >= ONE_MB && (val % ONE_MB) == 0) {
|
|
|
|
if (val >= ONE_GB && (val % ONE_GB) == 0)
|
|
|
|
HDfprintf(output, "%HdGB%s", val / ONE_GB, end);
|
|
|
|
else
|
|
|
|
HDfprintf(output, "%HdMB%s", val / ONE_MB, end);
|
|
|
|
} else {
|
|
|
|
HDfprintf(output, "%HdKB%s", val / ONE_KB, end);
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
HDfprintf(output, "%Hd%s", val, end);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2002-05-30 04:48:12 +08:00
|
|
|
static void
|
|
|
|
print_io_api(long io_types)
|
|
|
|
{
|
|
|
|
if (io_types & PIO_POSIX)
|
|
|
|
HDfprintf(output, "posix ");
|
|
|
|
if (io_types & PIO_MPI)
|
|
|
|
HDfprintf(output, "mpiio ");
|
|
|
|
if (io_types & PIO_HDF5)
|
|
|
|
HDfprintf(output, "phdf5 ");
|
|
|
|
HDfprintf(output, "\n");
|
|
|
|
}
|
|
|
|
|
2002-05-29 05:54:58 +08:00
|
|
|
static void
|
|
|
|
report_parameters(struct options *opts)
|
|
|
|
{
|
2002-06-20 11:44:20 +08:00
|
|
|
int rank = comm_world_rank_g;
|
2002-05-29 05:54:58 +08:00
|
|
|
|
2002-06-20 11:44:20 +08:00
|
|
|
print_version("HDF5 Library"); /* print library version */
|
2002-05-30 04:48:12 +08:00
|
|
|
HDfprintf(output, "rank %d: ==== Parameters ====\n", rank);
|
|
|
|
|
|
|
|
HDfprintf(output, "rank %d: IO API=", rank);
|
|
|
|
print_io_api(opts->io_types);
|
|
|
|
|
2002-05-29 05:54:58 +08:00
|
|
|
HDfprintf(output, "rank %d: Number of files=%Hd\n", rank,
|
2009-02-19 04:02:05 +08:00
|
|
|
(long long)opts->num_files);
|
2002-05-29 05:54:58 +08:00
|
|
|
HDfprintf(output, "rank %d: Number of datasets=%Hd\n", rank,
|
2009-02-19 04:02:05 +08:00
|
|
|
(long long)opts->num_dsets);
|
2002-05-29 05:54:58 +08:00
|
|
|
HDfprintf(output, "rank %d: Number of iterations=%Hd\n", rank,
|
2009-02-19 04:02:05 +08:00
|
|
|
(long long)opts->num_iters);
|
2002-05-30 04:48:12 +08:00
|
|
|
HDfprintf(output, "rank %d: Number of processes=%d:%d\n", rank,
|
|
|
|
opts->min_num_procs, opts->max_num_procs);
|
2002-05-29 05:54:58 +08:00
|
|
|
|
2005-08-19 22:24:21 +08:00
|
|
|
if (opts->dim2d){
|
2008-07-24 04:41:02 +08:00
|
|
|
HDfprintf(output, "rank %d: Number of bytes per process per dataset=", rank);
|
2009-02-19 04:02:05 +08:00
|
|
|
recover_size_and_print((long long)(opts->num_bpp * opts->num_bpp * opts->min_num_procs), ":");
|
|
|
|
recover_size_and_print((long long)(opts->num_bpp * opts->num_bpp * opts->max_num_procs), "\n");
|
2008-07-24 04:41:02 +08:00
|
|
|
|
|
|
|
HDfprintf(output, "rank %d: Size of dataset(s)=", rank);
|
2009-02-19 04:02:05 +08:00
|
|
|
recover_size_and_print((long long)(opts->num_bpp * opts->min_num_procs), "x");
|
|
|
|
recover_size_and_print((long long)(opts->num_bpp * opts->min_num_procs), ":");
|
|
|
|
recover_size_and_print((long long)(opts->num_bpp * opts->max_num_procs), "x");
|
|
|
|
recover_size_and_print((long long)(opts->num_bpp * opts->max_num_procs), "\n");
|
2008-07-24 04:41:02 +08:00
|
|
|
|
|
|
|
HDfprintf(output, "rank %d: File size=", rank);
|
2009-02-19 04:02:05 +08:00
|
|
|
recover_size_and_print((long long)(pow(opts->num_bpp * opts->min_num_procs,2)
|
2008-07-24 04:41:02 +08:00
|
|
|
* opts->num_dsets), ":");
|
2009-02-19 04:02:05 +08:00
|
|
|
recover_size_and_print((long long)(pow(opts->num_bpp * opts->max_num_procs,2)
|
2008-07-24 04:41:02 +08:00
|
|
|
* opts->num_dsets), "\n");
|
|
|
|
|
|
|
|
HDfprintf(output, "rank %d: Transfer buffer size=", rank);
|
|
|
|
if(opts->interleaved){
|
2009-02-19 04:02:05 +08:00
|
|
|
recover_size_and_print((long long)opts->min_xfer_size, "x");
|
|
|
|
recover_size_and_print((long long)opts->blk_size, ":");
|
|
|
|
recover_size_and_print((long long)opts->max_xfer_size, "x");
|
|
|
|
recover_size_and_print((long long)opts->blk_size, "\n");
|
2008-07-24 04:41:02 +08:00
|
|
|
}
|
|
|
|
else{
|
2009-02-19 04:02:05 +08:00
|
|
|
recover_size_and_print((long long)opts->blk_size, "x");
|
|
|
|
recover_size_and_print((long long)opts->min_xfer_size, ":");
|
|
|
|
recover_size_and_print((long long)opts->blk_size, "x");
|
|
|
|
recover_size_and_print((long long)opts->max_xfer_size, "\n");
|
2008-07-24 04:41:02 +08:00
|
|
|
}
|
|
|
|
HDfprintf(output, "rank %d: Block size=", rank);
|
2009-02-19 04:02:05 +08:00
|
|
|
recover_size_and_print((long long)opts->blk_size, "x");
|
|
|
|
recover_size_and_print((long long)opts->blk_size, "\n");
|
2005-08-19 22:24:21 +08:00
|
|
|
}
|
|
|
|
else{
|
2008-07-24 04:41:02 +08:00
|
|
|
HDfprintf(output, "rank %d: Number of bytes per process per dataset=", rank);
|
2009-02-19 04:02:05 +08:00
|
|
|
recover_size_and_print((long long)opts->num_bpp, "\n");
|
2008-07-24 04:41:02 +08:00
|
|
|
|
|
|
|
HDfprintf(output, "rank %d: Size of dataset(s)=", rank);
|
2009-02-19 04:02:05 +08:00
|
|
|
recover_size_and_print((long long)(opts->num_bpp * opts->min_num_procs), ":");
|
|
|
|
recover_size_and_print((long long)(opts->num_bpp * opts->max_num_procs), "\n");
|
2008-07-24 04:41:02 +08:00
|
|
|
|
|
|
|
HDfprintf(output, "rank %d: File size=", rank);
|
2009-02-19 04:02:05 +08:00
|
|
|
recover_size_and_print((long long)(opts->num_bpp * opts->min_num_procs
|
2008-07-24 04:41:02 +08:00
|
|
|
* opts->num_dsets), ":");
|
2009-02-19 04:02:05 +08:00
|
|
|
recover_size_and_print((long long)(opts->num_bpp * opts->max_num_procs
|
2008-07-24 04:41:02 +08:00
|
|
|
* opts->num_dsets), "\n");
|
|
|
|
|
|
|
|
HDfprintf(output, "rank %d: Transfer buffer size=", rank);
|
2009-02-19 04:02:05 +08:00
|
|
|
recover_size_and_print((long long)opts->min_xfer_size, ":");
|
|
|
|
recover_size_and_print((long long)opts->max_xfer_size, "\n");
|
2008-07-24 04:41:02 +08:00
|
|
|
HDfprintf(output, "rank %d: Block size=", rank);
|
2009-02-19 04:02:05 +08:00
|
|
|
recover_size_and_print((long long)opts->blk_size, "\n");
|
2005-08-19 22:24:21 +08:00
|
|
|
}
|
2002-05-29 05:54:58 +08:00
|
|
|
|
2002-06-27 23:09:12 +08:00
|
|
|
HDfprintf(output, "rank %d: Block Pattern in Dataset=", rank);
|
2002-06-27 21:11:31 +08:00
|
|
|
if(opts->interleaved)
|
2002-06-27 23:09:12 +08:00
|
|
|
HDfprintf(output, "Interleaved\n");
|
2002-06-27 21:11:31 +08:00
|
|
|
else
|
2002-06-27 23:09:12 +08:00
|
|
|
HDfprintf(output, "Contiguous\n");
|
|
|
|
|
|
|
|
HDfprintf(output, "rank %d: I/O Method for MPI and HDF5=", rank);
|
|
|
|
if(opts->collective)
|
|
|
|
HDfprintf(output, "Collective\n");
|
|
|
|
else
|
|
|
|
HDfprintf(output, "Independent\n");
|
2002-05-30 16:46:59 +08:00
|
|
|
|
2005-08-19 22:24:21 +08:00
|
|
|
HDfprintf(output, "rank %d: Geometry=", rank);
|
|
|
|
if(opts->dim2d)
|
|
|
|
HDfprintf(output, "2D\n");
|
|
|
|
else
|
|
|
|
HDfprintf(output, "1D\n");
|
2006-06-27 22:45:06 +08:00
|
|
|
|
2002-07-15 23:21:05 +08:00
|
|
|
HDfprintf(output, "rank %d: VFL used for HDF5 I/O=", rank);
|
|
|
|
if(opts->h5_use_mpi_posix)
|
|
|
|
HDfprintf(output, "MPI-posix driver\n");
|
|
|
|
else
|
|
|
|
HDfprintf(output, "MPI-I/O driver\n");
|
|
|
|
|
|
|
|
HDfprintf(output, "rank %d: Data storage method in HDF5=", rank);
|
|
|
|
if(opts->h5_use_chunks)
|
|
|
|
HDfprintf(output, "Chunked\n");
|
|
|
|
else
|
|
|
|
HDfprintf(output, "Contiguous\n");
|
|
|
|
|
2002-05-29 05:54:58 +08:00
|
|
|
{
|
2002-05-30 04:48:12 +08:00
|
|
|
char *prefix = getenv("HDF5_PARAPREFIX");
|
2002-05-29 05:54:58 +08:00
|
|
|
|
2002-05-30 04:48:12 +08:00
|
|
|
HDfprintf(output, "rank %d: Env HDF5_PARAPREFIX=%s\n", rank,
|
2002-05-29 05:54:58 +08:00
|
|
|
(prefix ? prefix : "not set"));
|
|
|
|
}
|
|
|
|
|
|
|
|
HDfprintf(output, "rank %d: ", rank);
|
2002-05-30 02:40:29 +08:00
|
|
|
h5_dump_info_object(h5_io_info_g);
|
2002-05-30 04:48:12 +08:00
|
|
|
|
|
|
|
HDfprintf(output, "rank %d: ==== End of Parameters ====\n", rank);
|
2002-05-29 05:54:58 +08:00
|
|
|
HDfprintf(output, "\n");
|
|
|
|
}
|
|
|
|
|
2001-11-07 23:28:33 +08:00
|
|
|
/*
|
|
|
|
* Function: parse_command_line
|
|
|
|
* Purpose: Parse the command line options and return a STRUCT OPTIONS
|
|
|
|
* structure which will need to be freed by the calling function.
|
2001-11-16 06:46:32 +08:00
|
|
|
* Return: Pointer to an OPTIONS structure
|
2001-11-07 23:28:33 +08:00
|
|
|
* Programmer: Bill Wendling, 31. October 2001
|
|
|
|
* Modifications:
|
2005-08-19 22:24:21 +08:00
|
|
|
* Added 2D testing (Christian Chilan, 10. August 2005)
|
2001-11-07 23:28:33 +08:00
|
|
|
*/
|
|
|
|
static struct options *
|
|
|
|
parse_command_line(int argc, char *argv[])
|
|
|
|
{
|
2001-12-19 04:56:26 +08:00
|
|
|
register int opt;
|
2001-11-07 23:28:33 +08:00
|
|
|
struct options *cl_opts;
|
|
|
|
|
[svn-r4733]
Purpose:
Feature Changes
Description:
Okay, I needed to add in more parameters so that the user can modify
how things are supposed to work with the PIO programs. Also needed
to change the algorithm a bit to make these work. And needed to add
in timing for the READ option.
Solution:
Added the above things. The parameters took a major rewrite of the
command-line parsing stuff. Here's the usage statement:
usage: pio_perf [OPTIONS]
OPTIONS
-h, --help Print a usage message and exit
-d N, --num-dsets=N Number of datasets per file [default:1]
-f S, --file-size=S Size of a single file [default: 64M]
-F N, --num-files=N Number of files [default: 1]
-H, --hdf5 Run HDF5 performance test
-i, --num-iterations Number of iterations to perform [default: 1]
-m, --mpiio Run MPI/IO performance test
-o F, --output=F Output raw data into file F [default: none]
-P N, --max-num-processes=N Maximum number of processes to use [default: 1]
-p N, --min-num-processes=N Minimum number of processes to use [default: 1]
-r, --raw Run raw (UNIX) performance test
-X S, --max-xfer-size=S Maximum transfer buffer size [default: 1M]
-x S, --min-xfer-size=S Minimum transfer buffer size [default: 1K]
F - is a filename.
N - is an integer >=0.
S - is a size specifier, an integer >=0 followed by a size indicator:
K - Kilobyte
M - Megabyte
G - Gigabyte
Example: 37M = 37 Megabytes
Platforms tested:
Linux, but not fully finished...
2001-12-19 04:12:21 +08:00
|
|
|
cl_opts = (struct options *)malloc(sizeof(struct options));
|
|
|
|
|
|
|
|
cl_opts->output_file = NULL;
|
2002-05-30 04:48:12 +08:00
|
|
|
cl_opts->io_types = 0; /* will set default after parsing options */
|
[svn-r4733]
Purpose:
Feature Changes
Description:
Okay, I needed to add in more parameters so that the user can modify
how things are supposed to work with the PIO programs. Also needed
to change the algorithm a bit to make these work. And needed to add
in timing for the READ option.
Solution:
Added the above things. The parameters took a major rewrite of the
command-line parsing stuff. Here's the usage statement:
usage: pio_perf [OPTIONS]
OPTIONS
-h, --help Print a usage message and exit
-d N, --num-dsets=N Number of datasets per file [default:1]
-f S, --file-size=S Size of a single file [default: 64M]
-F N, --num-files=N Number of files [default: 1]
-H, --hdf5 Run HDF5 performance test
-i, --num-iterations Number of iterations to perform [default: 1]
-m, --mpiio Run MPI/IO performance test
-o F, --output=F Output raw data into file F [default: none]
-P N, --max-num-processes=N Maximum number of processes to use [default: 1]
-p N, --min-num-processes=N Minimum number of processes to use [default: 1]
-r, --raw Run raw (UNIX) performance test
-X S, --max-xfer-size=S Maximum transfer buffer size [default: 1M]
-x S, --min-xfer-size=S Minimum transfer buffer size [default: 1K]
F - is a filename.
N - is an integer >=0.
S - is a size specifier, an integer >=0 followed by a size indicator:
K - Kilobyte
M - Megabyte
G - Gigabyte
Example: 37M = 37 Megabytes
Platforms tested:
Linux, but not fully finished...
2001-12-19 04:12:21 +08:00
|
|
|
cl_opts->num_dsets = 1;
|
|
|
|
cl_opts->num_files = 1;
|
2008-07-24 04:41:02 +08:00
|
|
|
cl_opts->num_bpp = 0;
|
[svn-r4733]
Purpose:
Feature Changes
Description:
Okay, I needed to add in more parameters so that the user can modify
how things are supposed to work with the PIO programs. Also needed
to change the algorithm a bit to make these work. And needed to add
in timing for the READ option.
Solution:
Added the above things. The parameters took a major rewrite of the
command-line parsing stuff. Here's the usage statement:
usage: pio_perf [OPTIONS]
OPTIONS
-h, --help Print a usage message and exit
-d N, --num-dsets=N Number of datasets per file [default:1]
-f S, --file-size=S Size of a single file [default: 64M]
-F N, --num-files=N Number of files [default: 1]
-H, --hdf5 Run HDF5 performance test
-i, --num-iterations Number of iterations to perform [default: 1]
-m, --mpiio Run MPI/IO performance test
-o F, --output=F Output raw data into file F [default: none]
-P N, --max-num-processes=N Maximum number of processes to use [default: 1]
-p N, --min-num-processes=N Minimum number of processes to use [default: 1]
-r, --raw Run raw (UNIX) performance test
-X S, --max-xfer-size=S Maximum transfer buffer size [default: 1M]
-x S, --min-xfer-size=S Minimum transfer buffer size [default: 1K]
F - is a filename.
N - is an integer >=0.
S - is a size specifier, an integer >=0 followed by a size indicator:
K - Kilobyte
M - Megabyte
G - Gigabyte
Example: 37M = 37 Megabytes
Platforms tested:
Linux, but not fully finished...
2001-12-19 04:12:21 +08:00
|
|
|
cl_opts->num_iters = 1;
|
2002-02-14 23:51:12 +08:00
|
|
|
cl_opts->max_num_procs = comm_world_nprocs_g;
|
[svn-r4733]
Purpose:
Feature Changes
Description:
Okay, I needed to add in more parameters so that the user can modify
how things are supposed to work with the PIO programs. Also needed
to change the algorithm a bit to make these work. And needed to add
in timing for the READ option.
Solution:
Added the above things. The parameters took a major rewrite of the
command-line parsing stuff. Here's the usage statement:
usage: pio_perf [OPTIONS]
OPTIONS
-h, --help Print a usage message and exit
-d N, --num-dsets=N Number of datasets per file [default:1]
-f S, --file-size=S Size of a single file [default: 64M]
-F N, --num-files=N Number of files [default: 1]
-H, --hdf5 Run HDF5 performance test
-i, --num-iterations Number of iterations to perform [default: 1]
-m, --mpiio Run MPI/IO performance test
-o F, --output=F Output raw data into file F [default: none]
-P N, --max-num-processes=N Maximum number of processes to use [default: 1]
-p N, --min-num-processes=N Minimum number of processes to use [default: 1]
-r, --raw Run raw (UNIX) performance test
-X S, --max-xfer-size=S Maximum transfer buffer size [default: 1M]
-x S, --min-xfer-size=S Minimum transfer buffer size [default: 1K]
F - is a filename.
N - is an integer >=0.
S - is a size specifier, an integer >=0 followed by a size indicator:
K - Kilobyte
M - Megabyte
G - Gigabyte
Example: 37M = 37 Megabytes
Platforms tested:
Linux, but not fully finished...
2001-12-19 04:12:21 +08:00
|
|
|
cl_opts->min_num_procs = 1;
|
2008-07-24 04:41:02 +08:00
|
|
|
cl_opts->max_xfer_size = 0;
|
|
|
|
cl_opts->min_xfer_size = 0;
|
|
|
|
cl_opts->blk_size = 0;
|
2002-06-27 21:11:31 +08:00
|
|
|
cl_opts->interleaved = 0; /* Default to contiguous blocks in dataset */
|
2002-06-27 23:09:12 +08:00
|
|
|
cl_opts->collective = 0; /* Default to independent I/O access */
|
2005-08-19 22:24:21 +08:00
|
|
|
cl_opts->dim2d = 0; /* Default to 1D */
|
2002-06-05 05:31:35 +08:00
|
|
|
cl_opts->print_times = FALSE; /* Printing times is off by default */
|
|
|
|
cl_opts->print_raw = FALSE; /* Printing raw data throughput is off by default */
|
|
|
|
cl_opts->h5_alignment = 1; /* No alignment for HDF5 objects by default */
|
|
|
|
cl_opts->h5_threshold = 1; /* No threshold for aligning HDF5 objects by default */
|
|
|
|
cl_opts->h5_use_chunks = FALSE; /* Don't chunk the HDF5 dataset by default */
|
|
|
|
cl_opts->h5_write_only = FALSE; /* Do both read and write by default */
|
2002-07-15 23:21:05 +08:00
|
|
|
cl_opts->h5_use_mpi_posix = FALSE; /* Don't use MPI-posix VFD for HDF5 I/O by default */
|
2002-06-06 12:58:29 +08:00
|
|
|
cl_opts->verify = FALSE; /* No Verify data correctness by default */
|
2001-11-07 23:28:33 +08:00
|
|
|
|
|
|
|
while ((opt = get_option(argc, (const char **)argv, s_opts, l_opts)) != EOF) {
|
|
|
|
switch ((char)opt) {
|
2002-05-23 07:22:46 +08:00
|
|
|
case 'a':
|
|
|
|
cl_opts->h5_alignment = parse_size_directive(opt_arg);
|
|
|
|
break;
|
|
|
|
case 'A':
|
|
|
|
{
|
|
|
|
const char *end = opt_arg;
|
|
|
|
|
|
|
|
while (end && *end != '\0') {
|
|
|
|
char buf[10];
|
|
|
|
int i;
|
|
|
|
|
|
|
|
memset(buf, '\0', sizeof(buf));
|
|
|
|
|
|
|
|
for (i = 0; *end != '\0' && *end != ','; ++end)
|
|
|
|
if (isalnum(*end) && i < 10)
|
|
|
|
buf[i++] = *end;
|
|
|
|
|
|
|
|
if (!strcasecmp(buf, "phdf5")) {
|
|
|
|
cl_opts->io_types |= PIO_HDF5;
|
|
|
|
} else if (!strcasecmp(buf, "mpiio")) {
|
|
|
|
cl_opts->io_types |= PIO_MPI;
|
|
|
|
} else if (!strcasecmp(buf, "posix")) {
|
|
|
|
cl_opts->io_types |= PIO_POSIX;
|
|
|
|
} else {
|
|
|
|
fprintf(stderr, "pio_perf: invalid --api option %s\n",
|
|
|
|
buf);
|
2002-05-29 05:54:58 +08:00
|
|
|
exit(EXIT_FAILURE);
|
2002-05-23 07:22:46 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
if (*end == '\0')
|
|
|
|
break;
|
|
|
|
|
|
|
|
end++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
break;
|
2001-11-07 23:28:33 +08:00
|
|
|
#if 0
|
|
|
|
case 'b':
|
|
|
|
/* the future "binary" option */
|
|
|
|
break;
|
|
|
|
#endif /* 0 */
|
2002-07-03 04:06:22 +08:00
|
|
|
case 'B':
|
|
|
|
cl_opts->blk_size = parse_size_directive(opt_arg);
|
|
|
|
break;
|
2002-06-05 05:31:35 +08:00
|
|
|
case 'c':
|
|
|
|
/* Turn on chunked HDF5 dataset creation */
|
|
|
|
cl_opts->h5_use_chunks = TRUE;
|
2002-05-23 07:22:46 +08:00
|
|
|
break;
|
2002-06-27 23:09:12 +08:00
|
|
|
case 'C':
|
|
|
|
cl_opts->collective = 1;
|
|
|
|
break;
|
[svn-r4733]
Purpose:
Feature Changes
Description:
Okay, I needed to add in more parameters so that the user can modify
how things are supposed to work with the PIO programs. Also needed
to change the algorithm a bit to make these work. And needed to add
in timing for the READ option.
Solution:
Added the above things. The parameters took a major rewrite of the
command-line parsing stuff. Here's the usage statement:
usage: pio_perf [OPTIONS]
OPTIONS
-h, --help Print a usage message and exit
-d N, --num-dsets=N Number of datasets per file [default:1]
-f S, --file-size=S Size of a single file [default: 64M]
-F N, --num-files=N Number of files [default: 1]
-H, --hdf5 Run HDF5 performance test
-i, --num-iterations Number of iterations to perform [default: 1]
-m, --mpiio Run MPI/IO performance test
-o F, --output=F Output raw data into file F [default: none]
-P N, --max-num-processes=N Maximum number of processes to use [default: 1]
-p N, --min-num-processes=N Minimum number of processes to use [default: 1]
-r, --raw Run raw (UNIX) performance test
-X S, --max-xfer-size=S Maximum transfer buffer size [default: 1M]
-x S, --min-xfer-size=S Minimum transfer buffer size [default: 1K]
F - is a filename.
N - is an integer >=0.
S - is a size specifier, an integer >=0 followed by a size indicator:
K - Kilobyte
M - Megabyte
G - Gigabyte
Example: 37M = 37 Megabytes
Platforms tested:
Linux, but not fully finished...
2001-12-19 04:12:21 +08:00
|
|
|
case 'd':
|
2002-05-23 07:22:46 +08:00
|
|
|
cl_opts->num_dsets = atoi(opt_arg);
|
2002-01-30 12:16:15 +08:00
|
|
|
break;
|
|
|
|
case 'D':
|
2002-05-23 07:22:46 +08:00
|
|
|
{
|
|
|
|
const char *end = opt_arg;
|
|
|
|
|
|
|
|
while (end && *end != '\0') {
|
|
|
|
char buf[10];
|
|
|
|
int i;
|
|
|
|
|
|
|
|
memset(buf, '\0', sizeof(buf));
|
|
|
|
|
|
|
|
for (i = 0; *end != '\0' && *end != ','; ++end)
|
|
|
|
if (isalnum(*end) && i < 10)
|
|
|
|
buf[i++] = *end;
|
|
|
|
|
|
|
|
if (strlen(buf) > 1 || isdigit(buf[0])) {
|
2002-06-20 00:06:55 +08:00
|
|
|
size_t j;
|
2002-05-23 07:22:46 +08:00
|
|
|
|
2002-06-20 00:06:55 +08:00
|
|
|
for (j = 0; j < 10 && buf[j] != '\0'; ++j)
|
|
|
|
if (!isdigit(buf[j])) {
|
2002-05-23 07:22:46 +08:00
|
|
|
fprintf(stderr, "pio_perf: invalid --debug option %s\n",
|
|
|
|
buf);
|
2002-05-29 05:54:58 +08:00
|
|
|
exit(EXIT_FAILURE);
|
2002-05-23 07:22:46 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
pio_debug_level = atoi(buf);
|
|
|
|
|
|
|
|
if (pio_debug_level > 4)
|
|
|
|
pio_debug_level = 4;
|
|
|
|
else if (pio_debug_level < 0)
|
|
|
|
pio_debug_level = 0;
|
|
|
|
} else {
|
|
|
|
switch (*buf) {
|
|
|
|
case 'r':
|
|
|
|
/* Turn on raw data throughput info */
|
2002-06-05 05:31:35 +08:00
|
|
|
cl_opts->print_raw = TRUE;
|
2002-05-23 07:22:46 +08:00
|
|
|
break;
|
|
|
|
case 't':
|
|
|
|
/* Turn on time printing */
|
2002-06-05 05:31:35 +08:00
|
|
|
cl_opts->print_times = TRUE;
|
2002-05-23 07:22:46 +08:00
|
|
|
break;
|
2008-07-24 04:41:02 +08:00
|
|
|
case 'v':
|
2002-06-06 12:58:29 +08:00
|
|
|
/* Turn on verify data correctness*/
|
2008-07-24 04:41:02 +08:00
|
|
|
cl_opts->verify = TRUE;
|
|
|
|
break;
|
2002-05-23 07:22:46 +08:00
|
|
|
default:
|
|
|
|
fprintf(stderr, "pio_perf: invalid --debug option %s\n", buf);
|
2002-05-29 05:54:58 +08:00
|
|
|
exit(EXIT_FAILURE);
|
2002-05-23 07:22:46 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (*end == '\0')
|
|
|
|
break;
|
|
|
|
|
|
|
|
end++;
|
|
|
|
}
|
|
|
|
}
|
2002-01-30 12:16:15 +08:00
|
|
|
|
[svn-r4733]
Purpose:
Feature Changes
Description:
Okay, I needed to add in more parameters so that the user can modify
how things are supposed to work with the PIO programs. Also needed
to change the algorithm a bit to make these work. And needed to add
in timing for the READ option.
Solution:
Added the above things. The parameters took a major rewrite of the
command-line parsing stuff. Here's the usage statement:
usage: pio_perf [OPTIONS]
OPTIONS
-h, --help Print a usage message and exit
-d N, --num-dsets=N Number of datasets per file [default:1]
-f S, --file-size=S Size of a single file [default: 64M]
-F N, --num-files=N Number of files [default: 1]
-H, --hdf5 Run HDF5 performance test
-i, --num-iterations Number of iterations to perform [default: 1]
-m, --mpiio Run MPI/IO performance test
-o F, --output=F Output raw data into file F [default: none]
-P N, --max-num-processes=N Maximum number of processes to use [default: 1]
-p N, --min-num-processes=N Minimum number of processes to use [default: 1]
-r, --raw Run raw (UNIX) performance test
-X S, --max-xfer-size=S Maximum transfer buffer size [default: 1M]
-x S, --min-xfer-size=S Minimum transfer buffer size [default: 1K]
F - is a filename.
N - is an integer >=0.
S - is a size specifier, an integer >=0 followed by a size indicator:
K - Kilobyte
M - Megabyte
G - Gigabyte
Example: 37M = 37 Megabytes
Platforms tested:
Linux, but not fully finished...
2001-12-19 04:12:21 +08:00
|
|
|
break;
|
2002-07-03 04:06:22 +08:00
|
|
|
case 'e':
|
|
|
|
cl_opts->num_bpp = parse_size_directive(opt_arg);
|
[svn-r4733]
Purpose:
Feature Changes
Description:
Okay, I needed to add in more parameters so that the user can modify
how things are supposed to work with the PIO programs. Also needed
to change the algorithm a bit to make these work. And needed to add
in timing for the READ option.
Solution:
Added the above things. The parameters took a major rewrite of the
command-line parsing stuff. Here's the usage statement:
usage: pio_perf [OPTIONS]
OPTIONS
-h, --help Print a usage message and exit
-d N, --num-dsets=N Number of datasets per file [default:1]
-f S, --file-size=S Size of a single file [default: 64M]
-F N, --num-files=N Number of files [default: 1]
-H, --hdf5 Run HDF5 performance test
-i, --num-iterations Number of iterations to perform [default: 1]
-m, --mpiio Run MPI/IO performance test
-o F, --output=F Output raw data into file F [default: none]
-P N, --max-num-processes=N Maximum number of processes to use [default: 1]
-p N, --min-num-processes=N Minimum number of processes to use [default: 1]
-r, --raw Run raw (UNIX) performance test
-X S, --max-xfer-size=S Maximum transfer buffer size [default: 1M]
-x S, --min-xfer-size=S Minimum transfer buffer size [default: 1K]
F - is a filename.
N - is an integer >=0.
S - is a size specifier, an integer >=0 followed by a size indicator:
K - Kilobyte
M - Megabyte
G - Gigabyte
Example: 37M = 37 Megabytes
Platforms tested:
Linux, but not fully finished...
2001-12-19 04:12:21 +08:00
|
|
|
break;
|
|
|
|
case 'F':
|
2002-05-23 07:22:46 +08:00
|
|
|
cl_opts->num_files = atoi(opt_arg);
|
[svn-r4733]
Purpose:
Feature Changes
Description:
Okay, I needed to add in more parameters so that the user can modify
how things are supposed to work with the PIO programs. Also needed
to change the algorithm a bit to make these work. And needed to add
in timing for the READ option.
Solution:
Added the above things. The parameters took a major rewrite of the
command-line parsing stuff. Here's the usage statement:
usage: pio_perf [OPTIONS]
OPTIONS
-h, --help Print a usage message and exit
-d N, --num-dsets=N Number of datasets per file [default:1]
-f S, --file-size=S Size of a single file [default: 64M]
-F N, --num-files=N Number of files [default: 1]
-H, --hdf5 Run HDF5 performance test
-i, --num-iterations Number of iterations to perform [default: 1]
-m, --mpiio Run MPI/IO performance test
-o F, --output=F Output raw data into file F [default: none]
-P N, --max-num-processes=N Maximum number of processes to use [default: 1]
-p N, --min-num-processes=N Minimum number of processes to use [default: 1]
-r, --raw Run raw (UNIX) performance test
-X S, --max-xfer-size=S Maximum transfer buffer size [default: 1M]
-x S, --min-xfer-size=S Minimum transfer buffer size [default: 1K]
F - is a filename.
N - is an integer >=0.
S - is a size specifier, an integer >=0 followed by a size indicator:
K - Kilobyte
M - Megabyte
G - Gigabyte
Example: 37M = 37 Megabytes
Platforms tested:
Linux, but not fully finished...
2001-12-19 04:12:21 +08:00
|
|
|
break;
|
2005-08-19 22:24:21 +08:00
|
|
|
case 'g':
|
|
|
|
cl_opts->dim2d = 1;
|
|
|
|
break;
|
[svn-r4733]
Purpose:
Feature Changes
Description:
Okay, I needed to add in more parameters so that the user can modify
how things are supposed to work with the PIO programs. Also needed
to change the algorithm a bit to make these work. And needed to add
in timing for the READ option.
Solution:
Added the above things. The parameters took a major rewrite of the
command-line parsing stuff. Here's the usage statement:
usage: pio_perf [OPTIONS]
OPTIONS
-h, --help Print a usage message and exit
-d N, --num-dsets=N Number of datasets per file [default:1]
-f S, --file-size=S Size of a single file [default: 64M]
-F N, --num-files=N Number of files [default: 1]
-H, --hdf5 Run HDF5 performance test
-i, --num-iterations Number of iterations to perform [default: 1]
-m, --mpiio Run MPI/IO performance test
-o F, --output=F Output raw data into file F [default: none]
-P N, --max-num-processes=N Maximum number of processes to use [default: 1]
-p N, --min-num-processes=N Minimum number of processes to use [default: 1]
-r, --raw Run raw (UNIX) performance test
-X S, --max-xfer-size=S Maximum transfer buffer size [default: 1M]
-x S, --min-xfer-size=S Minimum transfer buffer size [default: 1K]
F - is a filename.
N - is an integer >=0.
S - is a size specifier, an integer >=0 followed by a size indicator:
K - Kilobyte
M - Megabyte
G - Gigabyte
Example: 37M = 37 Megabytes
Platforms tested:
Linux, but not fully finished...
2001-12-19 04:12:21 +08:00
|
|
|
case 'i':
|
2002-05-23 07:22:46 +08:00
|
|
|
cl_opts->num_iters = atoi(opt_arg);
|
[svn-r4733]
Purpose:
Feature Changes
Description:
Okay, I needed to add in more parameters so that the user can modify
how things are supposed to work with the PIO programs. Also needed
to change the algorithm a bit to make these work. And needed to add
in timing for the READ option.
Solution:
Added the above things. The parameters took a major rewrite of the
command-line parsing stuff. Here's the usage statement:
usage: pio_perf [OPTIONS]
OPTIONS
-h, --help Print a usage message and exit
-d N, --num-dsets=N Number of datasets per file [default:1]
-f S, --file-size=S Size of a single file [default: 64M]
-F N, --num-files=N Number of files [default: 1]
-H, --hdf5 Run HDF5 performance test
-i, --num-iterations Number of iterations to perform [default: 1]
-m, --mpiio Run MPI/IO performance test
-o F, --output=F Output raw data into file F [default: none]
-P N, --max-num-processes=N Maximum number of processes to use [default: 1]
-p N, --min-num-processes=N Minimum number of processes to use [default: 1]
-r, --raw Run raw (UNIX) performance test
-X S, --max-xfer-size=S Maximum transfer buffer size [default: 1M]
-x S, --min-xfer-size=S Minimum transfer buffer size [default: 1K]
F - is a filename.
N - is an integer >=0.
S - is a size specifier, an integer >=0 followed by a size indicator:
K - Kilobyte
M - Megabyte
G - Gigabyte
Example: 37M = 37 Megabytes
Platforms tested:
Linux, but not fully finished...
2001-12-19 04:12:21 +08:00
|
|
|
break;
|
2002-06-27 21:11:31 +08:00
|
|
|
case 'I':
|
|
|
|
cl_opts->interleaved = 1;
|
|
|
|
break;
|
2002-07-15 23:21:05 +08:00
|
|
|
case 'm':
|
|
|
|
/* Turn on MPI-posix VFL driver for HDF5 I/O */
|
|
|
|
cl_opts->h5_use_mpi_posix = TRUE;
|
|
|
|
break;
|
2001-11-07 23:28:33 +08:00
|
|
|
case 'o':
|
|
|
|
cl_opts->output_file = opt_arg;
|
|
|
|
break;
|
[svn-r4733]
Purpose:
Feature Changes
Description:
Okay, I needed to add in more parameters so that the user can modify
how things are supposed to work with the PIO programs. Also needed
to change the algorithm a bit to make these work. And needed to add
in timing for the READ option.
Solution:
Added the above things. The parameters took a major rewrite of the
command-line parsing stuff. Here's the usage statement:
usage: pio_perf [OPTIONS]
OPTIONS
-h, --help Print a usage message and exit
-d N, --num-dsets=N Number of datasets per file [default:1]
-f S, --file-size=S Size of a single file [default: 64M]
-F N, --num-files=N Number of files [default: 1]
-H, --hdf5 Run HDF5 performance test
-i, --num-iterations Number of iterations to perform [default: 1]
-m, --mpiio Run MPI/IO performance test
-o F, --output=F Output raw data into file F [default: none]
-P N, --max-num-processes=N Maximum number of processes to use [default: 1]
-p N, --min-num-processes=N Minimum number of processes to use [default: 1]
-r, --raw Run raw (UNIX) performance test
-X S, --max-xfer-size=S Maximum transfer buffer size [default: 1M]
-x S, --min-xfer-size=S Minimum transfer buffer size [default: 1K]
F - is a filename.
N - is an integer >=0.
S - is a size specifier, an integer >=0 followed by a size indicator:
K - Kilobyte
M - Megabyte
G - Gigabyte
Example: 37M = 37 Megabytes
Platforms tested:
Linux, but not fully finished...
2001-12-19 04:12:21 +08:00
|
|
|
case 'p':
|
2002-05-23 07:22:46 +08:00
|
|
|
cl_opts->min_num_procs = atoi(opt_arg);
|
[svn-r4733]
Purpose:
Feature Changes
Description:
Okay, I needed to add in more parameters so that the user can modify
how things are supposed to work with the PIO programs. Also needed
to change the algorithm a bit to make these work. And needed to add
in timing for the READ option.
Solution:
Added the above things. The parameters took a major rewrite of the
command-line parsing stuff. Here's the usage statement:
usage: pio_perf [OPTIONS]
OPTIONS
-h, --help Print a usage message and exit
-d N, --num-dsets=N Number of datasets per file [default:1]
-f S, --file-size=S Size of a single file [default: 64M]
-F N, --num-files=N Number of files [default: 1]
-H, --hdf5 Run HDF5 performance test
-i, --num-iterations Number of iterations to perform [default: 1]
-m, --mpiio Run MPI/IO performance test
-o F, --output=F Output raw data into file F [default: none]
-P N, --max-num-processes=N Maximum number of processes to use [default: 1]
-p N, --min-num-processes=N Minimum number of processes to use [default: 1]
-r, --raw Run raw (UNIX) performance test
-X S, --max-xfer-size=S Maximum transfer buffer size [default: 1M]
-x S, --min-xfer-size=S Minimum transfer buffer size [default: 1K]
F - is a filename.
N - is an integer >=0.
S - is a size specifier, an integer >=0 followed by a size indicator:
K - Kilobyte
M - Megabyte
G - Gigabyte
Example: 37M = 37 Megabytes
Platforms tested:
Linux, but not fully finished...
2001-12-19 04:12:21 +08:00
|
|
|
break;
|
|
|
|
case 'P':
|
2002-05-23 07:22:46 +08:00
|
|
|
cl_opts->max_num_procs = atoi(opt_arg);
|
[svn-r4733]
Purpose:
Feature Changes
Description:
Okay, I needed to add in more parameters so that the user can modify
how things are supposed to work with the PIO programs. Also needed
to change the algorithm a bit to make these work. And needed to add
in timing for the READ option.
Solution:
Added the above things. The parameters took a major rewrite of the
command-line parsing stuff. Here's the usage statement:
usage: pio_perf [OPTIONS]
OPTIONS
-h, --help Print a usage message and exit
-d N, --num-dsets=N Number of datasets per file [default:1]
-f S, --file-size=S Size of a single file [default: 64M]
-F N, --num-files=N Number of files [default: 1]
-H, --hdf5 Run HDF5 performance test
-i, --num-iterations Number of iterations to perform [default: 1]
-m, --mpiio Run MPI/IO performance test
-o F, --output=F Output raw data into file F [default: none]
-P N, --max-num-processes=N Maximum number of processes to use [default: 1]
-p N, --min-num-processes=N Minimum number of processes to use [default: 1]
-r, --raw Run raw (UNIX) performance test
-X S, --max-xfer-size=S Maximum transfer buffer size [default: 1M]
-x S, --min-xfer-size=S Minimum transfer buffer size [default: 1K]
F - is a filename.
N - is an integer >=0.
S - is a size specifier, an integer >=0 followed by a size indicator:
K - Kilobyte
M - Megabyte
G - Gigabyte
Example: 37M = 37 Megabytes
Platforms tested:
Linux, but not fully finished...
2001-12-19 04:12:21 +08:00
|
|
|
break;
|
2002-05-23 07:22:46 +08:00
|
|
|
case 'T':
|
|
|
|
cl_opts->h5_threshold = parse_size_directive(opt_arg);
|
[svn-r4733]
Purpose:
Feature Changes
Description:
Okay, I needed to add in more parameters so that the user can modify
how things are supposed to work with the PIO programs. Also needed
to change the algorithm a bit to make these work. And needed to add
in timing for the READ option.
Solution:
Added the above things. The parameters took a major rewrite of the
command-line parsing stuff. Here's the usage statement:
usage: pio_perf [OPTIONS]
OPTIONS
-h, --help Print a usage message and exit
-d N, --num-dsets=N Number of datasets per file [default:1]
-f S, --file-size=S Size of a single file [default: 64M]
-F N, --num-files=N Number of files [default: 1]
-H, --hdf5 Run HDF5 performance test
-i, --num-iterations Number of iterations to perform [default: 1]
-m, --mpiio Run MPI/IO performance test
-o F, --output=F Output raw data into file F [default: none]
-P N, --max-num-processes=N Maximum number of processes to use [default: 1]
-p N, --min-num-processes=N Minimum number of processes to use [default: 1]
-r, --raw Run raw (UNIX) performance test
-X S, --max-xfer-size=S Maximum transfer buffer size [default: 1M]
-x S, --min-xfer-size=S Minimum transfer buffer size [default: 1K]
F - is a filename.
N - is an integer >=0.
S - is a size specifier, an integer >=0 followed by a size indicator:
K - Kilobyte
M - Megabyte
G - Gigabyte
Example: 37M = 37 Megabytes
Platforms tested:
Linux, but not fully finished...
2001-12-19 04:12:21 +08:00
|
|
|
break;
|
2002-06-27 23:09:12 +08:00
|
|
|
case 'w':
|
|
|
|
cl_opts->h5_write_only = TRUE;
|
|
|
|
break;
|
[svn-r4733]
Purpose:
Feature Changes
Description:
Okay, I needed to add in more parameters so that the user can modify
how things are supposed to work with the PIO programs. Also needed
to change the algorithm a bit to make these work. And needed to add
in timing for the READ option.
Solution:
Added the above things. The parameters took a major rewrite of the
command-line parsing stuff. Here's the usage statement:
usage: pio_perf [OPTIONS]
OPTIONS
-h, --help Print a usage message and exit
-d N, --num-dsets=N Number of datasets per file [default:1]
-f S, --file-size=S Size of a single file [default: 64M]
-F N, --num-files=N Number of files [default: 1]
-H, --hdf5 Run HDF5 performance test
-i, --num-iterations Number of iterations to perform [default: 1]
-m, --mpiio Run MPI/IO performance test
-o F, --output=F Output raw data into file F [default: none]
-P N, --max-num-processes=N Maximum number of processes to use [default: 1]
-p N, --min-num-processes=N Minimum number of processes to use [default: 1]
-r, --raw Run raw (UNIX) performance test
-X S, --max-xfer-size=S Maximum transfer buffer size [default: 1M]
-x S, --min-xfer-size=S Minimum transfer buffer size [default: 1K]
F - is a filename.
N - is an integer >=0.
S - is a size specifier, an integer >=0 followed by a size indicator:
K - Kilobyte
M - Megabyte
G - Gigabyte
Example: 37M = 37 Megabytes
Platforms tested:
Linux, but not fully finished...
2001-12-19 04:12:21 +08:00
|
|
|
case 'x':
|
|
|
|
cl_opts->min_xfer_size = parse_size_directive(opt_arg);
|
|
|
|
break;
|
|
|
|
case 'X':
|
|
|
|
cl_opts->max_xfer_size = parse_size_directive(opt_arg);
|
|
|
|
break;
|
2001-11-07 23:28:33 +08:00
|
|
|
case 'h':
|
|
|
|
case '?':
|
|
|
|
default:
|
2001-12-20 06:10:15 +08:00
|
|
|
usage(progname);
|
|
|
|
free(cl_opts);
|
|
|
|
return NULL;
|
2001-11-07 23:28:33 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2008-07-24 04:41:02 +08:00
|
|
|
|
|
|
|
if (cl_opts->num_bpp == 0){
|
|
|
|
if (cl_opts->dim2d == 0)
|
|
|
|
cl_opts->num_bpp = 256 * ONE_KB;
|
|
|
|
else
|
|
|
|
cl_opts->num_bpp = 8 * ONE_KB;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (cl_opts->max_xfer_size == 0)
|
|
|
|
cl_opts->max_xfer_size = cl_opts->num_bpp;
|
|
|
|
|
|
|
|
if (cl_opts->min_xfer_size == 0)
|
|
|
|
cl_opts->min_xfer_size = (cl_opts->num_bpp)/2;
|
|
|
|
|
|
|
|
if (cl_opts->blk_size == 0)
|
|
|
|
cl_opts->blk_size = (cl_opts->num_bpp)/2;
|
|
|
|
|
|
|
|
|
2002-05-30 04:48:12 +08:00
|
|
|
/* set default if none specified yet */
|
2002-05-30 07:31:12 +08:00
|
|
|
if (!cl_opts->io_types)
|
2008-07-24 04:41:02 +08:00
|
|
|
cl_opts->io_types = PIO_HDF5 | PIO_MPI | PIO_POSIX; /* run all API */
|
2002-05-30 04:48:12 +08:00
|
|
|
|
2003-06-06 05:15:53 +08:00
|
|
|
/* verify parameters sanity. Adjust if needed. */
|
|
|
|
/* cap xfer_size with bytes per process */
|
2008-07-24 04:41:02 +08:00
|
|
|
if (!cl_opts->dim2d) {
|
|
|
|
if (cl_opts->min_xfer_size > cl_opts->num_bpp)
|
|
|
|
cl_opts->min_xfer_size = cl_opts->num_bpp;
|
|
|
|
if (cl_opts->max_xfer_size > cl_opts->num_bpp)
|
|
|
|
cl_opts->max_xfer_size = cl_opts->num_bpp;
|
|
|
|
}
|
2003-06-06 05:15:53 +08:00
|
|
|
if (cl_opts->min_xfer_size > cl_opts->max_xfer_size)
|
2008-07-24 04:41:02 +08:00
|
|
|
cl_opts->min_xfer_size = cl_opts->max_xfer_size;
|
|
|
|
if (cl_opts->blk_size > cl_opts->num_bpp )
|
|
|
|
cl_opts->blk_size = cl_opts->num_bpp;
|
2003-06-13 14:57:34 +08:00
|
|
|
/* check range of number of processes */
|
|
|
|
if (cl_opts->min_num_procs <= 0)
|
2008-07-24 04:41:02 +08:00
|
|
|
cl_opts->min_num_procs = 1;
|
2003-06-13 14:57:34 +08:00
|
|
|
if (cl_opts->max_num_procs <= 0)
|
2008-07-24 04:41:02 +08:00
|
|
|
cl_opts->max_num_procs = 1;
|
2003-06-07 05:45:59 +08:00
|
|
|
if (cl_opts->min_num_procs > cl_opts->max_num_procs)
|
2008-07-24 04:41:02 +08:00
|
|
|
cl_opts->min_num_procs = cl_opts->max_num_procs;
|
2003-06-13 14:57:34 +08:00
|
|
|
/* check iteration */
|
|
|
|
if (cl_opts->num_iters <= 0)
|
2008-07-24 04:41:02 +08:00
|
|
|
cl_opts->num_iters = 1;
|
2003-06-06 05:15:53 +08:00
|
|
|
|
2001-11-07 23:28:33 +08:00
|
|
|
return cl_opts;
|
|
|
|
}
|
2001-11-16 06:46:32 +08:00
|
|
|
|
[svn-r4733]
Purpose:
Feature Changes
Description:
Okay, I needed to add in more parameters so that the user can modify
how things are supposed to work with the PIO programs. Also needed
to change the algorithm a bit to make these work. And needed to add
in timing for the READ option.
Solution:
Added the above things. The parameters took a major rewrite of the
command-line parsing stuff. Here's the usage statement:
usage: pio_perf [OPTIONS]
OPTIONS
-h, --help Print a usage message and exit
-d N, --num-dsets=N Number of datasets per file [default:1]
-f S, --file-size=S Size of a single file [default: 64M]
-F N, --num-files=N Number of files [default: 1]
-H, --hdf5 Run HDF5 performance test
-i, --num-iterations Number of iterations to perform [default: 1]
-m, --mpiio Run MPI/IO performance test
-o F, --output=F Output raw data into file F [default: none]
-P N, --max-num-processes=N Maximum number of processes to use [default: 1]
-p N, --min-num-processes=N Minimum number of processes to use [default: 1]
-r, --raw Run raw (UNIX) performance test
-X S, --max-xfer-size=S Maximum transfer buffer size [default: 1M]
-x S, --min-xfer-size=S Minimum transfer buffer size [default: 1K]
F - is a filename.
N - is an integer >=0.
S - is a size specifier, an integer >=0 followed by a size indicator:
K - Kilobyte
M - Megabyte
G - Gigabyte
Example: 37M = 37 Megabytes
Platforms tested:
Linux, but not fully finished...
2001-12-19 04:12:21 +08:00
|
|
|
/*
|
|
|
|
* Function: parse_size_directive
|
|
|
|
* Purpose: Parse the size directive passed on the commandline. The size
|
|
|
|
* directive is an integer followed by a size indicator:
|
|
|
|
*
|
|
|
|
* K, k - Kilobyte
|
|
|
|
* M, m - Megabyte
|
|
|
|
* G, g - Gigabyte
|
|
|
|
*
|
2002-05-14 03:55:33 +08:00
|
|
|
* Return: The size as a off_t because this is related to file size.
|
|
|
|
* If an unknown size indicator is used, then the program will
|
|
|
|
* exit with EXIT_FAILURE as the return value.
|
[svn-r4733]
Purpose:
Feature Changes
Description:
Okay, I needed to add in more parameters so that the user can modify
how things are supposed to work with the PIO programs. Also needed
to change the algorithm a bit to make these work. And needed to add
in timing for the READ option.
Solution:
Added the above things. The parameters took a major rewrite of the
command-line parsing stuff. Here's the usage statement:
usage: pio_perf [OPTIONS]
OPTIONS
-h, --help Print a usage message and exit
-d N, --num-dsets=N Number of datasets per file [default:1]
-f S, --file-size=S Size of a single file [default: 64M]
-F N, --num-files=N Number of files [default: 1]
-H, --hdf5 Run HDF5 performance test
-i, --num-iterations Number of iterations to perform [default: 1]
-m, --mpiio Run MPI/IO performance test
-o F, --output=F Output raw data into file F [default: none]
-P N, --max-num-processes=N Maximum number of processes to use [default: 1]
-p N, --min-num-processes=N Minimum number of processes to use [default: 1]
-r, --raw Run raw (UNIX) performance test
-X S, --max-xfer-size=S Maximum transfer buffer size [default: 1M]
-x S, --min-xfer-size=S Minimum transfer buffer size [default: 1K]
F - is a filename.
N - is an integer >=0.
S - is a size specifier, an integer >=0 followed by a size indicator:
K - Kilobyte
M - Megabyte
G - Gigabyte
Example: 37M = 37 Megabytes
Platforms tested:
Linux, but not fully finished...
2001-12-19 04:12:21 +08:00
|
|
|
* Programmer: Bill Wendling, 18. December 2001
|
|
|
|
* Modifications:
|
|
|
|
*/
|
2002-05-14 03:55:33 +08:00
|
|
|
static off_t
|
[svn-r4733]
Purpose:
Feature Changes
Description:
Okay, I needed to add in more parameters so that the user can modify
how things are supposed to work with the PIO programs. Also needed
to change the algorithm a bit to make these work. And needed to add
in timing for the READ option.
Solution:
Added the above things. The parameters took a major rewrite of the
command-line parsing stuff. Here's the usage statement:
usage: pio_perf [OPTIONS]
OPTIONS
-h, --help Print a usage message and exit
-d N, --num-dsets=N Number of datasets per file [default:1]
-f S, --file-size=S Size of a single file [default: 64M]
-F N, --num-files=N Number of files [default: 1]
-H, --hdf5 Run HDF5 performance test
-i, --num-iterations Number of iterations to perform [default: 1]
-m, --mpiio Run MPI/IO performance test
-o F, --output=F Output raw data into file F [default: none]
-P N, --max-num-processes=N Maximum number of processes to use [default: 1]
-p N, --min-num-processes=N Minimum number of processes to use [default: 1]
-r, --raw Run raw (UNIX) performance test
-X S, --max-xfer-size=S Maximum transfer buffer size [default: 1M]
-x S, --min-xfer-size=S Minimum transfer buffer size [default: 1K]
F - is a filename.
N - is an integer >=0.
S - is a size specifier, an integer >=0 followed by a size indicator:
K - Kilobyte
M - Megabyte
G - Gigabyte
Example: 37M = 37 Megabytes
Platforms tested:
Linux, but not fully finished...
2001-12-19 04:12:21 +08:00
|
|
|
parse_size_directive(const char *size)
|
|
|
|
{
|
2002-05-14 03:55:33 +08:00
|
|
|
off_t s;
|
[svn-r4733]
Purpose:
Feature Changes
Description:
Okay, I needed to add in more parameters so that the user can modify
how things are supposed to work with the PIO programs. Also needed
to change the algorithm a bit to make these work. And needed to add
in timing for the READ option.
Solution:
Added the above things. The parameters took a major rewrite of the
command-line parsing stuff. Here's the usage statement:
usage: pio_perf [OPTIONS]
OPTIONS
-h, --help Print a usage message and exit
-d N, --num-dsets=N Number of datasets per file [default:1]
-f S, --file-size=S Size of a single file [default: 64M]
-F N, --num-files=N Number of files [default: 1]
-H, --hdf5 Run HDF5 performance test
-i, --num-iterations Number of iterations to perform [default: 1]
-m, --mpiio Run MPI/IO performance test
-o F, --output=F Output raw data into file F [default: none]
-P N, --max-num-processes=N Maximum number of processes to use [default: 1]
-p N, --min-num-processes=N Minimum number of processes to use [default: 1]
-r, --raw Run raw (UNIX) performance test
-X S, --max-xfer-size=S Maximum transfer buffer size [default: 1M]
-x S, --min-xfer-size=S Minimum transfer buffer size [default: 1K]
F - is a filename.
N - is an integer >=0.
S - is a size specifier, an integer >=0 followed by a size indicator:
K - Kilobyte
M - Megabyte
G - Gigabyte
Example: 37M = 37 Megabytes
Platforms tested:
Linux, but not fully finished...
2001-12-19 04:12:21 +08:00
|
|
|
char *endptr;
|
|
|
|
|
|
|
|
s = strtol(size, &endptr, 10);
|
|
|
|
|
|
|
|
if (endptr && *endptr) {
|
|
|
|
while (*endptr != '\0' && (*endptr == ' ' || *endptr == '\t'))
|
|
|
|
++endptr;
|
|
|
|
|
|
|
|
switch (*endptr) {
|
|
|
|
case 'K':
|
|
|
|
case 'k':
|
|
|
|
s *= ONE_KB;
|
|
|
|
break;
|
|
|
|
case 'M':
|
|
|
|
case 'm':
|
|
|
|
s *= ONE_MB;
|
|
|
|
break;
|
|
|
|
case 'G':
|
|
|
|
case 'g':
|
|
|
|
s *= ONE_GB;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
fprintf(stderr, "Illegal size specifier '%c'\n", *endptr);
|
|
|
|
exit(EXIT_FAILURE);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return s;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Function: usage
|
|
|
|
* Purpose: Print a usage message and then exit.
|
|
|
|
* Return: Nothing
|
|
|
|
* Programmer: Bill Wendling, 31. October 2001
|
|
|
|
* Modifications:
|
2005-08-19 22:24:21 +08:00
|
|
|
* Added 2D testing (Christian Chilan, 10. August 2005)
|
[svn-r4733]
Purpose:
Feature Changes
Description:
Okay, I needed to add in more parameters so that the user can modify
how things are supposed to work with the PIO programs. Also needed
to change the algorithm a bit to make these work. And needed to add
in timing for the READ option.
Solution:
Added the above things. The parameters took a major rewrite of the
command-line parsing stuff. Here's the usage statement:
usage: pio_perf [OPTIONS]
OPTIONS
-h, --help Print a usage message and exit
-d N, --num-dsets=N Number of datasets per file [default:1]
-f S, --file-size=S Size of a single file [default: 64M]
-F N, --num-files=N Number of files [default: 1]
-H, --hdf5 Run HDF5 performance test
-i, --num-iterations Number of iterations to perform [default: 1]
-m, --mpiio Run MPI/IO performance test
-o F, --output=F Output raw data into file F [default: none]
-P N, --max-num-processes=N Maximum number of processes to use [default: 1]
-p N, --min-num-processes=N Minimum number of processes to use [default: 1]
-r, --raw Run raw (UNIX) performance test
-X S, --max-xfer-size=S Maximum transfer buffer size [default: 1M]
-x S, --min-xfer-size=S Minimum transfer buffer size [default: 1K]
F - is a filename.
N - is an integer >=0.
S - is a size specifier, an integer >=0 followed by a size indicator:
K - Kilobyte
M - Megabyte
G - Gigabyte
Example: 37M = 37 Megabytes
Platforms tested:
Linux, but not fully finished...
2001-12-19 04:12:21 +08:00
|
|
|
*/
|
|
|
|
static void
|
|
|
|
usage(const char *prog)
|
|
|
|
{
|
2001-12-20 06:10:15 +08:00
|
|
|
int myrank;
|
|
|
|
|
|
|
|
MPI_Comm_rank(pio_comm_g, &myrank);
|
|
|
|
|
|
|
|
if (myrank == 0) {
|
2002-05-28 12:04:18 +08:00
|
|
|
print_version(prog);
|
2002-05-23 07:22:46 +08:00
|
|
|
printf("usage: %s [OPTIONS]\n", prog);
|
|
|
|
printf(" OPTIONS\n");
|
|
|
|
printf(" -h, --help Print a usage message and exit\n");
|
|
|
|
printf(" -a S, --align=S Alignment of objects in HDF5 file [default: 1]\n");
|
|
|
|
printf(" -A AL, --api=AL Which APIs to test [default: all of them]\n");
|
|
|
|
#if 0
|
|
|
|
printf(" -b, --binary The elusive binary option\n");
|
|
|
|
#endif /* 0 */
|
2002-07-03 04:06:22 +08:00
|
|
|
printf(" -B S, --block-size=S Block size within transfer buffer\n");
|
|
|
|
printf(" (see below for description)\n");
|
2008-10-27 05:20:30 +08:00
|
|
|
printf(" [default: half the number of bytes per process\n");
|
|
|
|
printf(" per dataset]\n");
|
|
|
|
printf(" -c, --chunk Create HDF5 datasets using chunked storage\n");
|
|
|
|
printf(" [default: contiguous storage]\n");
|
2002-07-03 04:06:22 +08:00
|
|
|
printf(" -C, --collective Use collective I/O for MPI and HDF5 APIs\n");
|
2008-10-27 05:20:30 +08:00
|
|
|
printf(" [default: independent I/O)\n");
|
|
|
|
printf(" -d N, --num-dsets=N Number of datasets per file [default: 1]\n");
|
2002-05-23 07:22:46 +08:00
|
|
|
printf(" -D DL, --debug=DL Indicate the debugging level\n");
|
|
|
|
printf(" [default: no debugging]\n");
|
2002-07-03 04:06:22 +08:00
|
|
|
printf(" -e S, --num-bytes=S Number of bytes per process per dataset\n");
|
2008-10-27 05:20:30 +08:00
|
|
|
printf(" (see below for description)\n");
|
2008-07-24 04:41:02 +08:00
|
|
|
printf(" [default: 256K for 1D, 8K for 2D]\n");
|
2002-05-23 07:22:46 +08:00
|
|
|
printf(" -F N, --num-files=N Number of files [default: 1]\n");
|
2008-10-27 05:20:30 +08:00
|
|
|
printf(" -g, --geometry Use 2D geometry [default: 1D geometry]\n");
|
2003-06-13 14:57:34 +08:00
|
|
|
printf(" -i N, --num-iterations=N Number of iterations to perform [default: 1]\n");
|
2008-10-27 05:20:30 +08:00
|
|
|
printf(" -I, --interleaved Interleaved access pattern\n");
|
|
|
|
printf(" (see below for example)\n");
|
|
|
|
printf(" [default: Contiguous access pattern]\n");
|
2002-07-15 23:21:05 +08:00
|
|
|
printf(" -m, --mpi-posix Use MPI-posix driver for HDF5 I/O\n");
|
|
|
|
printf(" [default: use MPI-I/O driver]\n");
|
2002-05-23 07:22:46 +08:00
|
|
|
printf(" -o F, --output=F Output raw data into file F [default: none]\n");
|
2002-06-27 21:11:31 +08:00
|
|
|
printf(" -p N, --min-num-processes=N Minimum number of processes to use [default: 1]\n");
|
2002-05-23 07:22:46 +08:00
|
|
|
printf(" -P N, --max-num-processes=N Maximum number of processes to use\n");
|
|
|
|
printf(" [default: all MPI_COMM_WORLD processes ]\n");
|
|
|
|
printf(" -T S, --threshold=S Threshold for alignment of objects in HDF5 file\n");
|
|
|
|
printf(" [default: 1]\n");
|
2002-06-05 05:31:35 +08:00
|
|
|
printf(" -w, --write-only Perform write tests not the read tests\n");
|
2008-07-24 04:41:02 +08:00
|
|
|
printf(" -x S, --min-xfer-size=S Minimum transfer buffer size\n");
|
2008-10-27 05:20:30 +08:00
|
|
|
printf(" (see below for description)\n");
|
|
|
|
printf(" [default: half the number of bytes per process\n");
|
|
|
|
printf(" per dataset]\n");
|
2008-07-24 04:41:02 +08:00
|
|
|
printf(" -X S, --max-xfer-size=S Maximum transfer buffer size\n");
|
2008-10-27 05:20:30 +08:00
|
|
|
printf(" [default: the number of bytes per process per\n");
|
|
|
|
printf(" dataset]\n");
|
2002-05-23 07:22:46 +08:00
|
|
|
printf("\n");
|
|
|
|
printf(" F - is a filename.\n");
|
|
|
|
printf(" N - is an integer >=0.\n");
|
|
|
|
printf(" S - is a size specifier, an integer >=0 followed by a size indicator:\n");
|
2002-05-28 12:04:18 +08:00
|
|
|
printf(" K - Kilobyte (%d)\n", ONE_KB);
|
|
|
|
printf(" M - Megabyte (%d)\n", ONE_MB);
|
|
|
|
printf(" G - Gigabyte (%d)\n", ONE_GB);
|
2002-05-23 07:22:46 +08:00
|
|
|
printf("\n");
|
2002-07-03 04:06:22 +08:00
|
|
|
printf(" Example: '37M' is 37 megabytes or %d bytes\n", 37*ONE_MB);
|
2002-05-23 07:22:46 +08:00
|
|
|
printf("\n");
|
|
|
|
printf(" AL - is an API list. Valid values are:\n");
|
|
|
|
printf(" phdf5 - Parallel HDF5\n");
|
|
|
|
printf(" mpiio - MPI-I/O\n");
|
|
|
|
printf(" posix - POSIX\n");
|
|
|
|
printf("\n");
|
|
|
|
printf(" Example: --api=mpiio,phdf5\n");
|
|
|
|
printf("\n");
|
2008-10-27 05:20:30 +08:00
|
|
|
printf(" Dataset size:\n");
|
|
|
|
printf(" Depending on the selected geometry, each test dataset is either a linear\n");
|
|
|
|
printf(" array of size bytes-per-process * num-processes, or a square array of size\n");
|
|
|
|
printf(" (bytes-per-process * num-processes) x (bytes-per-process * num-processes).\n");
|
|
|
|
printf("\n");
|
2002-07-03 04:06:22 +08:00
|
|
|
printf(" Block size vs. Transfer buffer size:\n");
|
2008-10-27 05:20:30 +08:00
|
|
|
printf(" buffer-size controls the size of the memory buffer, which is broken into\n");
|
|
|
|
printf(" blocks and written to the file. Depending on the selected geometry, each\n");
|
|
|
|
printf(" block can be a linear array of size block-size or a square array of size\n");
|
|
|
|
printf(" block-size x block-size. The arrangement in which blocks are written is\n");
|
|
|
|
printf(" determined by the access pattern.\n");
|
2002-07-03 04:06:22 +08:00
|
|
|
printf("\n");
|
2008-10-27 05:20:30 +08:00
|
|
|
printf(" In 1D geometry, the transfer buffer is a linear array of size buffer-size.\n");
|
|
|
|
printf(" In 2D geometry, it is a rectangular array of size block-size x buffer-size\n");
|
|
|
|
printf(" or buffer-size x block-size if interleaved pattern is selected.\n");
|
2002-07-03 04:06:22 +08:00
|
|
|
printf("\n");
|
2008-10-27 05:20:30 +08:00
|
|
|
printf(" Interleaved and Contiguous patterns in 1D geometry:\n");
|
|
|
|
printf(" When contiguous access pattern is chosen, the dataset is evenly divided\n");
|
|
|
|
printf(" into num-processes regions and each process writes data to its own region.\n");
|
2002-07-03 04:06:22 +08:00
|
|
|
printf(" When interleaved blocks are written to a dataset, space for the first\n");
|
|
|
|
printf(" block of the first process is allocated in the dataset, then space is\n");
|
|
|
|
printf(" allocated for the first block of the second process, etc. until space is\n");
|
|
|
|
printf(" allocated for the first block of each process, then space is allocated for\n");
|
|
|
|
printf(" the second block of the first process, the second block of the second\n");
|
|
|
|
printf(" process, etc.\n");
|
|
|
|
printf("\n");
|
2008-10-27 05:20:30 +08:00
|
|
|
printf(" For example, with a 3 process run, 512KB bytes-per-process, 256KB transfer\n");
|
|
|
|
printf(" buffer size, and 64KB block size, each process must issue 2 transfer\n");
|
|
|
|
printf(" requests to complete access to the dataset.\n");
|
|
|
|
printf(" Contiguous blocks of the first transfer request are written like so:\n");
|
|
|
|
printf(" 1111----2222----3333----\n");
|
|
|
|
printf(" Interleaved blocks of the first transfer request are written like so:\n");
|
|
|
|
printf(" 123123123123------------\n");
|
|
|
|
printf(" The actual number of I/O operations involved in a transfer request\n");
|
|
|
|
printf(" depends on the access pattern and communication mode.\n");
|
|
|
|
printf(" When using independent I/O with interleaved pattern, each process\n");
|
|
|
|
printf(" performs 4 small non-contiguous I/O operations per transfer request.\n");
|
|
|
|
printf(" If collective I/O is turned on, the combined content of the buffers of\n");
|
|
|
|
printf(" the 3 processes will be written using one collective I/O operation\n");
|
|
|
|
printf(" per transfer request.\n");
|
|
|
|
printf("\n");
|
|
|
|
printf(" For information about access patterns in 2D geometry, please refer to the\n");
|
|
|
|
printf(" HDF5 Reference Manual.\n");
|
2002-06-27 21:11:31 +08:00
|
|
|
printf("\n");
|
2002-05-23 07:22:46 +08:00
|
|
|
printf(" DL - is a list of debugging flags. Valid values are:\n");
|
|
|
|
printf(" 1 - Minimal\n");
|
|
|
|
printf(" 2 - Not quite everything\n");
|
|
|
|
printf(" 3 - Everything\n");
|
2002-07-03 04:06:22 +08:00
|
|
|
printf(" 4 - The kitchen sink\n");
|
2002-05-23 07:22:46 +08:00
|
|
|
printf(" r - Raw data I/O throughput information\n");
|
|
|
|
printf(" t - Times as well as throughputs\n");
|
2002-06-06 12:58:29 +08:00
|
|
|
printf(" v - Verify data correctness\n");
|
2002-05-23 07:22:46 +08:00
|
|
|
printf("\n");
|
|
|
|
printf(" Example: --debug=2,r,t\n");
|
|
|
|
printf("\n");
|
2002-07-03 04:06:22 +08:00
|
|
|
printf(" Environment variables:\n");
|
|
|
|
printf(" HDF5_NOCLEANUP Do not remove data files if set [default remove]\n");
|
|
|
|
printf(" HDF5_MPI_INFO MPI INFO object key=value separated by ;\n");
|
|
|
|
printf(" HDF5_PARAPREFIX Paralllel data files prefix\n");
|
2001-12-20 06:10:15 +08:00
|
|
|
fflush(stdout);
|
|
|
|
}
|
[svn-r4733]
Purpose:
Feature Changes
Description:
Okay, I needed to add in more parameters so that the user can modify
how things are supposed to work with the PIO programs. Also needed
to change the algorithm a bit to make these work. And needed to add
in timing for the READ option.
Solution:
Added the above things. The parameters took a major rewrite of the
command-line parsing stuff. Here's the usage statement:
usage: pio_perf [OPTIONS]
OPTIONS
-h, --help Print a usage message and exit
-d N, --num-dsets=N Number of datasets per file [default:1]
-f S, --file-size=S Size of a single file [default: 64M]
-F N, --num-files=N Number of files [default: 1]
-H, --hdf5 Run HDF5 performance test
-i, --num-iterations Number of iterations to perform [default: 1]
-m, --mpiio Run MPI/IO performance test
-o F, --output=F Output raw data into file F [default: none]
-P N, --max-num-processes=N Maximum number of processes to use [default: 1]
-p N, --min-num-processes=N Minimum number of processes to use [default: 1]
-r, --raw Run raw (UNIX) performance test
-X S, --max-xfer-size=S Maximum transfer buffer size [default: 1M]
-x S, --min-xfer-size=S Minimum transfer buffer size [default: 1K]
F - is a filename.
N - is an integer >=0.
S - is a size specifier, an integer >=0 followed by a size indicator:
K - Kilobyte
M - Megabyte
G - Gigabyte
Example: 37M = 37 Megabytes
Platforms tested:
Linux, but not fully finished...
2001-12-19 04:12:21 +08:00
|
|
|
}
|
|
|
|
|
2001-11-16 06:46:32 +08:00
|
|
|
#else /* H5_HAVE_PARALLEL */
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Function: main
|
|
|
|
* Purpose: Dummy main() function for if HDF5 was configured without
|
|
|
|
* parallel stuff.
|
|
|
|
* Return: EXIT_SUCCESS
|
|
|
|
* Programmer: Bill Wendling, 14. November 2001
|
|
|
|
* Modifications:
|
|
|
|
*/
|
|
|
|
int
|
|
|
|
main(void)
|
|
|
|
{
|
|
|
|
printf("No parallel IO performance because parallel is not configured\n");
|
|
|
|
return EXIT_SUCCESS;
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* !H5_HAVE_PARALLEL */
|