00001 00013 00014 #include "GraphPartLB.h" 00015 #include "ckgraph.h" 00016 00017 extern int quietModeRequested; 00018 00019 CreateLBFunc_Def(GraphPartLB, "Algorithm which uses graph partitioning for communication aware load balancing") 00020 00021 GraphPartLB::GraphPartLB(const CkLBOptions &opt) : CBase_GraphPartLB(opt) { 00022 lbname = "GraphPartLB"; 00023 if(CkMyPe() == 0 && !quietModeRequested) 00024 CkPrintf("CharmLB> GraphPartLB created.\n"); 00025 } 00026 00027 bool GraphPartLB::QueryBalanceNow(int _step) { 00028 return true; 00029 } 00030 00031 void GraphPartLB::work(LDStats *stats) { 00033 ProcArray *parr = new ProcArray(stats); 00034 ObjGraph *ogr = new ObjGraph(stats); 00035 00039 ogr->convertDecisions(stats); 00040 } 00041 00042 #include "GraphPartLB.def.h" 00043