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
+5
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user