From: Marco Costalba Date: Tue, 4 Dec 2012 06:57:46 +0000 (+0100) Subject: Merge branch 'eval_cache' X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=6fa83f51889248b16f539db4ce0fe5b23f2a85d6;hp=-c Merge branch 'eval_cache' Use an eval cache instead of TT to store node position evaluations. It is already an improvment and, because it frees two TT entry slots, paves the way to extend TT to store both upper and lower bounds. After 4855 games, single thread, 15"+0.05 Mod vs Orig 1165 -920 - 2770 ELO +18 bench: 5149248 --- 6fa83f51889248b16f539db4ce0fe5b23f2a85d6 diff --combined src/thread.h index 4b0a5026,488feeb5..6c3c18af --- a/src/thread.h +++ b/src/thread.h @@@ -22,13 -22,14 +22,14 @@@ #include + #include "evaluate.h" #include "material.h" #include "movepick.h" #include "pawns.h" #include "position.h" #include "search.h" -const int MAX_THREADS = 32; +const int MAX_THREADS = 64; // Because SplitPoint::slavesMask is a uint64_t const int MAX_SPLITPOINTS_PER_THREAD = 8; struct Mutex { @@@ -108,6 -109,7 +109,7 @@@ public void wait_for_stop_or_ponderhit(); SplitPoint splitPoints[MAX_SPLITPOINTS_PER_THREAD]; + Eval::Table evalTable; MaterialTable materialTable; PawnTable pawnTable; size_t idx;