MPI/Cluster implementation for Stockfish

Based on Peter Österlund's "Lazy Cluster" algorithm,
but with some simplifications.
To compile, point COMPCXX to the MPI C++ compiler wrapper (mpicxx).
This commit is contained in:
Omri Mor
2017-12-07 17:33:28 -06:00
committed by Stéphane Nicolet
parent 800031c94c
commit 29c166a072
9 changed files with 388 additions and 41 deletions
+8
View File
@@ -27,6 +27,7 @@
#include <thread>
#include <vector>
#include "cluster.h"
#include "material.h"
#include "movepick.h"
#include "pawns.h"
@@ -73,6 +74,13 @@ public:
CapturePieceToHistory captureHistory;
ContinuationHistory continuationHistory;
Score contempt;
#ifdef USE_MPI
struct {
Mutex mutex;
Cluster::TTSendBuffer<Cluster::TTSendBufferSize> buffer = {};
} ttBuffer;
#endif
};