PPL Logo

libs/ck-libs/pose/pose.C File Reference

Go to the source code of this file.

Functions

 CpvDeclare (int, stateRecovery)
 Global POSE data and functions; includes and dependencies handled here.
 CpvDeclare (eventID, theEventID)
void POSEreadCmdLine ()
const eventIDGetEventID ()
 Generates and returns unique event IDs.
void POSE_init ()
 Main initialization for all of POSE.
void POSE_init (int ET)
void POSE_init (int IDflag, int ET)
void POSE_startTimer ()
 Start POSE simulation timer.
void POSE_useID ()
 Use Inactivity Detection to terminate program.
void POSE_useET (POSE_TimeType et)
 Use a user-specified end time to terminate program.
void POSE_registerCallBack (CkCallback cb)
 Specify an optional callback to be called when simulation terminates.
void POSE_stop ()
 Stop POSE simulation.
void POSE_exit ()
 Exit simulation program.
void setPoseIndexOfStopEvent (int index)
 Set the poser index for an event to be executed when POSE detects quiescence.
void POSE_prepExit (void *param, void *msg)
 Exit simulation program after terminus reduction.
void POSE_sumGVTIterations (void *param, void *msg)
 Collect GVT iteration counts.
void POSE_set_busy_wait (double n)
 Set busy wait time.
void POSE_busy_wait ()
 Busy wait for busyWait.
void POSE_busy_wait (double n)
 Busy wait for n.
void _registerseqpose (void)

Variables

int com_debug
double busyWait
 User specified busy wait time (for grainsize testing).
double sim_timer
 Simulation start time.
int POSE_inactDetect
 Inactivity detection flag.
int totalNumPosers
 Number of posers in the poser array (POSE_Objects).
POSE_TimeType POSE_endtime
 Simulation end time.
POSE_TimeType POSE_GlobalClock
 Global clock (for sequential simulation).
POSE_TimeType POSE_GlobalTS
POSE_Config pose_config
ComlibInstanceHandle POSE_commlib_insthndl
 For getting access to the commlib strategy.
int _POSE_SEQUENTIAL
 Whether or not pose is in sequential mode.
int seqCheckpointInProgress
 Checkpointing (for sequential simulation).
POSE_TimeType seqLastCheckpointGVT
double seqLastCheckpointTime
double seqStartTime
CkQ< Skipped_EventPOSE_Skipped_Events
int poseIndexOfStopEvent
 The index of a poser that has an event that should be executed at simulation end (for sequential simulation).


Function Documentation

CpvDeclare ( int  ,
stateRecovery   
)

Global POSE data and functions; includes and dependencies handled here.

CpvDeclare ( eventID  ,
theEventID   
)

void POSEreadCmdLine (  ) 

const eventID& GetEventID (  ) 

Generates and returns unique event IDs.

Definition at line 36 of file pose.C.

References eventID::incEventID().

Referenced by eventMsg::SetSequenceNumber(), and eventMsg::Timestamp().

void POSE_init (  ) 

Main initialization for all of POSE.

Definition at line 45 of file pose.C.

References POSE_init(), and POSE_UnsetTS.

Referenced by POSE_init().

void POSE_init ( int  ET  ) 

Definition at line 50 of file pose.C.

References POSE_init().

void POSE_init ( int  IDflag,
int  ET 
)

void POSE_startTimer (  ) 

Start POSE simulation timer.

Definition at line 174 of file pose.C.

References CmiWallTimer().

void POSE_useID (  ) 

Use Inactivity Detection to terminate program.

Definition at line 180 of file pose.C.

void POSE_useET ( POSE_TimeType  et  ) 

Use a user-specified end time to terminate program.

Also uses inactivity detection in conjunction with end time

Definition at line 186 of file pose.C.

void POSE_registerCallBack ( CkCallback  cb  ) 

Specify an optional callback to be called when simulation terminates.

Definition at line 192 of file pose.C.

References callBack::callback, and POSE_Coordinator_ID.

void POSE_stop (  ) 

Stop POSE simulation.

Stops timer so statistics collection, callback, final output, etc. are not counted in simulation time.

Definition at line 201 of file pose.C.

References POSE_Coordinator_ID.

Referenced by GVT::computeGVT().

void POSE_exit (  ) 

Exit simulation program.

Definition at line 208 of file pose.C.

References POSE_Coordinator_ID.

Referenced by pose::prepExit().

void setPoseIndexOfStopEvent ( int  index  ) 

Set the poser index for an event to be executed when POSE detects quiescence.

Definition at line 215 of file pose.C.

void POSE_prepExit ( void *  param,
void *  msg 
)

Exit simulation program after terminus reduction.

Definition at line 220 of file pose.C.

References POSE_Coordinator_ID, and TheGVT.

Referenced by sim::Terminate().

void POSE_sumGVTIterations ( void *  param,
void *  msg 
)

Collect GVT iteration counts.

Definition at line 236 of file pose.C.

References POSE_Coordinator_ID.

Referenced by GVT::sumGVTIterationCounts().

void POSE_set_busy_wait ( double  n  ) 

Set busy wait time.

Definition at line 245 of file pose.C.

void POSE_busy_wait (  ) 

Busy wait for busyWait.

Definition at line 248 of file pose.C.

References CmiWallTimer().

void POSE_busy_wait ( double  n  ) 

Busy wait for n.

Definition at line 255 of file pose.C.

References CmiWallTimer().

void _registerseqpose ( void   ) 

Definition at line 326 of file pose.C.


Variable Documentation

User specified busy wait time (for grainsize testing).

Definition at line 17 of file pose.C.

Simulation start time.

Definition at line 18 of file pose.C.

Inactivity detection flag.

Definition at line 19 of file pose.C.

Number of posers in the poser array (POSE_Objects).

Definition at line 20 of file pose.C.

Referenced by pvtObjects::StratCalcs().

Global clock (for sequential simulation).

Definition at line 22 of file pose.C.

Referenced by POSE_init(), sim::SeqResumeAfterCheckpoint(), seq::Step(), and pose::stop().

Definition at line 23 of file pose.C.

Referenced by POSE_init(), and seq::Step().

For getting access to the commlib strategy.

Definition at line 26 of file pose.C.

Whether or not pose is in sequential mode.

Definition at line 28 of file pose.C.

Checkpointing (for sequential simulation).

Definition at line 29 of file pose.C.

Referenced by sim::pup(), sim::SeqBeginCheckpoint(), sim::SeqResumeAfterCheckpoint(), and seq::Step().

Definition at line 31 of file pose.C.

Referenced by sim::pup(), and seq::Step().

Definition at line 32 of file pose.C.

Referenced by sim::pup(), sim::SeqBeginCheckpoint(), sim::SeqResumeAfterCheckpoint(), and seq::Step().

Definition at line 33 of file pose.C.

Referenced by sim::pup(), sim::SeqResumeAfterCheckpoint(), and seq::Step().

The index of a poser that has an event that should be executed at simulation end (for sequential simulation).

Definition at line 34 of file pose.C.

Referenced by sim::pup().


Generated on Sat May 26 08:08:11 2012 for Charm++ by  doxygen 1.5.5