Adding fortran interface
[charm.git] / src / ck-cp / controlPoints.ci
1 module ControlPoints {
2
3   readonly CProxy_controlPointManager controlPointManagerProxy;
4   readonly int random_seed;
5   readonly long controlPointSamplePeriod;
6   readonly int whichTuningScheme;
7   readonly bool shouldGatherMemoryUsage;
8   readonly bool shouldGatherUtilization;
9   readonly bool shouldGatherAll;
10   readonly char CPDataFilename[512];
11
12   readonly bool shouldFilterOutputData;
13   readonly bool writeDataFileAtShutdown;
14
15   initproc void registerCPReductions(void);     
16
17
18  message controlPointMsg { 
19          char data[];
20  };
21
22
23  message redistributor2DMsg {  
24         double data[]; 
25  }; 
26  
27
28   mainchare controlPointMain {
29     entry controlPointMain(CkArgMsg*);
30   };
31
32  initnode void controlPointInitNode();
33
34  group  [migratable]  controlPointManager {
35     entry controlPointManager();
36
37     entry [expedited] void requestMemoryUsage(CkCallback cb);
38     entry [expedited] void gatherMemoryUsage(CkReductionMsg *msg);
39
40     entry [expedited] void requestIdleTime(CkCallback cb);
41     entry [expedited] void gatherIdleTime(CkReductionMsg *msg);
42
43     entry [expedited] void requestAll(CkCallback cb);
44     entry [expedited] void gatherAll(CkReductionMsg *msg);
45   
46  }   
47
48
49  
50   array [2D] redistributor2D {
51    entry redistributor2D(void);
52
53    entry void startup();        
54    
55     entry void resizeGranules(int, int);
56     entry void receiveTransposeData(redistributor2DMsg *msg);
57
58   } 
59
60
61
62
63 };