NAMD
NamdCentLB.h
Go to the documentation of this file.
1
/*****************************************************************************
2
* $Source: /home/cvs/namd/cvsroot/namd2/src/NamdCentLB.h,v $
3
* $Author: jim $
4
* $Date: 2013/08/22 15:17:18 $
5
* $Revision: 1.19 $
6
*****************************************************************************/
7
33
#ifndef _NAMDCENTLB_H_
34
#define _NAMDCENTLB_H_
35
36
#include <CentralLB.h>
37
#include "NamdCentLB.decl.h"
38
39
#include "
Node.h
"
40
#include "
PatchMap.h
"
41
#include "
SimParameters.h
"
42
#include "
RefineOnly.h
"
43
#include "
Alg7.h
"
44
#include "
AlgRecBisection.h
"
45
#include "
InfoStream.h
"
46
#include "
TorusLB.h
"
47
#include "
RefineTorusLB.h
"
48
49
void
CreateNamdCentLB
();
50
NamdCentLB
*
AllocateNamdCentLB
();
51
52
class
NamdCentLB
:
public
CentralLB {
53
54
public
:
55
NamdCentLB
(
const
CkLBOptions& opt);
56
NamdCentLB
(CkMigrateMessage *);
57
CLBMigrateMsg*
Strategy
(LDStats* stats);
58
59
private
:
60
bool
QueryBalanceNow(
int
step);
61
bool
QueryDumpData();
62
int
buildData(LDStats* stats);
63
int
requiredProxies(
PatchID
id
,
int
neighborNodes[]);
64
#if USE_TOPOMAP
65
int
requiredProxiesOnProcGrid(
PatchID
id
,
int
neighborNodes[]);
66
#endif
67
void
dumpDataASCII(
char
*file,
int
numProcessors,
int
numPatches,
68
int
numComputes);
69
void
loadDataASCII(
char
*file,
int
&numProcessors,
int
&numPatches,
70
int
&numComputes);
71
72
computeInfo
*computeArray;
73
patchInfo
*patchArray;
74
processorInfo
*processorArray;
75
};
76
77
#endif
/* _NAMDCENTLB_H_ */
CreateNamdCentLB
void CreateNamdCentLB()
Definition:
NamdCentLB.C:26
RefineTorusLB.h
computeInfo
Definition:
elements.h:20
Node.h
InfoStream.h
NamdCentLB::Strategy
CLBMigrateMsg * Strategy(LDStats *stats)
Definition:
NamdCentLB.C:88
Alg7.h
RefineOnly.h
patchInfo
Definition:
elements.h:29
AllocateNamdCentLB
NamdCentLB * AllocateNamdCentLB()
Definition:
NamdCentLB.C:38
PatchMap.h
NamdCentLB::NamdCentLB
NamdCentLB(const CkLBOptions &opt)
Definition:
NamdCentLB.C:51
TorusLB.h
AlgRecBisection.h
PatchID
int32 PatchID
Definition:
NamdTypes.h:277
SimParameters.h
NamdCentLB
Definition:
NamdCentLB.h:52
processorInfo
Definition:
elements.h:36
Generated by
1.8.14