summaryrefslogtreecommitdiffstats
path: root/src/H5F.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2002-05-13 20:21:59 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2002-05-13 20:21:59 (GMT)
commitc5a9d502a3e9a1ac3fdb56d946b3b466b32bad4b (patch)
tree35044db27d80ffa8d102e224e80d47696b6ec545 /src/H5F.c
parentd07e0dd9a3d98981ba49c1a39998faf7cb522075 (diff)
downloadhdf5-c5a9d502a3e9a1ac3fdb56d946b3b466b32bad4b.zip
hdf5-c5a9d502a3e9a1ac3fdb56d946b3b466b32bad4b.tar.gz
hdf5-c5a9d502a3e9a1ac3fdb56d946b3b466b32bad4b.tar.bz2
[svn-r5408] Purpose:
Performance enhancement Description: Doing an MPI_File_sync() just before a file is closed causing a large performance loss. Solution: Add flag to MPI file driver to avoid performance the MPI_File_sync() when the flag is set before a call to H5F_flush(). Platforms tested: IRIX64 6.5 (modi4)
Diffstat (limited to 'src/H5F.c')
-rw-r--r--src/H5F.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/H5F.c b/src/H5F.c
index 470f993..4021c22 100644
--- a/src/H5F.c
+++ b/src/H5F.c
@@ -2622,6 +2622,12 @@ H5F_close(H5F_t *f)
H5AC_debug(f);
H5F_istore_stats(f, FALSE);
+#ifdef H5_HAVE_PARALLEL
+ if(IS_H5FD_MPIO(f)) {
+ if (SUCCEED!= H5FD_mpio_closing(f->shared->lf))
+ HRETURN_ERROR (H5E_IO, H5E_CANTFLUSH, FAIL, "unable to set 'closing' flag");
+ } /* end if */
+#endif /* H5_HAVE_PARALLEL */
/* Flush and destroy all caches */
if (H5F_flush(f, H5F_SCOPE_LOCAL, TRUE, FALSE)<0)
HGOTO_ERROR(H5E_CACHE, H5E_CANTFLUSH, FAIL, "unable to flush cache");