minor
authorYanhua Sun <yanhuas@jyc1.(none)>
Sun, 8 Jul 2012 18:41:10 +0000 (13:41 -0500)
committerYanhua Sun <yanhuas@jyc1.(none)>
Sun, 8 Jul 2012 18:41:10 +0000 (13:41 -0500)
tests/charm++/ping/ping.C

index 218686d766d28f643748cf5f6e23d1ed1e0542bb..d55dd4a85da4dbb47ddac06f5b96c44af6586a64 100644 (file)
@@ -37,8 +37,6 @@ public:
           payload=atoi(m->argv[1]);
       if(m->argc>2)
           PEsPerNode = atoi(m->argv[2]);
-      if(PEsPerNode > CkMyNodeSize())
-          PEsPerNode = CkMyNodeSize();
       if(m->argc>3)
           CharesPerPE = atoi(m->argv[3]);
       if(m->argc>4)
@@ -58,8 +56,9 @@ public:
       if(niter == iterations)
       {
           double pingTimer = CkWallTimer() - start_time;
-          CkPrintf("Ping time for %d messages(%d Chares * %d PEs per node) of %d Bytes cost %f ms\n", 
-              PEsPerNode * CharesPerPE, CharesPerPE, PEsPerNode, payload, 1000*pingTimer/iterations);
+          CkPrintf("Chares       Workers        NoOfMsgs        Bytes           Total           Time\n");
+          CkPrintf("PingTime %d  \t\t%d  \t\t%d  \t\t%d \t\t%.3f\nn",
+              CharesPerPE, PEsPerNode, PEsPerNode * CharesPerPE, payload, 1000*pingTimer/iterations);
           CkExit();
       }else
       {
@@ -89,6 +88,7 @@ public:
   }
   void recv(PingMsg *msg)
   {
+      delete msg;
       recvCnt++;
       if(recvCnt == PEsPerNode * CharesPerPE)
       {