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
+5 -1
View File
@@ -27,6 +27,7 @@
#include "tt.h"
#include "uci.h"
#include "syzygy/tbprobe.h"
#include "cluster.h"
namespace PSQT {
void init();
@@ -34,7 +35,9 @@ namespace PSQT {
int main(int argc, char* argv[]) {
std::cout << engine_info() << std::endl;
Cluster::init();
if (Cluster::is_root())
std::cout << engine_info() << std::endl;
UCI::init(Options);
PSQT::init();
@@ -49,5 +52,6 @@ int main(int argc, char* argv[]) {
UCI::loop(argc, argv);
Threads.set(0);
Cluster::finalize();
return 0;
}