Adding optional support for critical path detection(currently disabled by default...
[charm.git] / src / ck-cp / controlPoints.ci
1 module ControlPoints {
2
3   readonly CProxy_controlPointManager localControlPointManagerProxy;
4   readonly int random_seed;
5
6
7
8   initcall void registerIdleTimeReduction(void);        
9
10
11
12   mainchare controlPointMain {
13     entry controlPointMain(CkArgMsg*);
14   };
15
16  initnode void controlPointInitNode();
17
18  group controlPointManager {
19     entry controlPointManager();
20
21     entry void requestMemoryUsage(CkCallback cb);
22     entry void gatherMemoryUsage(CkReductionMsg *msg);
23
24     entry void requestIdleTime(CkCallback cb);
25     entry void gatherIdleTime(CkReductionMsg *msg);
26
27     entry void registerTerminalPath(PathHistory &path);
28
29  }   
30
31
32
33
34
35  message controlPointMsg { 
36          char data[];
37  };
38
39
40
41
42
43  message redistributor2DMsg {  
44         double data[]; 
45  }; 
46  
47  
48   array [2D] redistributor2D {
49    entry redistributor2D(void);
50
51    entry void startup();        
52
53     entry void resizeGranules(int, int);
54 //    entry void receiveTransposeData(int top, int left, int height, int width, int new_chare_cols, int  new_chare_rows, int which_array, double d[width*height]);
55     entry void receiveTransposeData(redistributor2DMsg *msg);
56
57   } 
58
59
60
61
62 };