mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 12:07:43 +00:00
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:
committed by
Stéphane Nicolet
parent
800031c94c
commit
29c166a072
@@ -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
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user