Bug #1062: Fix linking errors by moving definition of userDrivenMode to machine-commo...
[charm.git] / src / ck-ldb / GraphPartLB.C
blobdf2fd38b14b7c47164729dd40336873e251c37df
1 /** \file GraphPartLB.C
2  *  Author: Abhinav S Bhatele
3  *  Date Created: September 3rd, 2010
4  *  E-mail: bhatele@illinois.edu
5  *
6  */
8 /**
9  *  \addtogroup CkLdb
10  */
12 /*@{*/
14 #include "GraphPartLB.h"
15 #include "ckgraph.h"
17 CreateLBFunc_Def(GraphPartLB, "Algorithm which uses graph partitioning for communication aware load balancing")
19 GraphPartLB::GraphPartLB(const CkLBOptions &opt) : CBase_GraphPartLB(opt) {
20   lbname = "GraphPartLB";
21   if(CkMyPe() == 0)
22     CkPrintf("GraphPartLB created\n");
25 bool GraphPartLB::QueryBalanceNow(int _step) {
26   return true;
29 void GraphPartLB::work(LDStats *stats) {
30   /** ========================== INITIALIZATION ============================= */
31   ProcArray *parr = new ProcArray(stats);
32   ObjGraph *ogr = new ObjGraph(stats);
34   /** ============================= STRATEGY ================================ */
36   /** ============================== CLEANUP ================================ */
37   ogr->convertDecisions(stats);
40 #include "GraphPartLB.def.h"
42 /*@}*/