PPL Logo

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

Go to the source code of this file.

Data Structures

class  Skipped_Event
 Class for storing data of events skipped while checkpointing (for sequential simulation). More...
class  callBack
 Class for user-specified callback. More...
class  pose
 Coordinator of simulation initialization, start and termination. More...

Functions

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_prepExit (void *param, void *msg)
 Exit simulation program after terminus reduction.
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_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.
 CpvExtern (int, stateRecovery)
 Flag to indicate how foward execution should proceed.

Variables

int _POSE_SEQUENTIAL
 Whether or not pose is in sequential mode.
int totalNumPosers
 Number of posers in the poser array (POSE_Objects).
double busyWait
 User specified busy wait time (for grainsize testing).
double sim_timer
 Simulation start time.
POSE_TimeType POSE_endtime
 Simulation end time.
int POSE_inactDetect
 Inactivity detection flag.
POSE_TimeType POSE_GlobalClock
 Global clock (for sequential simulation).
POSE_TimeType POSE_GlobalTS
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).
POSE_Config pose_config


Function Documentation

void POSE_init (  ) 

Main initialization for all of POSE.

Definition at line 39 of file pose.C.

References POSE_init(), and POSE_UnsetTS.

Referenced by POSE_init().

Here is the call graph for this function:

Here is the caller graph for this function:

void POSE_init ( int  ET  ) 

Definition at line 44 of file pose.C.

References POSE_init().

Here is the call graph for this function:

void POSE_init ( int  IDflag,
int  ET 
)

void POSE_startTimer (  ) 

Start POSE simulation timer.

Definition at line 143 of file pose.C.

References CmiWallTimer(), and sim_timer.

Here is the call graph for this function:

void POSE_useID (  ) 

Use Inactivity Detection to terminate program.

Definition at line 149 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 155 of file pose.C.

void POSE_registerCallBack ( CkCallback  cb  ) 

Specify an optional callback to be called when simulation terminates.

Definition at line 161 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 170 of file pose.C.

References POSE_Coordinator_ID.

Referenced by GVT::computeGVT().

Here is the caller graph for this function:

void POSE_prepExit ( void *  param,
void *  msg 
)

Exit simulation program after terminus reduction.

Definition at line 189 of file pose.C.

void POSE_exit (  ) 

Exit simulation program.

Definition at line 177 of file pose.C.

void setPoseIndexOfStopEvent ( int  index  ) 

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

Definition at line 184 of file pose.C.

References poseIndexOfStopEvent.

void POSE_set_busy_wait ( double  n  ) 

Set busy wait time.

Definition at line 214 of file pose.C.

References busyWait.

void POSE_busy_wait (  ) 

Busy wait for busyWait.

Definition at line 217 of file pose.C.

References busyWait, and CmiWallTimer().

Here is the call graph for this function:

void POSE_busy_wait ( double  n  ) 

Busy wait for n.

Definition at line 224 of file pose.C.

References CmiWallTimer().

Here is the call graph for this function:

CpvExtern ( int  ,
stateRecovery   
)

Flag to indicate how foward execution should proceed.

0 for normal forward execution; 1 for state recovery only


Variable Documentation

Whether or not pose is in sequential mode.

Definition at line 22 of file pose.C.

Referenced by POSE_init().

Number of posers in the poser array (POSE_Objects).

Definition at line 17 of file pose.C.

Referenced by POSE_init(), and pvtObjects::StratCalcs().

double busyWait

User specified busy wait time (for grainsize testing).

Definition at line 14 of file pose.C.

Referenced by POSE_busy_wait(), and POSE_set_busy_wait().

double sim_timer

Simulation start time.

Definition at line 15 of file pose.C.

Referenced by POSE_init(), POSE_startTimer(), and pose::prepExit().

Inactivity detection flag.

Definition at line 16 of file pose.C.

Referenced by POSE_init().

Global clock (for sequential simulation).

Definition at line 19 of file pose.C.

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

Definition at line 20 of file pose.C.

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

Checkpointing (for sequential simulation).

Definition at line 23 of file pose.C.

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

Definition at line 25 of file pose.C.

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

double seqStartTime

Definition at line 27 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 28 of file pose.C.

Referenced by POSE_init(), sim::pup(), setPoseIndexOfStopEvent(), and pose::stop().

Definition at line 21 of file pose.C.


Generated on Mon Sep 21 08:11:04 2020 for Charm++ by  doxygen 1.5.5