summaryrefslogtreecommitdiffstats
path: root/examples/h5ff_client_prefetch.c
diff options
context:
space:
mode:
authorMohamad Chaarawi <chaarawi@hdfgroup.org>2014-05-15 14:50:35 (GMT)
committerMohamad Chaarawi <chaarawi@hdfgroup.org>2014-05-15 14:50:35 (GMT)
commitaf63f420e6cd787de2df62ca680ff47227f47746 (patch)
treea339b7314966b961633ab6e5a72ff0ca363fddc6 /examples/h5ff_client_prefetch.c
parent148aa1a57144d5102a540d3740d543b942f2dc11 (diff)
downloadhdf5-af63f420e6cd787de2df62ca680ff47227f47746.zip
hdf5-af63f420e6cd787de2df62ca680ff47227f47746.tar.gz
hdf5-af63f420e6cd787de2df62ca680ff47227f47746.tar.bz2
[svn-r25195] add needed barrier in prefetch test.
Diffstat (limited to 'examples/h5ff_client_prefetch.c')
-rw-r--r--examples/h5ff_client_prefetch.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/h5ff_client_prefetch.c b/examples/h5ff_client_prefetch.c
index 3a6c0bc..39d2b02 100644
--- a/examples/h5ff_client_prefetch.c
+++ b/examples/h5ff_client_prefetch.c
@@ -100,6 +100,9 @@ static void prefetch (int local_ion, int sub_obj, hid_t rcxt)
}
H5Pclose(dxpl_id);
+ /* wait for all reads to complete before evicting */
+ MPI_Barrier(MPI_COMM_WORLD);
+
if(0 == my_rank) {
/* evict Replicas */
dxpl_id = H5Pcreate (H5P_DATASET_XFER);