deleted an unused (and misleading) constructor
authorFilippo Gioachin <gioachin@illinois.edu>
Sat, 7 Aug 2004 04:49:58 +0000 (04:49 +0000)
committerFilippo Gioachin <gioachin@illinois.edu>
Sat, 7 Aug 2004 04:49:58 +0000 (04:49 +0000)
src/ck-com/PipeBroadcastStrategy.C
src/ck-com/PipeBroadcastStrategy.h

index 937df9f07430b761603f2e36870d815b4ea4510a..61c219df38142142072ba5cb9338491892db1bde 100644 (file)
@@ -3,6 +3,7 @@
 void propagate_handler(void *message) {
   int instid = CmiGetXHandler(message);
   PipeBroadcastConverse *myStrategy = (PipeBroadcastConverse *)ConvComlibGetStrategy(instid);
+  ComlibPrintf("[%d] propagate_handler: calling on %x\n",CmiMyPe(),myStrategy);
   envelope *env = (envelope*)message;
   myStrategy->propagate((char*)message, false, env->getSrcPe(), env->getTotalsize(), &envelope::setSrcPe);
 }
@@ -29,14 +30,15 @@ void PipeBroadcastStrategy::commonInit(int _topology, int _pipeSize) {
   converseStrategy = new PipeBroadcastConverse(_topology, _pipeSize, this);
 }
 
-PipeBroadcastStrategy::PipeBroadcastStrategy(int _topology, int _pipeSize)
+/*PipeBroadcastStrategy::PipeBroadcastStrategy(int _topology, int _pipeSize)
   : CharmStrategy() {
   //isArray = 0;
   commonInit(_topology, _pipeSize);
-}
+  }*/
 
 PipeBroadcastStrategy::PipeBroadcastStrategy(int _topology, CkArrayID _aid, int _pipeSize)
   : CharmStrategy() {
+  ComlibPrintf("Creating charm pipebcast (%x)\n",this);
   setType(ARRAY_STRATEGY);
   ainfo.setDestinationArray(_aid);
   commonInit(_topology, _pipeSize);
@@ -93,6 +95,7 @@ void PipeBroadcastStrategy::pup(PUP::er &p){
 
   if (p.isUnpacking()) {
     propagateHandle = CmiRegisterHandler((CmiHandler)propagate_handler);
+    ComlibPrintf("[%d] registered handler single to %d\n",CmiMyPe(),propagateHandle);
     messageBuf = new CkQ<CharmMessageHolder *>;
     converseStrategy->setHigherLevel(this);
   }
index 1171b7dc6b3cedb8c2daafd21871e7bee1a94b1b..e3accefa56442429cf04e9c1e5debcbf44ebad63 100644 (file)
@@ -13,7 +13,7 @@ class PipeBroadcastStrategy : public CharmStrategy {
   void commonInit(int _top, int _pipe);
 
  public:
-  PipeBroadcastStrategy(int _topology=USE_HYPERCUBE, int _pipeSize=DEFAULT_PIPE);
+  //PipeBroadcastStrategy(int _topology=USE_HYPERCUBE, int _pipeSize=DEFAULT_PIPE);
   PipeBroadcastStrategy(int _topology, CkArrayID _aid, int _pipeSize=DEFAULT_PIPE);
   PipeBroadcastStrategy(CkGroupID _gid, int _topology=USE_HYPERCUBE, int _pipeSize=DEFAULT_PIPE);
   PipeBroadcastStrategy(CkMigrateMessage *){}