fixed a bug in workstealing that when stealing is in progress, beginIdle should not...
[charm.git] / src / conv-ldb / cldb.neighbor.h
1 /*****************************************************************************
2  * $Source$
3  * $Author$
4  * $Date$
5  * $Revision$
6  *****************************************************************************/
7
8 #include "cldb.h"
9 /* for sqrt() */
10 #include <math.h>
11
12 typedef struct CldNeighborData
13 {
14   int pe, load;
15 } *CldNeighborData;
16
17 typedef struct loadmsg_s {
18   char header[CmiMsgHeaderSizeBytes];
19   int pe, load;
20 } loadmsg;
21
22 /* work request message when idle */
23 typedef struct requestmsg_s {
24   char header[CmiMsgHeaderSizeBytes];
25   int from_pe;
26   int to_rank;
27 } requestmsg;
28
29 CpvDeclare(CldNeighborData, neighbors);
30 CpvDeclare(CmiGroup, neighborGroup);
31 CpvDeclare(int, numNeighbors);