diff options
Diffstat (limited to 'perform/pio_engine.c')
-rw-r--r-- | perform/pio_engine.c | 10 |
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 */ |