fixed a bug in generating bgtimelog that has no dependence at all, in which case...
authorGengbin Zheng <gzheng@illinois.edu>
Mon, 18 Oct 2004 05:58:20 +0000 (05:58 +0000)
committerGengbin Zheng <gzheng@illinois.edu>
Mon, 18 Oct 2004 05:58:20 +0000 (05:58 +0000)
src/ck-perf/trace-bluegene.C

index 4183d1de1618b6b3123aba752c842ba76d917fda..3293860bf0c3551978e03e19ef8c696ba42fe3f6 100644 (file)
@@ -83,7 +83,11 @@ void TraceBluegene::bgDummyBeginExec(char* name,void** parentLogPtr)
 {
   if (!genTimeLog) return;
   startVTimer();
-  BgTimeLog* newLog = BgStartLogByName(tTIMELINEREC, _threadEP, name, BgGetCurTime(), *(BgTimeLog**)parentLogPtr);
+  double startTime = BgGetCurTime();
+  BgTimeLog* newLog = BgStartLogByName(tTIMELINEREC, _threadEP, name, startTime, *(BgTimeLog**)parentLogPtr);
+  // if event's mesgID is (-1:-1) and there is no backward dependence
+  // to avoid timestamp correction, set a fake recv time so that it stays here
+  if (*parentLogPtr == NULL) newLog->recvTime = startTime;
   *parentLogPtr = newLog;
 }