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

Go to the source code of this file.

Data Structures

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)
 Also uses inactivity detection in conjunction with end time.
void POSE_registerCallBack (CkCallback cb)
 Specify an optional callback to be called when simulation terminates.
void POSE_stop ()
 Stops timer so statistics collection, callback, final output, etc.
void POSE_prepExit (void *param, void *msg)
 Exit simulation program after terminus reduction.
void POSE_exit ()
 Exit simulation program.
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)
 0 for normal forward execution; 1 for state recovery only

Variables

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
ComlibInstanceHandle POSE_commlib_insthndl
 For getting access to the commlib strategy.
POSE_Config pose_config
int comm_debug


Function Documentation

void POSE_init (  ) 

Main initialization for all of POSE.

Definition at line 31 of file pose.C.

References POSE_init(), and POSE_UnsetTS.

void POSE_init ( int  ET  ) 

Definition at line 36 of file pose.C.

References POSE_init().

void POSE_init ( int  IDflag,
int  ET 
)

Definition at line 41 of file pose.C.

References CkGetComlibInstance(), Converse::CkNumPes(), CkStartQD(), CmiWallTimer(), POSE_Config::lb_on, MemPoolID, POSE_commlib_insthndl, pose_config, POSE_Coordinator_ID, POSE_endtime, POSE_GlobalClock, POSE_GlobalTS, POSE_inactDetect, POSE_Objects, POSE_Objects_RO, POSEreadCmdLine(), ComlibInstanceHandle::setStrategy(), sim_timer, TempMemID, theGlobalStats, TheGVT, TheLBG, TheLBstrategy, theLocalStats, ThePVT, and traceRegisterUserEvent().

void POSE_startTimer (  ) 

Start POSE simulation timer.

Definition at line 132 of file pose.C.

References CmiWallTimer(), and sim_timer.

void POSE_useID (  ) 

Use Inactivity Detection to terminate program.

Definition at line 138 of file pose.C.

void POSE_useET ( POSE_TimeType  et  ) 

Also uses inactivity detection in conjunction with end time.

Definition at line 144 of file pose.C.

void POSE_registerCallBack ( CkCallback  cb  ) 

Specify an optional callback to be called when simulation terminates.

Definition at line 150 of file pose.C.

References callBack::callback, and POSE_Coordinator_ID.

void POSE_stop (  ) 

Stops timer so statistics collection, callback, final output, etc.

are not counted in simulation time.

Definition at line 159 of file pose.C.

References POSE_Coordinator_ID.

Referenced by GVT::computeGVT().

void POSE_prepExit ( void *  param,
void *  msg 
)

Exit simulation program after terminus reduction.

Definition at line 173 of file pose.C.

void POSE_exit (  ) 

Exit simulation program.

Definition at line 166 of file pose.C.

void POSE_set_busy_wait ( double  n  ) 

Set busy wait time.

Definition at line 182 of file pose.C.

References busyWait.

void POSE_busy_wait (  ) 

Busy wait for busyWait.

Definition at line 185 of file pose.C.

References busyWait, and CmiWallTimer().

void POSE_busy_wait ( double  n  ) 

Busy wait for n.

Definition at line 192 of file pose.C.

References CmiWallTimer().

CpvExtern ( int  ,
stateRecovery   
)

0 for normal forward execution; 1 for state recovery only


Variable Documentation

double busyWait

User specified busy wait time (for grainsize testing).

Definition at line 12 of file pose.C.

Referenced by POSE_busy_wait(), and POSE_set_busy_wait().

double sim_timer

Simulation start time.

Definition at line 13 of file pose.C.

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

POSE_TimeType POSE_endtime

Simulation end time.

Definition at line 15 of file pose.C.

Referenced by sim::Commit(), eventQueue::CommitEvents(), GVT::computeGVT(), POSE_init(), adapt::Step(), adapt2::Step(), adapt3::Step(), adapt4::Step(), opt2::Step(), opt3::Step(), and spec::Step().

int POSE_inactDetect

Inactivity detection flag.

Definition at line 14 of file pose.C.

Referenced by POSE_init().

POSE_TimeType POSE_GlobalClock

Global clock (for sequential simulation).

Definition at line 16 of file pose.C.

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

POSE_TimeType POSE_GlobalTS

Definition at line 17 of file pose.C.

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

ComlibInstanceHandle POSE_commlib_insthndl

For getting access to the commlib strategy.

Definition at line 19 of file pose.C.

Referenced by POSE_init().

POSE_Config pose_config

Definition at line 18 of file pose.C.

int comm_debug

Definition at line 15 of file convcomlibmanager.C.


Generated on Sun Jun 29 13:29:36 2008 for Charm++ by  doxygen 1.5.1