mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 09:47:46 +00:00
Make repeated bench runs identical
fixes https://github.com/official-stockfish/Stockfish/issues/5376 closes https://github.com/official-stockfish/Stockfish/pull/5377 No functional changes
This commit is contained in:
@@ -94,6 +94,7 @@ void TranspositionTable::resize(size_t mbSize, ThreadPool& threads) {
|
|||||||
// Initializes the entire transposition table to zero,
|
// Initializes the entire transposition table to zero,
|
||||||
// in a multi-threaded way.
|
// in a multi-threaded way.
|
||||||
void TranspositionTable::clear(ThreadPool& threads) {
|
void TranspositionTable::clear(ThreadPool& threads) {
|
||||||
|
generation8 = 0;
|
||||||
const size_t threadCount = threads.num_threads();
|
const size_t threadCount = threads.num_threads();
|
||||||
|
|
||||||
for (size_t i = 0; i < threadCount; ++i)
|
for (size_t i = 0; i < threadCount; ++i)
|
||||||
|
|||||||
Reference in New Issue
Block a user