Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  
Public Member Functions

SgMpiSynchronizer Class Reference

Interface for mpi synchronizers. More...

#include <SgMpiSynchronizer.h>

Inheritance diagram for SgMpiSynchronizer:
Inheritance graph
[legend]

List of all members.

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

Detailed Description

Interface for mpi synchronizers.

Note:
This class and related functions are needed for the way the cluster version of Fuego, BlueFuego, is currently implemented. The design is under dispute, because it causes intrusive changes to other classes and breaks encapsulation of their implementation. See http://sourceforge.net/apps/trac/fuego/ticket/32 for details.

Definition at line 28 of file SgMpiSynchronizer.h.


Constructor & Destructor Documentation

SgMpiSynchronizer::~SgMpiSynchronizer (  )  [virtual]

Definition at line 12 of file SgMpiSynchronizer.cpp.


Member Function Documentation

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.


The documentation for this class was generated from the following files:


Sun Mar 13 2011 Doxygen 1.7.1