diff options
author | Robert Kim Yates <rkyates@llnl.gov> | 1998-12-07 23:36:04 (GMT) |
---|---|---|
committer | Robert Kim Yates <rkyates@llnl.gov> | 1998-12-07 23:36:04 (GMT) |
commit | d0b9e6dd0a5cb12bae85a8b9d368bcb4c4e6d8ae (patch) | |
tree | 90d4edabe4d4adfdc8856504b58e90b5dd29f58e /src | |
parent | 5ba9869b4984935f3ee7eddc1337859ef50aa61e (diff) | |
download | hdf5-d0b9e6dd0a5cb12bae85a8b9d368bcb4c4e6d8ae.zip hdf5-d0b9e6dd0a5cb12bae85a8b9d368bcb4c4e6d8ae.tar.gz hdf5-d0b9e6dd0a5cb12bae85a8b9d368bcb4c4e6d8ae.tar.bz2 |
[svn-r962] Added #ifdef HAVE_PARALLEL to interprocess coordination in H5F_istore_allocate.
Diffstat (limited to 'src')
-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 |