Scippy

UG

Ubiquity Generator framework

ParaSolverTerminationState Class Referenceabstract

class ParaSolverTerminationState (Solver termination state in a ParaSolver) More...

#include <paraSolverTerminationState.h>

Inheritance diagram for ParaSolverTerminationState:
BbParaSolverTerminationState BbParaSolverTerminationStateMpi BbParaSolverTerminationStateTh

Public Member Functions

 ParaSolverTerminationState ()
 default constructor More...
 
 ParaSolverTerminationState (int inInterrupted, int inRank, int inNParaTasksReceived, int inNParaTasksSolved, double inRunningTime, double inIdleTimeToFirstParaTask, double inIdleTimeBetweenParaTasks, double inIddleTimeAfterLastParaTask, double inIdleTimeToWaitNotificationId, double inIdleTimeToWaitAckCompletion, double inIdleTimeToWaitToken, double inDetTime)
 constructor More...
 
virtual ~ParaSolverTerminationState ()
 destructor More...
 
virtual std::string toString (ParaInitiator *initiator)=0
 stringfy ParaSolverTerminationState object More...
 
int getInterruptedMode ()
 getter of interrupted flag More...
 
double getDeterministicTime ()
 getter of deterministic time More...
 
virtual void write (gzstream::ogzstream &out)=0
 write ParaSolverTerminationState to checkpoint file More...
 
virtual bool read (ParaComm *comm, gzstream::igzstream &in)=0
 read ParaSolverTerminationState from checkpoint file More...
 
virtual void send (ParaComm *comm, int destination, int tag)=0
 send this object More...
 
virtual void receive (ParaComm *comm, int source, int tag)=0
 receive this object More...
 

Protected Attributes

int interrupted
 indicate that this solver is interrupted or not. 0: not interrupted, 1: interrupted, 2: checkpoint, 3: racing-ramp up More...
 
int rank
 
int nParaTasksReceived
 number of ParaTasks received in this ParaSolver More...
 
int nParaTasksSolved
 
double runningTime
 this solver running time More...
 
double idleTimeToFirstParaTask
 idle time to start solving the first ParaTask More...
 
double idleTimeBetweenParaTasks
 idle time between ParaTasks processing More...
 
double idleTimeAfterLastParaTask
 idle time after the last ParaTask was solved More...
 
double idleTimeToWaitNotificationId
 idle time to wait notification Id messages More...
 
double idleTimeToWaitAckCompletion
 idle time to wait ack completion message More...
 
double idleTimeToWaitToken
 
double detTime
 deterministic time, -1: should be non-deterministic More...
 

Detailed Description

class ParaSolverTerminationState (Solver termination state in a ParaSolver)

Definition at line 53 of file paraSolverTerminationState.h.

Constructor & Destructor Documentation

◆ ParaSolverTerminationState() [1/2]

default constructor

Definition at line 88 of file paraSolverTerminationState.h.

◆ ParaSolverTerminationState() [2/2]

ParaSolverTerminationState ( int  inInterrupted,
int  inRank,
int  inNParaTasksReceived,
int  inNParaTasksSolved,
double  inRunningTime,
double  inIdleTimeToFirstParaTask,
double  inIdleTimeBetweenParaTasks,
double  inIddleTimeAfterLastParaTask,
double  inIdleTimeToWaitNotificationId,
double  inIdleTimeToWaitAckCompletion,
double  inIdleTimeToWaitToken,
double  inDetTime 
)

constructor

Parameters
inInterruptedindicate that this solver is interrupted or not. 0: not interrupted, 1: interrupted 2: checkpoint, 3: racing-ramp up
inRankrank of this solver
inNParaTasksReceivednumber of ParaTasks received in this ParaSolver
inNParaTasksSolvednumber of ParaTasks solved ( received ) in this ParaSolver
inRunningTimethis solver running time
inIdleTimeToFirstParaTaskidle time to start solving the first ParaTask
inIdleTimeBetweenParaTasksidle time between ParaTasks processing
inIddleTimeAfterLastParaTaskidle time after the last ParaTask was solved
inIdleTimeToWaitNotificationIdidle time to wait notification Id messages
inIdleTimeToWaitAckCompletionidle time to wait ack completion message
inIdleTimeToWaitTokenidle time to wait token
inDetTimedeterministic time, -1: should be non-deterministic

Definition at line 108 of file paraSolverTerminationState.h.

◆ ~ParaSolverTerminationState()

virtual ~ParaSolverTerminationState ( )
virtual

destructor

Definition at line 144 of file paraSolverTerminationState.h.

Member Function Documentation

◆ getDeterministicTime()

◆ getInterruptedMode()

int getInterruptedMode ( )

◆ read()

virtual bool read ( ParaComm comm,
gzstream::igzstream &  in 
)
pure virtual

read ParaSolverTerminationState from checkpoint file

Parameters
commcommunicator used
ingzstream to input

Implemented in BbParaSolverTerminationState.

Referenced by BbParaLoadCoordinator::writePreviousStatisticsInformation().

◆ receive()

virtual void receive ( ParaComm comm,
int  source,
int  tag 
)
pure virtual

◆ send()

virtual void send ( ParaComm comm,
int  destination,
int  tag 
)
pure virtual

◆ toString()

◆ write()

virtual void write ( gzstream::ogzstream &  out)
pure virtual

write ParaSolverTerminationState to checkpoint file

Parameters
outgzstream to output

Implemented in BbParaSolverTerminationState.

Referenced by BbParaSolverPool::writeSolverStatisticsToCheckpointFile().

Member Data Documentation

◆ detTime

◆ idleTimeAfterLastParaTask

◆ idleTimeBetweenParaTasks

◆ idleTimeToFirstParaTask

◆ idleTimeToWaitAckCompletion

double idleTimeToWaitAckCompletion
protected

◆ idleTimeToWaitNotificationId

◆ idleTimeToWaitToken

◆ interrupted

◆ nParaTasksReceived

◆ nParaTasksSolved

◆ rank

◆ runningTime