mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-03-13 16:47:58 +08:00
[svn-r962] Added #ifdef HAVE_PARALLEL to interprocess coordination in H5F_istore_allocate.
This commit is contained in:
parent
5ba9869b49
commit
d0b9e6dd0a
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user