summaryrefslogtreecommitdiffstats
path: root/testpar/testphdf5.h
diff options
context:
space:
mode:
authorMuQun Yang <ymuqun@hdfgroup.org>2006-03-29 14:35:26 (GMT)
committerMuQun Yang <ymuqun@hdfgroup.org>2006-03-29 14:35:26 (GMT)
commit117dbae7f875ac136aabcbea4aff34b23959d646 (patch)
tree3dc3aecb766c815c4f7c7b3b6ed48ab21a666dbd /testpar/testphdf5.h
parentcf67d9ff843dc7193b4e07cce7d19861d3a141aa (diff)
downloadhdf5-117dbae7f875ac136aabcbea4aff34b23959d646.zip
hdf5-117dbae7f875ac136aabcbea4aff34b23959d646.tar.gz
hdf5-117dbae7f875ac136aabcbea4aff34b23959d646.tar.bz2
[svn-r12174] Purpose:
Adding parallel tests for optional collective chunk APIs Description: Three new APIs "H5Pset_dxpl_mpio_chunk_opt_ratio H5Pset_dxpl_mpio_chunk_opt_num H5Pset_dxpl_mpio_chunk_opt" for optional optimization choices from users have been added to the libraries. This check-in adds six tests to verify the funcationality and correctedness of these APIs. These tests need to be verified with 3 or more processors and with MPI-IO driver only. Solution: Using H5Pinsert, H5Pget, H5Pset to verify that the library indeed goes into the branch we hope for. Using H5_HAVE_INSTRUMENT macro to isolate these changes so that it won't affect or be misused by the application. Platforms tested: h5committest(shanti still refused to be connected) Parallel tests on heping somehow are skipped. Manually testing at heping. Have checked 1,2,3,4,5 processes. Misc. update:
Diffstat (limited to 'testpar/testphdf5.h')
-rw-r--r--testpar/testphdf5.h25
1 files changed, 24 insertions, 1 deletions
diff --git a/testpar/testphdf5.h b/testpar/testphdf5.h
index 7c47e0a..d74d492 100644
--- a/testpar/testphdf5.h
+++ b/testpar/testphdf5.h
@@ -19,6 +19,10 @@
#include "testpar.h"
+enum H5TEST_COLL_CHUNK_API {API_NONE=0,API_LINK_HARD,
+ API_MULTI_HARD,API_LINK_TRUE,API_LINK_FALSE,
+ API_MULTI_COLL,API_MULTI_IND};
+
#ifndef FALSE
#define FALSE 0
#endif
@@ -52,12 +56,25 @@
/*Constants for collective chunk definitions */
#define SPACE_DIM1 24
-#define SPACE_DIM2 3
+#define SPACE_DIM2 4
#define BYROW_CONT 1
#define BYROW_DISCONT 2
#define BYROW_SELECTNONE 3
#define BYROW_SELECTUNBALANCE 4
#define BYROW_SELECTINCHUNK 5
+
+#define DIMO_NUM_CHUNK 4
+#define DIM1_NUM_CHUNK 2
+#define LINK_TRUE_NUM_CHUNK 2
+#define LINK_FALSE_NUM_CHUNK 6
+#define MULTI_TRUE_PERCENT 50
+#define LINK_TRUE_CHUNK_NAME "h5_link_chunk_true"
+#define LINK_FALSE_CHUNK_NAME "h5_link_chunk_false"
+#define LINK_HARD_CHUNK_NAME "h5_link_chunk_hard"
+#define MULTI_HARD_CHUNK_NAME "h5_multi_chunk_hard"
+#define MULTI_COLL_CHUNK_NAME "h5_multi_chunk_coll"
+#define MULTI_INDP_CHUNK_NAME "h5_multi_chunk_indp"
+
#define DSET_COLLECTIVE_CHUNK_NAME "coll_chunk_name"
@@ -199,6 +216,12 @@ void coll_chunk1(void);
void coll_chunk2(void);
void coll_chunk3(void);
void coll_chunk4(void);
+void coll_chunk5(void);
+void coll_chunk6(void);
+void coll_chunk7(void);
+void coll_chunk8(void);
+void coll_chunk9(void);
+void coll_chunk10(void);
void coll_irregular_cont_read(void);
void coll_irregular_cont_write(void);
void coll_irregular_simple_chunk_read(void);