Working Heap Strategy
authorSameer Paranjpye <paranjpy@uiuc.edu>
Thu, 14 Oct 1999 04:52:01 +0000 (04:52 +0000)
committerSameer Paranjpye <paranjpy@uiuc.edu>
Thu, 14 Oct 1999 04:52:01 +0000 (04:52 +0000)
src/ck-ldb/HeapCentLB.C
src/ck-ldb/HeapCentLB.h

index c8327f05985e5e243557505581b851bc74734889..75b6c20f67accb07fbe879d1a746542003c65bab 100644 (file)
@@ -23,12 +23,12 @@ void CreateHeapCentLB()
 {
   CkPrintf("[%d] creating HeapCentLB %d\n",CkMyPe(),loadbalancer);
   loadbalancer = CProxy_HeapCentLB::ckNew();
-  CkPrintf("[%d] created RandCentLB %d\n",CkMyPe(),loadbalancer);
+  CkPrintf("[%d] created HeapCentLB %d\n",CkMyPe(),loadbalancer);
 }
 
 HeapCentLB::HeapCentLB()
 {
-  CkPrintf("[%d] RandCentLB created\n",CkMyPe());
+  CkPrintf("[%d] HeapCentLB created\n",CkMyPe());
 }
 
 CmiBool HeapCentLB::QueryBalanceNow(int _step)
@@ -37,7 +37,7 @@ CmiBool HeapCentLB::QueryBalanceNow(int _step)
   return CmiTrue;
 }
 
-void Heapify(HeapData *heap, int node, int heapSize)
+void HeapCentLB::Heapify(HeapData *heap, int node, int heapSize)
 {
        int left = 2*node+1;
        int right = 2*node+2;
index d162c976bc7d4b5e76d25ec668df8c3a441c1a80..784d88d2dbc096952c43db97b414e3d3e3f07573 100644 (file)
@@ -17,7 +17,7 @@ struct HeapData {
 public:
   HeapCentLB();
 private:
-       void    Heapify(HeapData *, int, int)
+  void    Heapify(HeapData *, int, int);
   CmiBool QueryBalanceNow(int step);
   CLBMigrateMsg* Strategy(CentralLB::LDStats* stats, int count);
 };