6 #ifndef CENTRAL_ADAPTIVE_LB_H
7 #define CENTRAL_ADAPTIVE_LB_H
10 #include "AdaptiveLB.decl.h"
12 void CreateAdaptiveLB();
14 /// for backward compatibility
15 typedef LBMigrateMsg CLBMigrateMsg
;
17 class AdaptiveLB
: public CBase_AdaptiveLB
20 AdaptiveLB(const CkLBOptions
&);
21 AdaptiveLB(CkMigrateMessage
*m
):CBase_AdaptiveLB(m
) {}
24 virtual bool QueryBalanceNow(int) { return true; };
25 virtual void work(LDStats
* stats
);
26 // void computeNonlocalComm(long long &nmsgs, long long &nbytes);
29 // CProxy_CentralLB thisProxy;
33 CentralLB
*commRefineLB
;
34 MetaBalancer
* metabalancer
;
37 #endif /* CENTRAL_ADAPTIVE_LB_H */