summaryrefslogtreecommitdiffstats
path: root/testpar/t_mdset.c
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2000-10-09 18:23:20 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2000-10-09 18:23:20 (GMT)
commit61ab6a6b46adc58142e26c88e0196dfbb3efb9bc (patch)
treeedf6be36bca36a7efab3b815cb7040517a459304 /testpar/t_mdset.c
parenta40a5bfeec79f10ada9f3ecfeebac0cc4b8d545f (diff)
downloadhdf5-61ab6a6b46adc58142e26c88e0196dfbb3efb9bc.zip
hdf5-61ab6a6b46adc58142e26c88e0196dfbb3efb9bc.tar.gz
hdf5-61ab6a6b46adc58142e26c88e0196dfbb3efb9bc.tar.bz2
[svn-r2641] Purpose:
Added features Description: There were no automatic tests for transfering zero elements. Solution: t_dset.c: Added two new patterns of ZROW (zero rows for process 0) and ZCOL(zero columns for process 0). ZROW test was added but it failed because the current library does not accept it. Not compiled in now. Need to fix the library before turning it back on again and also to add the ZCOL test. t_mdset.c: Added statement to show progress. Also the MPI_Barrier() call get processes synchornoized. It eliminates the racing condition but this is not a permenant solution. The library code needs to be fixed. testphdf5.c: Added a bunch of MPI_Type_XXX debug code. Added the -md option to skip the multiple datasets tests. Changed the cosmitic appearance of the banner messages. testphdf5.h: When an error is detected, the old way was to call MPI_Finalize() before exiting. This sometimes hangs because some processes may be waiting for a message of a different tag. Changed to call MPI_Abort() for now so that the whole MPI job would abort rather than hanging due resource limits exceeded. Added the definition of ZROW and ZCOL. Platforms tested: Modi4 -64.
Diffstat (limited to 'testpar/t_mdset.c')
-rw-r--r--testpar/t_mdset.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/testpar/t_mdset.c b/testpar/t_mdset.c
index cc23e1c..3fd3bdb 100644
--- a/testpar/t_mdset.c
+++ b/testpar/t_mdset.c
@@ -49,7 +49,11 @@ void multiple_dset_write(char *filename)
H5Dwrite (dataset, H5T_NATIVE_DOUBLE, memspace, filespace, H5P_DEFAULT, outme);
H5Dclose (dataset);
- }
+ if (! ((i+1) % 10)) {
+ printf("created %d datasets\n", i+1);
+ MPI_Barrier(MPI_COMM_WORLD);
+ }
+}
H5Sclose (filespace);
H5Sclose (memspace);