diff options
author | Mohamad Chaarawi <chaarawi@hdfgroup.org> | 2014-03-05 18:47:08 (GMT) |
---|---|---|
committer | Mohamad Chaarawi <chaarawi@hdfgroup.org> | 2014-03-05 18:47:08 (GMT) |
commit | 18eb0c50030cf78bec3ad82c663a277cc2fad711 (patch) | |
tree | cf88963f8b995ece31b5aa978f80e36923670f08 | |
parent | 57e225053cfceeb006424bb02aab2bed3894b3a9 (diff) | |
download | hdf5-18eb0c50030cf78bec3ad82c663a277cc2fad711.zip hdf5-18eb0c50030cf78bec3ad82c663a277cc2fad711.tar.gz hdf5-18eb0c50030cf78bec3ad82c663a277cc2fad711.tar.bz2 |
[svn-r24762] update prefetch evict examples with datasets.
-rw-r--r-- | examples/h5ff_client_attr.c | 2 | ||||
-rw-r--r-- | examples/h5ff_client_evict_deltas.c | 9 | ||||
-rw-r--r-- | examples/h5ff_client_prefetch.c | 3 |
3 files changed, 7 insertions, 7 deletions
diff --git a/examples/h5ff_client_attr.c b/examples/h5ff_client_attr.c index e812e8c..b9c4857 100644 --- a/examples/h5ff_client_attr.c +++ b/examples/h5ff_client_attr.c @@ -287,7 +287,7 @@ int main(int argc, char **argv) { MPI_Barrier(MPI_COMM_WORLD); if(my_rank == 0) { - /* release container version 1. This is async. */ + /* release container version 2. This is async. */ ret = H5RCrelease(rid3, e_stack); assert(0 == ret); } diff --git a/examples/h5ff_client_evict_deltas.c b/examples/h5ff_client_evict_deltas.c index 717b2d4..128a9b4 100644 --- a/examples/h5ff_client_evict_deltas.c +++ b/examples/h5ff_client_evict_deltas.c @@ -199,9 +199,6 @@ int main(int argc, char **argv) { if(0 == my_rank) {
ret = H5RCpersist(rid2, H5_EVENT_STACK_NULL);
assert(ret == 0);
-
- ret = H5Tevict_ff(dtid, 1, H5P_DEFAULT, H5_EVENT_STACK_NULL);
- assert(0 == ret);
}
MPI_Barrier(MPI_COMM_WORLD);
@@ -214,9 +211,13 @@ int main(int argc, char **argv) { MPI_Barrier(MPI_COMM_WORLD);
- if(0 == my_rank) {
+ if((my_size > 1 && 1 == my_rank) ||
+ (my_size == 1 && 0 == my_rank)) {
ret = H5Tevict_ff(dtid, 2, H5P_DEFAULT, H5_EVENT_STACK_NULL);
assert(0 == ret);
+
+ ret = H5Devict_ff(did, 2, H5P_DEFAULT, H5_EVENT_STACK_NULL);
+ assert(0 == ret);
}
MPI_Barrier(MPI_COMM_WORLD);
diff --git a/examples/h5ff_client_prefetch.c b/examples/h5ff_client_prefetch.c index 9fb2dd3..02bff6a 100644 --- a/examples/h5ff_client_prefetch.c +++ b/examples/h5ff_client_prefetch.c @@ -220,7 +220,6 @@ int main(int argc, char **argv) { if((my_size > 1 && 1 == my_rank) ||
(my_size == 1 && 0 == my_rank)) {
- //if(0 == my_rank) {
hid_t mapl_id, tapl_id, dapl_id;
hrpl_t map_replica, dt_replica, dset_replica;
@@ -261,7 +260,6 @@ int main(int argc, char **argv) { assert(0 == ret);
H5Pclose(tapl_id);
-#if 0
dapl_id = H5Pcreate (H5P_DATASET_ACCESS);
ret = H5Pset_evict_replica(dapl_id, dset_replica);
assert(0 == ret);
@@ -269,6 +267,7 @@ int main(int argc, char **argv) { assert(0 == ret);
H5Pclose(dapl_id);
+#if 0
mapl_id = H5Pcreate (H5P_MAP_ACCESS);
ret = H5Pset_evict_replica(mapl_id, map_replica);
assert(0 == ret);
|