Removing unnecessary prints.
authorSameer Kumar <skumar2@uiuc.edu>
Mon, 21 Mar 2005 05:04:00 +0000 (05:04 +0000)
committerSameer Kumar <skumar2@uiuc.edu>
Mon, 21 Mar 2005 05:04:00 +0000 (05:04 +0000)
tests/charm++/commtest/comlib/Makefile
tests/charm++/commtest/comlib/bench.C
tests/charm++/commtest/comlib/benchmulti.C
tests/charm++/commtest/comlib/benchsectionmulti.C

index ddf75013cd5104fa41abf4057342ecb12efb05e3..38740ebaec32c52554fb7218c40ef9377505328b 100644 (file)
@@ -48,7 +48,7 @@ test: all
        ./charmrun hello +p4 10 4
        ./charmrun hello +p4 10 5
        ./charmrun hello +p2 1
-#      ./charmrun bench +p2 100 1 +balancer RefineLB
+       ./charmrun bench +p2 100 1 +balancer RefineLB
        ./charmrun bench +p2 100 2 +balancer RefineLB
        ./charmrun bench +p2 100 4 +balancer RefineLB
        ./charmrun bench +p4 100 2 +balancer RefineLB
index 8da917cc6755617aa8d8a6284ea6c2aaf58b96d5..3a3c8d17b5d609c2b6909432b30df24912afcf77 100644 (file)
@@ -98,10 +98,10 @@ public:
 
        curTime = CkWallTimer();
 
-        for(count = 0; count < nElements; count++)            
-            arr[count].start(size);
+        //for(count = 0; count < nElements; count++)            
+        //  arr[count].start(size);
 
-        //arr.start();
+        arr.start(size);
     };
     
     void send(void) {
@@ -120,9 +120,9 @@ public:
        if(pass == NUMPASS)
          done();
        else {
-            for(int count = 0; count < nElements; count++)            
-                arr[count].start(size);
-            //arr.start(size);
+            //for(int count = 0; count < nElements; count++)            
+            //  arr[count].start(size);
+            arr.start(size);
         }
       }
     }
@@ -145,9 +145,9 @@ public:
           else if(superpass < 50)
               size += 500;
           
-          for(int count = 0; count < nElements; count++)            
-              arr[count].start(size);
-          //arr.start(size);
+          //for(int count = 0; count < nElements; count++)            
+          //  arr[count].start(size);
+          arr.start(size);
       }
     }
 };
@@ -184,7 +184,7 @@ public:
     }
     
     Bench(CkMigrateMessage *m) {
-        CkPrintf("Migrated to %d\n", CkMyPe());
+        //CkPrintf("Migrated to %d\n", CkMyPe());
         //myInst = cinst;
     }
     
@@ -246,14 +246,14 @@ public:
     }
 
     void ResumeFromSync() {
-        CkPrintf("%d: resuming\n", CkMyPe());
+        //        CkPrintf("%d: resuming\n", CkMyPe());
         myInst.setSourcePe();
        sendMessage();
     }
 
     void pup(PUP::er &p) {
-        if(p.isPacking())
-            CkPrintf("Migrating from %d\n", CkMyPe());
+        //if(p.isPacking())
+        //  CkPrintf("Migrating from %d\n", CkMyPe());
 
         ArrayElement1D::pup(p);
         p | pass ;
index 7e86c5c92041ac353062d6b42c7336a4e541348b..72726bc508c79826c5cf0972372d78d5f8208354 100644 (file)
@@ -92,7 +92,7 @@ public:
         BroadcastStrategy *bstrat = new BroadcastStrategy
             (arr.ckGetArrayID(), USE_HYPERCUBE);
         
-        CkPrintf("After creating array\n");
+        //CkPrintf("After creating array\n");
        CkArrayID aid = arr.ckGetArrayID();
 
         ComlibInstanceHandle cinst = CkGetComlibInstance();        
@@ -105,7 +105,7 @@ public:
         
        curTime = CkWallTimer();
        arr.sendMessage();
-        CkPrintf("After Main\n");
+        //        CkPrintf("After Main\n");
     };
     
     void send(void) {
@@ -165,8 +165,8 @@ class Bench : public CBase_Bench
 public:
 
     void pup(PUP::er &p) {
-        if(p.isPacking())
-            CkPrintf("Migrating from %d\n", CkMyPe());
+        //if(p.isPacking())
+        //  CkPrintf("Migrating from %d\n", CkMyPe());
 
         ArrayElement1D::pup(p);
         p | pass ;
@@ -201,7 +201,7 @@ public:
     }
     
     Bench(CkMigrateMessage *m) {
-        CkPrintf(" Migrated to %d\n", CkMyPe());
+        //        CkPrintf(" Migrated to %d\n", CkMyPe());
     }
     
     void sendMessage()
@@ -254,7 +254,7 @@ public:
        MESSAGESIZE = messagesize;
         
         if(firstEntryFlag) {
-            CkPrintf("Calling AtSync\n");
+            //            CkPrintf("Calling AtSync\n");
             AtSync();
         }
         else
index f905b471d1f4ff82a50a3e0b80cafb946ff35c1a..47bbbe087446fa1378b9c3e448e5ceb3cc4d35ea 100644 (file)
@@ -79,7 +79,7 @@ public:
 
        RingMulticastStrategy *rstrat = new RingMulticastStrategy(arr.ckGetArrayID());
 
-        CkPrintf("After creating array\n");
+        //        CkPrintf("After creating array\n");
        CkArrayID aid = arr.ckGetArrayID();
 
         ComlibInstanceHandle cinst = CkGetComlibInstance();        
@@ -92,7 +92,7 @@ public:
         
        curTime = CkWallTimer();
        arr.sendMessage();
-        CkPrintf("After Main\n");
+        //        CkPrintf("After Main\n");
     };
     
     void send(void) {
@@ -152,8 +152,8 @@ class Bench : public CBase_Bench
 public:
 
     void pup(PUP::er &p) {
-        if(p.isPacking())
-            CkPrintf("Migrating from %d\n", CkMyPe());
+        //if(p.isPacking())
+        //            CkPrintf("Migrating from %d\n", CkMyPe());
 
         ArrayElement1D::pup(p);
         p | pass ;
@@ -190,7 +190,7 @@ public:
     }
     
     Bench(CkMigrateMessage *m) {
-        CkPrintf(" Migrated to %d\n", CkMyPe());
+        //CkPrintf(" Migrated to %d\n", CkMyPe());
     }
     
     void sendMessage()
@@ -239,7 +239,7 @@ public:
        MESSAGESIZE = messagesize;
         
         if(firstEntryFlag) {
-            CkPrintf("Calling AtSync\n");
+            //            CkPrintf("Calling AtSync\n");
             AtSync();
         }
         else