tests/charm++/pingpong : detect quiescence prior to running first benchmark
authorLukasz Wesolowski <wesolwsk@illinois.edu>
Tue, 26 Jun 2012 23:24:50 +0000 (18:24 -0500)
committerLukasz Wesolowski <wesolwsk@illinois.edu>
Tue, 26 Jun 2012 23:24:50 +0000 (18:24 -0500)
to prevent misreporting its time (due to concurrent chare insertions
and initializations)

tests/charm++/pingpong/pingpong.C

index 1da9269831b43800dff4ccccee274ca7e07fd591..666ca112698c46c5eed56447ba71f6ee2ef661a7 100644 (file)
@@ -109,7 +109,7 @@ public:
     arrF[CkArrayIndexFancy("second")].insert(P2);
     arrF.doneInserting();
     phase=0;
-    mainProxy.maindone();
+    CkStartQD(CkCallback(CkIndex_main::maindone(), mainProxy));
     delete m;
   };