guard new function with mem checkpoint macro
authorGengbin Zheng <gzheng@illinois.edu>
Sat, 29 Oct 2011 22:11:05 +0000 (17:11 -0500)
committerGengbin Zheng <gzheng@illinois.edu>
Sat, 29 Oct 2011 22:11:05 +0000 (17:11 -0500)
src/ck-core/ckmemcheckpoint.C

index c3f8c235d466d091eb0ac48884bfd7ffbdf97b38..2741e37b8154802e5a889aaa173625bfab1f32d3 100644 (file)
@@ -1326,6 +1326,7 @@ void pingCheckHandler()
 
 void pingBuddy()
 {
+#if CMK_MEM_CHECKPOINT
   CkMemCheckPT *obj = CProxy_CkMemCheckPT(ckCheckPTGroupID).ckLocalBranch();
   if (obj) {
     int buddy = obj->BuddyPE(CkMyPe());
@@ -1337,6 +1338,7 @@ void pingBuddy()
     CmiSyncSendAndFree(buddy, CmiMsgHeaderSizeBytes+sizeof(int), (char *)msg);
   }
   CcdCallOnCondition(CcdPERIODIC_100ms,(CcdVoidFn)pingBuddy,NULL);
+#endif
 }
 #endif