[MOAB-dev] r4845 - in MOAB/trunk/src: . io parallel

kraftche at cae.wisc.edu kraftche at cae.wisc.edu
Wed May 18 15:40:51 CDT 2011


Author: kraftche
Date: 2011-05-18 15:40:51 -0500 (Wed, 18 May 2011)
New Revision: 4845

Modified:
   MOAB/trunk/src/io/ReadHDF5.cpp
   MOAB/trunk/src/io/WriteHDF5.cpp
   MOAB/trunk/src/io/WriteHDF5.hpp
   MOAB/trunk/src/moab_mpe.h
   MOAB/trunk/src/parallel/WriteHDF5Parallel.cpp
Log:
add MPE instrumentation of HDF5 read/write

Modified: MOAB/trunk/src/io/ReadHDF5.cpp
===================================================================
--- MOAB/trunk/src/io/ReadHDF5.cpp	2011-05-18 20:13:53 UTC (rev 4844)
+++ MOAB/trunk/src/io/ReadHDF5.cpp	2011-05-18 20:40:51 UTC (rev 4845)
@@ -60,6 +60,7 @@
 #include "IODebugTrack.hpp"
 #include "ReadHDF5Dataset.hpp"
 #include "ReadHDF5VarLen.hpp"
+#include "moab_mpe.h"
 
 namespace moab {
 
@@ -783,6 +784,10 @@
 {
   mhdf_Status status;
 
+  static MPEState mpe_event( "ReadHDF5", "yellow" );
+ 
+  mpe_event.start( "gather parts" );
+
   CHECK_OPEN_HANDLES;
   
   for (int i = 0; i < subset_list_length; ++i) {
@@ -815,7 +820,8 @@
   }
 
   dbgOut.print_ints( 4, "Set file IDs for partial read: ", file_ids );
-  
+  mpe_event.end();
+  mpe_event.start( "gather related sets" );
   dbgOut.tprint( 1, "GATHERING ADDITIONAL ENTITIES\n" );
   
   enum RecusiveSetMode { RSM_NONE, RSM_SETS, RSM_CONTENTS };
@@ -859,7 +865,7 @@
 
   dbgOut.print_ints( 5, "File IDs for partial read: ", file_ids );
   debug_barrier();
-    
+  mpe_event.end();
   dbgOut.tprint( 1, "GATHERING NODE IDS\n" );
   
     // Figure out the maximum dimension of entity to be read
@@ -895,10 +901,12 @@
     
     debug_barrier();
     dbgOut.print( 2, "    Getting polyhedra faces\n" );
+    mpe_event.start( "reading connectivity for ", fileInfo->elems[i].handle );
     
     Range polyhedra;
     intersect( fileInfo->elems[i].desc, file_ids, polyhedra );
     rval = read_elems( i, polyhedra, &file_ids );


More information about the moab-dev mailing list