NAMD
NamdDummyLB.h
Go to the documentation of this file.
1 /*
2  * This class implements a dummy load balancer. One application is to provide a distributed
3  * load balancer by means of the hybrid approach, where the first level doesn't balance
4  * the load at all.
5  */
6 
7 #ifndef _NAMDDUMMYLB_H_
8 #define _NAMDDUMMYLB_H_
9 
10 #include <CentralLB.h>
11 #include "NamdDummyLB.decl.h"
12 
13 #include "Node.h"
14 #include "PatchMap.h"
15 #include "SimParameters.h"
16 #include "RefineOnly.h"
17 #include "Alg7.h"
18 #include "AlgRecBisection.h"
19 #include "InfoStream.h"
20 #include "TorusLB.h"
21 #include "RefineTorusLB.h"
22 
23 class NamdDummyLB : public CentralLB {
24 
25 public:
26  NamdDummyLB(const CkLBOptions& opt);
27  NamdDummyLB(CkMigrateMessage *);
28  void work(LDStats* stats);
29 
30 private:
31  bool QueryBalanceNow(int step);
32  bool QueryDumpData();
33 
34 };
35 
36 void CreateNamdDummyLB();
38 
39 #endif /* _NAMDDUMMYLB_H_ */
NamdDummyLB * AllocateNamdDummyLB()
Definition: NamdDummyLB.C:20
void CreateNamdDummyLB()
Definition: NamdDummyLB.C:15
void work(LDStats *stats)
Definition: NamdDummyLB.C:44
NamdDummyLB(const CkLBOptions &opt)
Definition: NamdDummyLB.C:28