[MOAB-dev] r4141 - MOAB/trunk/test/h5file

kraftche at cae.wisc.edu kraftche at cae.wisc.edu
Fri Sep 24 13:45:37 CDT 2010


Author: kraftche
Date: 2010-09-24 13:45:37 -0500 (Fri, 24 Sep 2010)
New Revision: 4141

Added:
   MOAB/trunk/test/h5file/h5portable.cpp
   MOAB/trunk/test/h5file/portable_power_32.h5m
   MOAB/trunk/test/h5file/portable_x86_32.h5m
   MOAB/trunk/test/h5file/portable_x86_64.h5m
Modified:
   MOAB/trunk/test/h5file/Makefile.am
Log:
Add tests verifying that portability of binary data is being handled correctly
for .h5m files.  

Previously, we didn't have to worry about this because data conversion
was handled implicitly by H5Dread calls.  However, future changes to
the .h5m reader will do data conversion with explicit calls to H5Tconvert
to avoid some parallel performance pitfalls of the HDF5 library.  These
tests verify that the conversion is being done everywhere it should be
and that buffer sizes are being handled correctly when the conversion
involves a change in the size of the type.


Modified: MOAB/trunk/test/h5file/Makefile.am
===================================================================
--- MOAB/trunk/test/h5file/Makefile.am	2010-09-24 18:42:53 UTC (rev 4140)
+++ MOAB/trunk/test/h5file/Makefile.am	2010-09-24 18:45:37 UTC (rev 4141)
@@ -1,4 +1,8 @@
-EXTRA_DIST = v3_dodec.h5m rocket_ents_in_assm.h5m
+EXTRA_DIST = v3_dodec.h5m \
+             rocket_ents_in_assm.h5m \
+             portable_x86_64.h5m \
+	     portable_x86_32.h5m \
+	     portable_power_32.h5m
 
 AM_CPPFLAGS += -DSRCDIR=$(srcdir) \
                -I.. -I$(srcdir)/.. \
@@ -9,7 +13,13 @@
                -I$(top_srcdir)/src/parallel \
 	       -I$(top_builddir)/src/parallel 
             
-check_PROGRAMS = h5test h5legacy h5varlen h5sets_test h5regression h5partial
+check_PROGRAMS = h5test \
+                 h5legacy \
+                 h5varlen \
+                 h5sets_test \
+                 h5regression \
+                 h5partial \
+                 h5portable
 
 TESTS = $(check_PROGRAMS)
 LDADD = $(top_builddir)/src/libMOAB.la
@@ -20,3 +30,4 @@
 h5sets_test_SOURCES = h5sets_test.cpp
 h5regression_SOURCES = h5regression.cpp
 h5partial_SOURCES = h5partial.cpp
+h5portable_SOURCES = h5portable.cpp

Added: MOAB/trunk/test/h5file/h5portable.cpp
===================================================================
--- MOAB/trunk/test/h5file/h5portable.cpp	                        (rev 0)
+++ MOAB/trunk/test/h5file/h5portable.cpp	2010-09-24 18:45:37 UTC (rev 4141)
@@ -0,0 +1,635 @@
+/** \file   h5portable.cpp
+ *  \author Jason Kraftcheck 
+ *  \date   2010-09-23
+ * 
+ * Tests for HDF5 portability because we call H5Tconvert ourselves
+ * to work around parallel performance issues in the HDF5 library.
+ */
+
+#include "moab/Core.hpp"
+#include "moab/Range.hpp"
+#include "TestUtil.hpp"


More information about the moab-dev mailing list