summaryrefslogtreecommitdiffstats
path: root/testpar/testphdf5.c
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2000-10-20 06:19:21 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2000-10-20 06:19:21 (GMT)
commitb3e4cd6e974e9a9debe24bd248bbe599bfd6c230 (patch)
treeac06eff6212bd09e801c53f023ef2a4c49f45fa1 /testpar/testphdf5.c
parent114ac60d1b210884bc96c4189ba4641f7844ef8c (diff)
downloadhdf5-b3e4cd6e974e9a9debe24bd248bbe599bfd6c230.zip
hdf5-b3e4cd6e974e9a9debe24bd248bbe599bfd6c230.tar.gz
hdf5-b3e4cd6e974e9a9debe24bd248bbe599bfd6c230.tar.bz2
[svn-r2710] Purpose:
Features, kind of. Description: Separated the MPI features test into its own independent program so that it can be tested on its own without too much HDF5 stuff involved. Added automatic removal of temporary test files after the tests completed. Reduced the size of the dataset dimensions to avoid tripping the SGI MPI problems of running out of internal mpi type entries. Platforms tested: O2K -64
Diffstat (limited to 'testpar/testphdf5.c')
-rw-r--r--testpar/testphdf5.c27
1 files changed, 11 insertions, 16 deletions
diff --git a/testpar/testphdf5.c b/testpar/testphdf5.c
index 22907f8..77f2653 100644
--- a/testpar/testphdf5.c
+++ b/testpar/testphdf5.c
@@ -29,6 +29,7 @@ const char *FILENAME[5]={
"ParaMdset",
NULL};
char filenames[5][200];
+hid_t fapl; /* file access property list */
@@ -254,27 +255,19 @@ parse_options(int argc, char **argv)
/* compose the test filenames */
{
int i, n;
- hid_t plist;
- plist = H5Pcreate (H5P_FILE_ACCESS);
- H5Pset_fapl_mpio(plist, MPI_COMM_WORLD, MPI_INFO_NULL);
n = sizeof(FILENAME)/sizeof(FILENAME[0]) - 1; /* exclude the NULL */
for (i=0; i < n; i++)
- if (h5_fixname(FILENAME[i],plist,filenames[i],sizeof(filenames[i]))
+ if (h5_fixname(FILENAME[i],fapl,filenames[i],sizeof(filenames[i]))
== NULL){
printf("h5_fixname failed\n");
nerrors++;
- H5Pclose(plist);
return(1);
}
- H5Pclose(plist);
- if (verbose){
- int i;
- printf("Test filenames are:\n");
- for (i=0; i < n; i++)
- printf(" %s\n", filenames[i]);
- }
+ printf("Test filenames are:\n");
+ for (i=0; i < n; i++)
+ printf(" %s\n", filenames[i]);
}
return(0);
@@ -294,6 +287,8 @@ main(int argc, char **argv)
printf("PHDF5 TESTS START\n");
printf("===================================\n");
}
+ fapl = H5Pcreate (H5P_FILE_ACCESS);
+ H5Pset_fapl_mpio(fapl, MPI_COMM_WORLD, MPI_INFO_NULL);
if (parse_options(argc, argv) != 0){
if (MAINPROCESS)
@@ -302,9 +297,6 @@ main(int argc, char **argv)
}
if (dowrite){
- MPI_BANNER("MPIO independent overlapping writes...");
- test_mpio_overlap_writes(filenames[0]);
-
MPI_BANNER("dataset using split communicators...");
test_split_comm_access(filenames[0]);
@@ -360,7 +352,10 @@ finish:
printf("===================================\n");
}
MPI_Finalize();
-
+ if (dowrite)
+ h5_cleanup(FILENAME, fapl);
+ else
+ H5Pclose(fapl);
return(nerrors);
}