AMPI: drop comm argument from AMPI_Comm_set_migratable and rename to AMPI_Set_migratable
[charm.git] / src / ck-ldb / AdaptiveLB.h
blobe4ffa2ea35fd799e909e6ff4b54a19cce4b74e73
1 /**
2 * \addtogroup CkLdb
3 */
4 /*@{*/
6 #ifndef CENTRAL_ADAPTIVE_LB_H
7 #define CENTRAL_ADAPTIVE_LB_H
9 #include "CentralLB.h"
10 #include "AdaptiveLB.decl.h"
12 void CreateAdaptiveLB();
14 /// for backward compatibility
15 typedef LBMigrateMsg CLBMigrateMsg;
17 class AdaptiveLB : public CBase_AdaptiveLB
19 public:
20 AdaptiveLB(const CkLBOptions &);
21 AdaptiveLB(CkMigrateMessage *m):CBase_AdaptiveLB(m) {}
23 protected:
24 virtual bool QueryBalanceNow(int) { return true; };
25 virtual void work(LDStats* stats);
26 // void computeNonlocalComm(long long &nmsgs, long long &nbytes);
28 private:
29 // CProxy_CentralLB thisProxy;
30 CentralLB *greedyLB;
31 CentralLB *refineLB;
32 CentralLB *metisLB;
33 CentralLB *commRefineLB;
34 MetaBalancer* metabalancer;
37 #endif /* CENTRAL_ADAPTIVE_LB_H */
39 /*@}*/