summaryrefslogtreecommitdiffstats
path: root/testpar/testphdf5.h
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/testphdf5.h
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/testphdf5.h')
-rw-r--r--testpar/testphdf5.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/testpar/testphdf5.h b/testpar/testphdf5.h
index 939cf19..9c89408 100644
--- a/testpar/testphdf5.h
+++ b/testpar/testphdf5.h
@@ -27,8 +27,8 @@
H5Eprint (stdout); \
fflush(stdout); \
if (!verbose){ \
- MPI_Finalize(); \
- exit(nerrors); \
+ printf("aborting MPI process\n"); \
+ MPI_Abort(MPI_COMM_WORLD, nerrors); \
} \
} \
H5Eclear(); \
@@ -56,6 +56,8 @@
/* hyperslab layout styles */
#define BYROW 1 /* divide into slabs of rows */
#define BYCOL 2 /* divide into blocks of columns */
+#define ZROW 3 /* same as BYCOL except process 0 gets 0 rows */
+#define ZCOL 4 /* same as BYCOL except process 0 gets 0 columns */
/* dataset data type. Int's can be easily octo dumped. */