remove some prints
[charm.git] / src / ck-core / ckmemcheckpoint.C
index d678343ce6182a954c262637fe060403f31b37f3..96e9eb0a505517541a8f0f9b582e9f6708da9668 100644 (file)
@@ -1364,7 +1364,8 @@ void CkMemCheckPT::RollBack(){
     {
       double curTime = CmiWallTimer();
       int len = ckTable.length();
-      CkPrintf("[%d] CkMemCheckPT ----- %s len: %d in %f seconds \n",CkMyPe(), stage, len, curTime-startTime);
+      if (CkMyPe() == thisFailedPe)
+        CkPrintf("[%d] CkMemCheckPT ----- %s in %f seconds \n",CkMyPe(), stage, curTime-startTime);
       stage = (char *)"recoverArrayElements";
       startTime = curTime;
       int flag = 0;
@@ -1435,7 +1436,6 @@ void CkMemCheckPT::RollBack(){
       delete [] gmap;
 #endif
       DEBUGF("[%d] recoverArrayElements restore %d objects\n", CkMyPe(), count);
-      CkPrintf("[%d] recoverArrayElements restore %d objects\n", CkMyPe(), count);
       //if (CkMyPe() == thisFailedPe)
 
       CKLOCMGR_LOOP(mgr->doneInserting(););
@@ -1834,7 +1834,6 @@ void CkMemCheckPT::RollBack(){
       CpvAccess(_remoteCrashedNode) = diePe;
       if(CkMyPe()==diePe){
         CmiPrintf("pe %d in replicad word die\n",diePe);
-        CmiPrintf("replicaAlive %d\n",CkMemCheckPT::replicaAlive);
         fflush(stdout);
       }
       if(CpvAccess(resilience)!=1||CkMyPe()!=diePe){
@@ -1880,12 +1879,10 @@ void CkMemCheckPT::RollBack(){
         CmiSetHandler(restartmsg, restartBeginHandlerIdx);
         //CmiSyncSendAndFree(_diePE, CmiMsgHeaderSizeBytes, (char *)restartmsg);
 #if CMK_USE_BARRIER
-      CmiPrintf("[%d]before reduce proc\n", CkMyPe()); 
        if(CpvAccess(resilience)==1){
          CmiSyncSendAndFree(_diePE, CmiMsgHeaderSizeBytes, (char *)restartmsg);
        }else
          CmiReduce(restartmsg,CmiMsgHeaderSizeBytes,doNothingMsg);
-      CmiPrintf("[%d]after reduce proc\n", CkMyPe());  
 #else
        CmiSyncSendAndFree(_diePE, CmiMsgHeaderSizeBytes, (char *)restartmsg);
 #endif 
@@ -1912,12 +1909,10 @@ void CkMemCheckPT::RollBack(){
         CmiSetHandler(restartmsg, restartBeginHandlerIdx);
         //CmiSyncSendAndFree(_diePE, CmiMsgHeaderSizeBytes, (char *)restartmsg);
 #if CMK_USE_BARRIER
-      CmiPrintf("[%d]before reduce array\n", CkMyPe());        
        if(CpvAccess(resilience)==1){
          CmiSyncSendAndFree(_diePE, CmiMsgHeaderSizeBytes, (char *)restartmsg);
        }else
          CmiReduce(restartmsg,CmiMsgHeaderSizeBytes,doNothingMsg);
-      CmiPrintf("[%d]after reduce array\n", CkMyPe()); 
 #else
        CmiSyncSendAndFree(_diePE, CmiMsgHeaderSizeBytes, (char *)restartmsg);
 #endif