diff options
-rw-r--r-- | src/H5Distore.c | 4 | ||||
-rw-r--r-- | src/H5Fistore.c | 4 |
2 files changed, 8 insertions, 0 deletions
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 |