summaryrefslogtreecommitdiffstats
path: root/perform/pio_engine.c
diff options
context:
space:
mode:
authorBill Wendling <wendling@ncsa.uiuc.edu>2002-01-11 19:44:51 (GMT)
committerBill Wendling <wendling@ncsa.uiuc.edu>2002-01-11 19:44:51 (GMT)
commitaa8897734fe3c7c2e8b64820577162eaa4bce4fe (patch)
tree9ee02ef0a798a95bcf0887a3f56edad8cd76d86f /perform/pio_engine.c
parentaabfa5c03f1637afce3b04d0c9cdb30360c30a18 (diff)
downloadhdf5-aa8897734fe3c7c2e8b64820577162eaa4bce4fe.zip
hdf5-aa8897734fe3c7c2e8b64820577162eaa4bce4fe.tar.gz
hdf5-aa8897734fe3c7c2e8b64820577162eaa4bce4fe.tar.bz2
[svn-r4816]
Purpose: Feature Fix Description: Added timer from open to close for write. Changed reporting of time for write and read to only measure the actual read/write instead of the open/close as well... Platforms tested: Linux(pp)
Diffstat (limited to 'perform/pio_engine.c')
-rw-r--r--perform/pio_engine.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/perform/pio_engine.c b/perform/pio_engine.c
index e627e21..d1ea6d3 100644
--- a/perform/pio_engine.c
+++ b/perform/pio_engine.c
@@ -252,8 +252,6 @@ buf_size=MIN(1024*1024, buf_size);
GOTOERROR(FAIL);
}
- set_time(res.timers, HDF5_FILE_OPENCLOSE, START);
-
for (nf = 1; nf <= nfiles; nf++) {
/*
* Write performance measurement
@@ -261,6 +259,8 @@ buf_size=MIN(1024*1024, buf_size);
/* Open file for write */
char base_name[256];
+ MPI_Barrier(pio_comm_g);
+
sprintf(base_name, "#pio_tmp_%u", nf);
pio_create_filename(iot, base_name, fname, sizeof(fname));
#if AKCDEBUG
@@ -286,6 +286,8 @@ fprintf(stderr, "filename=%s\n", fname);
VRFY((hrc == SUCCESS), "do_fclose failed");
+ MPI_Barrier(pio_comm_g);
+
/*
* Read performance measurement
*/
@@ -309,11 +311,11 @@ fprintf(stderr, "filename=%s\n", fname);
VRFY((hrc == SUCCESS), "do_fclose failed");
+ MPI_Barrier(pio_comm_g);
+
do_cleanupfile(iot, fname);
}
- set_time(res.timers, HDF5_FILE_OPENCLOSE, STOP);
-
done:
/* clean up */
/* release HDF5 objects */