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