Interface for mpi synchronizers. More...
#include <SgMpiSynchronizer.h>
Public Member Functions | |
virtual | ~SgMpiSynchronizer () |
virtual std::string | ToNodeFilename (const std::string &filename) const =0 |
virtual bool | IsRootProcess () const =0 |
virtual void | OnStartSearch (SgUctSearch &search)=0 |
virtual void | OnEndSearch (SgUctSearch &search)=0 |
virtual void | OnThreadStartSearch (SgUctSearch &search, SgUctThreadState &state)=0 |
virtual void | OnThreadEndSearch (SgUctSearch &search, SgUctThreadState &state)=0 |
virtual void | OnSearchIteration (SgUctSearch &search, SgUctValue gameNumber, int threadId, const SgUctGameInfo &info)=0 |
virtual void | OnStartPonder ()=0 |
virtual void | OnEndPonder ()=0 |
virtual void | WriteStatistics (std::ostream &out) const =0 |
virtual void | SynchronizeUserAbort (bool &flag)=0 |
virtual void | SynchronizePassWins (bool &flag)=0 |
virtual void | SynchronizeEarlyPassPossible (bool &flag)=0 |
virtual void | SynchronizeMove (SgMove &move)=0 |
virtual void | SynchronizeValue (SgUctValue &value)=0 |
virtual void | SynchronizeSearchStatus (SgUctValue &value, bool &earlyAbort, SgUctValue &rootMoveCount)=0 |
Interface for mpi synchronizers.
Definition at line 28 of file SgMpiSynchronizer.h.
SgMpiSynchronizer::~SgMpiSynchronizer | ( | ) | [virtual] |
Definition at line 12 of file SgMpiSynchronizer.cpp.
virtual bool SgMpiSynchronizer::IsRootProcess | ( | ) | const [pure virtual] |
Implemented in SgMpiNullSynchronizer.
virtual void SgMpiSynchronizer::OnEndPonder | ( | ) | [pure virtual] |
Implemented in SgMpiNullSynchronizer.
virtual void SgMpiSynchronizer::OnEndSearch | ( | SgUctSearch & | search | ) | [pure virtual] |
Implemented in SgMpiNullSynchronizer.
virtual void SgMpiSynchronizer::OnSearchIteration | ( | SgUctSearch & | search, | |
SgUctValue | gameNumber, | |||
int | threadId, | |||
const SgUctGameInfo & | info | |||
) | [pure virtual] |
Implemented in SgMpiNullSynchronizer.
virtual void SgMpiSynchronizer::OnStartPonder | ( | ) | [pure virtual] |
Implemented in SgMpiNullSynchronizer.
virtual void SgMpiSynchronizer::OnStartSearch | ( | SgUctSearch & | search | ) | [pure virtual] |
Implemented in SgMpiNullSynchronizer.
virtual void SgMpiSynchronizer::OnThreadEndSearch | ( | SgUctSearch & | search, | |
SgUctThreadState & | state | |||
) | [pure virtual] |
Implemented in SgMpiNullSynchronizer.
virtual void SgMpiSynchronizer::OnThreadStartSearch | ( | SgUctSearch & | search, | |
SgUctThreadState & | state | |||
) | [pure virtual] |
Implemented in SgMpiNullSynchronizer.
virtual void SgMpiSynchronizer::SynchronizeEarlyPassPossible | ( | bool & | flag | ) | [pure virtual] |
Implemented in SgMpiNullSynchronizer.
virtual void SgMpiSynchronizer::SynchronizeMove | ( | SgMove & | move | ) | [pure virtual] |
Implemented in SgMpiNullSynchronizer.
virtual void SgMpiSynchronizer::SynchronizePassWins | ( | bool & | flag | ) | [pure virtual] |
Implemented in SgMpiNullSynchronizer.
virtual void SgMpiSynchronizer::SynchronizeSearchStatus | ( | SgUctValue & | value, | |
bool & | earlyAbort, | |||
SgUctValue & | rootMoveCount | |||
) | [pure virtual] |
Implemented in SgMpiNullSynchronizer.
virtual void SgMpiSynchronizer::SynchronizeUserAbort | ( | bool & | flag | ) | [pure virtual] |
Implemented in SgMpiNullSynchronizer.
virtual void SgMpiSynchronizer::SynchronizeValue | ( | SgUctValue & | value | ) | [pure virtual] |
Implemented in SgMpiNullSynchronizer.
virtual std::string SgMpiSynchronizer::ToNodeFilename | ( | const std::string & | filename | ) | const [pure virtual] |
Implemented in SgMpiNullSynchronizer.
virtual void SgMpiSynchronizer::WriteStatistics | ( | std::ostream & | out | ) | const [pure virtual] |
Implemented in SgMpiNullSynchronizer.