From: Ajith Date: Fri, 30 Oct 2015 00:06:13 +0000 (-0700) Subject: Reduce variation in rootDepth between different threads X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=8d858783e1bcf4266f30614c0f69677835976a22 Reduce variation in rootDepth between different threads Reduce the variation in Root Depth between different threads. This prevents threads from searching at a depth much higher than Main Thread. Performed well at STC 24 Threads: ELO: 3.44 +-3.8 (95%) LOS: 96.1% Total: 10000 W: 1627 L: 1528 D: 6845 And LTC 24 Threads LLR: 1.43 (-2.94,2.94) [0.00,4.00] Total: 3804 W: 500 L: 420 D: 2884 ELO : +7.31 p-value: 73.16% Passed no regression at STC 3 Threads: LLR: 2.95 (-2.94,2.94) [-3.00,1.00] Total: 40457 W: 7148 L: 7060 D: 26249 And LTC 3 Threads: LLR: 2.96 (-2.94,2.94) [-3.00,1.00] Total: 17704 W: 2489 L: 2364 D: 12851 Raising a pull request early as 24 Thread tests are very expensive and this is clearly a positive gain at high thread counts and high time controls. The change is a small parameter tweak with no additional logic. No functional change for single thread mode. Resolves #481 --- diff --git a/src/search.cpp b/src/search.cpp index 77c5b2d3..fff9144d 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -376,7 +376,7 @@ void Thread::search(bool isMainThread) { { // Set up the new depth for the helper threads if (!isMainThread) - rootDepth = Threads.main()->rootDepth + Depth(int(3 * log(1 + this->idx))); + rootDepth = Threads.main()->rootDepth + Depth(int(2.2 * log(1 + this->idx))); // Age out PV variability metric if (isMainThread)