class ParaSolverTerminationState (Solver termination state in a ParaSolver) More...
#include <paraSolverTerminationState.h>
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... | |
class ParaSolverTerminationState (Solver termination state in a ParaSolver)
Definition at line 53 of file paraSolverTerminationState.h.
default constructor
Definition at line 88 of file paraSolverTerminationState.h.
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
inInterrupted | indicate that this solver is interrupted or not. 0: not interrupted, 1: interrupted 2: checkpoint, 3: racing-ramp up |
inRank | rank of this solver |
inNParaTasksReceived | number of ParaTasks received in this ParaSolver |
inNParaTasksSolved | number of ParaTasks solved ( received ) in this ParaSolver |
inRunningTime | this solver running time |
inIdleTimeToFirstParaTask | idle time to start solving the first ParaTask |
inIdleTimeBetweenParaTasks | idle time between ParaTasks processing |
inIddleTimeAfterLastParaTask | idle time after the last ParaTask was solved |
inIdleTimeToWaitNotificationId | idle time to wait notification Id messages |
inIdleTimeToWaitAckCompletion | idle time to wait ack completion message |
inIdleTimeToWaitToken | idle time to wait token |
inDetTime | deterministic time, -1: should be non-deterministic |
Definition at line 108 of file paraSolverTerminationState.h.
|
virtual |
destructor
Definition at line 144 of file paraSolverTerminationState.h.
double getDeterministicTime | ( | ) |
getter of deterministic time
Definition at line 171 of file paraSolverTerminationState.h.
References ParaSolverTerminationState::detTime.
Referenced by BbParaLoadCoordinator::processRacingRampUpTagCompletionOfCalculation(), BbParaLoadCoordinator::processTagSelfSplitTermStateForInterruption(), ParaLoadCoordinator::processTagTerminated(), and BbParaLoadCoordinator::processTagTermStateForInterruption().
int getInterruptedMode | ( | ) |
getter of interrupted flag
Definition at line 161 of file paraSolverTerminationState.h.
References ParaSolverTerminationState::interrupted.
Referenced by BbParaLoadCoordinator::processTagSelfSplitTermStateForInterruption(), ParaLoadCoordinator::processTagTerminated(), and BbParaLoadCoordinator::processTagTermStateForInterruption().
|
pure virtual |
read ParaSolverTerminationState from checkpoint file
comm | communicator used |
in | gzstream to input |
Implemented in BbParaSolverTerminationState.
Referenced by BbParaLoadCoordinator::writePreviousStatisticsInformation().
|
pure virtual |
receive this object
comm | communicator used |
source | source rank |
tag | TagTerminated |
Implemented in BbParaSolverTerminationStateMpi, and BbParaSolverTerminationStateTh.
Referenced by BbParaLoadCoordinator::processRacingRampUpTagCompletionOfCalculation(), BbParaLoadCoordinator::processTagSelfSplitTermStateForInterruption(), ParaLoadCoordinator::processTagTerminated(), and BbParaLoadCoordinator::processTagTermStateForInterruption().
|
pure virtual |
send this object
comm | communicator used |
destination | destination rank |
tag | TagTerminated |
Implemented in BbParaSolverTerminationStateMpi, and BbParaSolverTerminationStateTh.
Referenced by BbParaSolver::sendCompletionOfCalculation(), BbParaSolver::sendCompletionOfCalculationWithoutSolving(), BbParaSolver::sendSolverTerminationState(), and ScipParaSolver::~ScipParaSolver().
|
pure virtual |
stringfy ParaSolverTerminationState object
initiator | pointer to ParaInitiator object |
Implemented in BbParaSolverTerminationState.
Referenced by BbParaLoadCoordinator::processRacingRampUpTagCompletionOfCalculation(), ParaLoadCoordinator::processTagTerminated(), BbParaLoadCoordinator::processTagTermStateForInterruption(), and BbParaLoadCoordinator::writePreviousStatisticsInformation().
|
pure virtual |
write ParaSolverTerminationState to checkpoint file
out | gzstream to output |
Implemented in BbParaSolverTerminationState.
Referenced by BbParaSolverPool::writeSolverStatisticsToCheckpointFile().
|
protected |
deterministic time, -1: should be non-deterministic
Definition at line 81 of file paraSolverTerminationState.h.
Referenced by BbParaSolverTerminationStateMpi::createDatatype(), BbParaSolverTerminationStateTh::createDatatype(), ParaSolverTerminationState::getDeterministicTime(), and BbParaSolverTerminationStateTh::receive().
|
protected |
idle time after the last ParaTask was solved
Definition at line 74 of file paraSolverTerminationState.h.
Referenced by BbParaSolverTerminationStateMpi::createDatatype(), BbParaSolverTerminationStateTh::createDatatype(), BbParaSolverTerminationState::read(), BbParaSolverTerminationStateTh::receive(), BbParaSolverTerminationState::toString(), and BbParaSolverTerminationState::write().
|
protected |
idle time between ParaTasks processing
Definition at line 73 of file paraSolverTerminationState.h.
Referenced by BbParaSolverTerminationStateMpi::createDatatype(), BbParaSolverTerminationStateTh::createDatatype(), BbParaSolverTerminationState::read(), BbParaSolverTerminationStateTh::receive(), BbParaSolverTerminationState::toString(), and BbParaSolverTerminationState::write().
|
protected |
idle time to start solving the first ParaTask
Definition at line 72 of file paraSolverTerminationState.h.
Referenced by BbParaSolverTerminationStateMpi::createDatatype(), BbParaSolverTerminationStateTh::createDatatype(), BbParaSolverTerminationState::read(), BbParaSolverTerminationStateTh::receive(), BbParaSolverTerminationState::toString(), and BbParaSolverTerminationState::write().
|
protected |
idle time to wait ack completion message
Definition at line 76 of file paraSolverTerminationState.h.
Referenced by BbParaSolverTerminationStateMpi::createDatatype(), BbParaSolverTerminationStateTh::createDatatype(), BbParaSolverTerminationStateTh::receive(), and BbParaSolverTerminationState::toString().
|
protected |
idle time to wait notification Id messages
Definition at line 75 of file paraSolverTerminationState.h.
Referenced by BbParaSolverTerminationStateMpi::createDatatype(), BbParaSolverTerminationStateTh::createDatatype(), BbParaSolverTerminationState::read(), BbParaSolverTerminationStateTh::receive(), BbParaSolverTerminationState::toString(), and BbParaSolverTerminationState::write().
|
protected |
Definition at line 77 of file paraSolverTerminationState.h.
Referenced by BbParaSolverTerminationStateMpi::createDatatype(), BbParaSolverTerminationStateTh::createDatatype(), BbParaSolverTerminationState::read(), BbParaSolverTerminationStateTh::receive(), BbParaSolverTerminationState::toString(), and BbParaSolverTerminationState::write().
|
protected |
indicate that this solver is interrupted or not. 0: not interrupted, 1: interrupted, 2: checkpoint, 3: racing-ramp up
Definition at line 57 of file paraSolverTerminationState.h.
Referenced by BbParaSolverTerminationStateMpi::createDatatype(), BbParaSolverTerminationStateTh::createDatatype(), ParaSolverTerminationState::getInterruptedMode(), BbParaSolverTerminationState::read(), BbParaSolverTerminationStateMpi::receive(), BbParaSolverTerminationStateTh::receive(), BbParaSolverTerminationStateMpi::send(), BbParaSolverTerminationState::toString(), and BbParaSolverTerminationState::write().
|
protected |
number of ParaTasks received in this ParaSolver
Definition at line 66 of file paraSolverTerminationState.h.
Referenced by BbParaSolverTerminationStateMpi::createDatatype(), BbParaSolverTerminationStateTh::createDatatype(), BbParaSolverTerminationState::read(), BbParaSolverTerminationStateTh::receive(), BbParaSolverTerminationState::toString(), and BbParaSolverTerminationState::write().
|
protected |
Definition at line 67 of file paraSolverTerminationState.h.
Referenced by BbParaSolverTerminationStateMpi::createDatatype(), BbParaSolverTerminationStateTh::createDatatype(), BbParaSolverTerminationState::read(), BbParaSolverTerminationStateTh::receive(), BbParaSolverTerminationState::toString(), and BbParaSolverTerminationState::write().
|
protected |
Definition at line 62 of file paraSolverTerminationState.h.
Referenced by BbParaSolverTerminationStateMpi::createDatatype(), BbParaSolverTerminationStateTh::createDatatype(), BbParaSolverTerminationState::read(), BbParaSolverTerminationStateTh::receive(), BbParaSolverTerminationState::toString(), and BbParaSolverTerminationState::write().
|
protected |
this solver running time
Definition at line 71 of file paraSolverTerminationState.h.
Referenced by BbParaSolverTerminationStateMpi::createDatatype(), BbParaSolverTerminationStateTh::createDatatype(), BbParaSolverTerminationState::read(), BbParaSolverTerminationStateTh::receive(), BbParaSolverTerminationState::toString(), and BbParaSolverTerminationState::write().