summaryrefslogtreecommitdiffstats
path: root/testpar/testphdf5.c
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.c
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.c')
-rw-r--r--testpar/testphdf5.c28
1 files changed, 27 insertions, 1 deletions
diff --git a/testpar/testphdf5.c b/testpar/testphdf5.c
index a65ef6d..9b56b24 100644
--- a/testpar/testphdf5.c
+++ b/testpar/testphdf5.c
@@ -427,9 +427,35 @@ int main(int argc, char **argv)
coll_chunk2,NULL, "noncontiguous collective chunk io",PARATESTFILE);
AddTest("cchunk3",
coll_chunk3,NULL, "multi-chunk collective chunk io",PARATESTFILE);
- AddTest("cchunk4",
+ AddTest("cchunk4",
coll_chunk4,NULL, "collective chunk io with partial non-selection ",PARATESTFILE);
+ if((mpi_size < 3)&& MAINPROCESS ) {
+ printf("Collective chunk IO optimization APIs ");
+ printf("needs at least 3 processes to participate\n");
+ printf("Collective chunk IO API tests will be skipped \n");
+ }
+ AddTest((mpi_size <3)? "-cchunk5":"cchunk5" ,
+ coll_chunk5,NULL,
+ "linked chunk collective IO without optimization",PARATESTFILE);
+ AddTest((mpi_size < 3)? "-cchunk6" : "cchunk6",
+ coll_chunk6,NULL,
+ "multi-chunk collective IO without optimization",PARATESTFILE);
+ AddTest((mpi_size < 3)? "-cchunk7" : "cchunk7",
+ coll_chunk7,NULL,
+ "linked chunk collective IO with optimization",PARATESTFILE);
+ AddTest((mpi_size < 3)? "-cchunk8" : "cchunk8",
+ coll_chunk8,NULL,
+ "linked chunk collective IO transferring to multi-chunk",PARATESTFILE);
+ AddTest((mpi_size < 3)? "-cchunk9" : "cchunk9",
+ coll_chunk9,NULL,
+ "multiple chunk collective IO with optimization",PARATESTFILE);
+ AddTest((mpi_size < 3)? "-cchunk10" : "cchunk10",
+ coll_chunk10,NULL,
+ "multiple chunk collective IO transferring to independent IO",PARATESTFILE);
+
+
+
/* irregular collective IO tests*/
AddTest("ccontw",
coll_irregular_cont_write,NULL,