1 /** \file GraphPartLB.C
2 * Author: Abhinav S Bhatele
3 * Date Created: September 3rd, 2010
4 * E-mail: bhatele@illinois.edu
14 #include "GraphPartLB.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";
22 CkPrintf("GraphPartLB created\n");
25 bool GraphPartLB::QueryBalanceNow(int _step) {
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"