reverte
authorGengbin Zheng <gzheng@illinois.edu>
Mon, 19 Mar 2012 07:22:41 +0000 (00:22 -0700)
committerGengbin Zheng <gzheng@illinois.edu>
Mon, 19 Mar 2012 07:22:41 +0000 (00:22 -0700)
examples/charm++/hello/1darray/hello.C
examples/converse/pingpong/pingpong.C

index 340b8f6ce3c4e50b6c106928a58aac5a4684aa4d..a983c5f3eaaa2d82da1a044704150236074dcda4 100644 (file)
@@ -16,8 +16,8 @@ public:
     delete m;
 
     //Start the computation
-    CkPrintf("Running Hello on %d processors for %d elements, physical nodes=%d\n",
-            CkNumPes(),nElements,CmiNumPhysicalNodes());
+    CkPrintf("Running Hello on %d processors for %d elements\n",
+            CkNumPes(),nElements);
     mainProxy = thisProxy;
 
     CProxy_Hello arr = CProxy_Hello::ckNew(nElements);
index 8c52a47ffaaa283686abb9f198944fcc30561ab2..630751e28a755695b00baa2bd051d25c579c34e6 100644 (file)
@@ -9,8 +9,8 @@
 #include <stdlib.h>
 #include <converse.h>
 
-enum {nCycles = 10};
-enum { maxMsgSize = 1 << 20 };
+enum {nCycles = 1000};
+enum { maxMsgSize = 1 << 14 };
 
 CpvDeclare(int,msgSize);
 CpvDeclare(int,cycleNum);
@@ -20,7 +20,7 @@ CpvDeclare(int,node1Handler);
 CpvStaticDeclare(double,startTime);
 CpvStaticDeclare(double,endTime);
 
-#define USE_PERSISTENT     1
+#define USE_PERSISTENT     0
 
 #if USE_PERSISTENT
 PersistentHandle h;
@@ -120,7 +120,7 @@ CmiStartFn mymain()
     CpvInitialize(int,msgSize);
     CpvInitialize(int,cycleNum);
     
-    CpvAccess(msgSize)= 8192 + CmiMsgHeaderSizeBytes;
+    CpvAccess(msgSize)= 512 + CmiMsgHeaderSizeBytes;
     
     CpvInitialize(int,exitHandler);
     CpvAccess(exitHandler) = CmiRegisterHandler((CmiHandler) exitHandlerFunc);