From d0b9e6dd0a5cb12bae85a8b9d368bcb4c4e6d8ae Mon Sep 17 00:00:00 2001 From: Robert Kim Yates Date: Mon, 7 Dec 1998 18:36:04 -0500 Subject: [svn-r962] Added #ifdef HAVE_PARALLEL to interprocess coordination in H5F_istore_allocate. --- src/H5Distore.c | 4 ++++ src/H5Fistore.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/H5Distore.c b/src/H5Distore.c index 4d2d0dd..4a6f7e5 100644 --- a/src/H5Distore.c +++ b/src/H5Distore.c @@ -2123,6 +2123,7 @@ H5F_istore_allocate (H5F_t *f, const H5O_layout_t *layout, * chunk. */ +#ifdef HAVE_PARALLEL /* rky 981207 Serialize access to this critical region. */ if (SUCCEED!= H5PC_Wait_for_left_neighbor(f->shared->access_parms->u.mpio.comm)) @@ -2130,6 +2131,7 @@ H5F_istore_allocate (H5F_t *f, const H5O_layout_t *layout, HRETURN_ERROR (H5E_IO, H5E_WRITEERROR, FAIL, "unable to lock the data chunk"); } +#endif if (NULL==(chunk=H5F_istore_lock (f, layout, split_ratios, pline, fill, chunk_offset, FALSE, &idx_hint))) { @@ -2142,12 +2144,14 @@ H5F_istore_allocate (H5F_t *f, const H5O_layout_t *layout, HRETURN_ERROR (H5E_IO, H5E_WRITEERROR, FAIL, "uanble to unlock raw data chunk"); } +#ifdef HAVE_PARALLEL if (SUCCEED!= H5PC_Signal_right_neighbor(f->shared->access_parms->u.mpio.comm)) { HRETURN_ERROR (H5E_IO, H5E_WRITEERROR, FAIL, "unable to unlock the data chunk"); } +#endif #ifdef NO } else { #ifdef AKC diff --git a/src/H5Fistore.c b/src/H5Fistore.c index 4d2d0dd..4a6f7e5 100644 --- a/src/H5Fistore.c +++ b/src/H5Fistore.c @@ -2123,6 +2123,7 @@ H5F_istore_allocate (H5F_t *f, const H5O_layout_t *layout, * chunk. */ +#ifdef HAVE_PARALLEL /* rky 981207 Serialize access to this critical region. */ if (SUCCEED!= H5PC_Wait_for_left_neighbor(f->shared->access_parms->u.mpio.comm)) @@ -2130,6 +2131,7 @@ H5F_istore_allocate (H5F_t *f, const H5O_layout_t *layout, HRETURN_ERROR (H5E_IO, H5E_WRITEERROR, FAIL, "unable to lock the data chunk"); } +#endif if (NULL==(chunk=H5F_istore_lock (f, layout, split_ratios, pline, fill, chunk_offset, FALSE, &idx_hint))) { @@ -2142,12 +2144,14 @@ H5F_istore_allocate (H5F_t *f, const H5O_layout_t *layout, HRETURN_ERROR (H5E_IO, H5E_WRITEERROR, FAIL, "uanble to unlock raw data chunk"); } +#ifdef HAVE_PARALLEL if (SUCCEED!= H5PC_Signal_right_neighbor(f->shared->access_parms->u.mpio.comm)) { HRETURN_ERROR (H5E_IO, H5E_WRITEERROR, FAIL, "unable to unlock the data chunk"); } +#endif #ifdef NO } else { #ifdef AKC -- cgit v0.12