[cluster] keep track of TB hits cluster-wide.

This commit is contained in:
Joost VandeVondele
2018-12-29 15:34:57 +01:00
committed by Stéphane Nicolet
parent fb5c1f5bf5
commit 7a32d26d5f
3 changed files with 19 additions and 3 deletions
+1 -1
View File
@@ -1635,7 +1635,7 @@ string UCI::pv(const Position& pos, Depth depth, Value alpha, Value beta) {
size_t pvIdx = pos.this_thread()->pvIdx;
size_t multiPV = std::min((size_t)Options["MultiPV"], rootMoves.size());
uint64_t nodesSearched = Cluster::nodes_searched();
uint64_t tbHits = Threads.tb_hits() + (TB::RootInTB ? rootMoves.size() : 0);
uint64_t tbHits = Cluster::tb_hits() + (TB::RootInTB ? rootMoves.size() : 0);
for (size_t i = 0; i < multiPV; ++i)
{