charm AT lists.siebelschool.illinois.edu
Subject: Charm++ parallel programming system
List archive
- From: Phil Miller <mille121 AT illinois.edu>
- To: Sabrina Bergoch <sabrinabms AT gmail.com>
- Cc: "charm AT cs.uiuc.edu" <charm AT cs.uiuc.edu>
- Subject: Re: [charm] problem with cpuTime
- Date: Sun, 7 Dec 2014 14:31:41 -0600
- List-archive: <http://lists.cs.uiuc.edu/pipermail/charm/>
- List-id: CHARM parallel programming system <charm.cs.uiuc.edu>
To limit memory consumption of the load balancing statistics database, this field is only included conditionally:
// From src/ck-ldb/lbdb.h
typedef struct {
LDObjHandle handle;
LBRealType wallTime;
#if CMK_LB_CPUTIMER
LBRealType cpuTime; // <===== Note that this is compiled conditionally
#endif
#if ! COMPRESS_LDB
LBRealType minWall, maxWall;
#endif
bool migratable;
bool asyncArrival;
#if CMK_LB_USER_DATA
LBObjUserData userData;
#endif
// An encoded approximation of the amount of data the object would pack;
// call pup_decodeSize(pupSize) to get the actual approximate value
CmiUInt2 pupSize;
inline const LDOMHandle &omHandle() const { return handle.omhandle; }
inline const LDOMid &omID() const { return handle.omhandle.id; }
inline const LDObjid &objID() const { return handle.id; }
inline const LDObjid &id() const { return handle.id; }
inline void pup(PUP::er &p);
#if CMK_LB_USER_DATA
void* getUserData(int idx) { return userData.getData(idx); }
#endif
} LDObjData;
LDObjHandle handle;
LBRealType wallTime;
#if CMK_LB_CPUTIMER
LBRealType cpuTime; // <===== Note that this is compiled conditionally
#endif
#if ! COMPRESS_LDB
LBRealType minWall, maxWall;
#endif
bool migratable;
bool asyncArrival;
#if CMK_LB_USER_DATA
LBObjUserData userData;
#endif
// An encoded approximation of the amount of data the object would pack;
// call pup_decodeSize(pupSize) to get the actual approximate value
CmiUInt2 pupSize;
inline const LDOMHandle &omHandle() const { return handle.omhandle; }
inline const LDOMid &omID() const { return handle.omhandle.id; }
inline const LDObjid &objID() const { return handle.id; }
inline const LDObjid &id() const { return handle.id; }
inline void pup(PUP::er &p);
#if CMK_LB_USER_DATA
void* getUserData(int idx) { return userData.getData(idx); }
#endif
} LDObjData;
On Sun, Dec 7, 2014 at 2:26 PM, Sabrina Bergoch <sabrinabms AT gmail.com> wrote:
Hi,In Load balancer Database has the objData field, that is LDObjData type. I would like to print de wallTime and cpuTime, I succeeded only with wallTime, with cpuTime the following message appears:SbmsLB.C: In member function 'virtual void SbmsLB::work(BaseLB::LDStats*)':
SbmsLB.C:62:37: error: 'struct LDObjData' has no member named 'cpuTime'
I could not identify what is missing. Do you have any suggestion?
Thank you.
_______________________________________________
charm mailing list
charm AT cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/charm
- [charm] problem with cpuTime, Sabrina Bergoch, 12/07/2014
- Re: [charm] problem with cpuTime, Phil Miller, 12/07/2014
- Re: [charm] problem with cpuTime, Sabrina Bergoch, 12/15/2014
- Re: [charm] problem with cpuTime, Phil Miller, 12/15/2014
- Re: [charm] problem with cpuTime, Sabrina Bergoch, 12/15/2014
- Re: [charm] problem with cpuTime, Phil Miller, 12/07/2014
Archive powered by MHonArc 2.6.16.