break MPI_Waitall event so that it does not directly depend on the previous event...
authorGengbin Zheng <gzheng@illinois.edu>
Thu, 18 Jun 2009 03:26:50 +0000 (03:26 +0000)
committerGengbin Zheng <gzheng@illinois.edu>
Thu, 18 Jun 2009 03:26:50 +0000 (03:26 +0000)
src/ck-perf/trace-bluegene.h

index 0ed7a0696eab5959ee5d42a2f8d6ca6ae06bf8ad..979c1cd4f00531921f1ec43575f22383ea661579 100644 (file)
@@ -87,7 +87,7 @@ extern int traceBluegeneLinked;
         _TRACE_BG_BEGIN_EXECUTE_NOMSG(str, &_bgParentLog, 1);      \
         }
 
-# define TRACE_BG_AMPI_BREAK(t, str, event, count    \
+# define TRACE_BG_AMPI_BREAK(t, str, event, count, connect)    \
        {       \
        void *curLog;    /* store current log in timeline */    \
        _TRACE_BG_TLINE_END(&curLog);   \
@@ -96,7 +96,7 @@ extern int traceBluegeneLinked;
         for(int i=0;i<count;i++) {      \
                 _TRACE_BG_ADD_BACKWARD_DEP(((void**)event)[i]);      \
         }      \
-        _TRACE_BG_ADD_BACKWARD_DEP(curLog);      \
+        if (connect) _TRACE_BG_ADD_BACKWARD_DEP(curLog);      \
        }
        
 
@@ -104,7 +104,7 @@ extern int traceBluegeneLinked;
         {      \
        /* TRACE_BG_AMPI_SUSPEND(); */  \
        CthThread th = getAmpiInstance(MPI_COMM_WORLD)->getThread();    \
-       TRACE_BG_AMPI_BREAK(th, "AMPI_WAITALL", NULL, 0);       \
+       TRACE_BG_AMPI_BREAK(th, "AMPI_WAITALL", NULL, 0, 0);    \
        _TRACE_BG_ADD_BACKWARD_DEP(curLog);     \
        for(int i=0;i<count;i++) {      \
          if (request[i] == MPI_REQUEST_NULL) continue; \