]> git.sesse.net Git - stockfish/commitdiff
Remove offset in thread redistribution scheme.
authorJoost VandeVondele <Joost.VandeVondele@gmail.com>
Thu, 5 Jul 2018 16:33:18 +0000 (18:33 +0200)
committerStéphane Nicolet <cassio@free.fr>
Sat, 7 Jul 2018 08:42:06 +0000 (10:42 +0200)
doesn't have a benefit.

passed STC (8 threads):
LLR: 2.95 (-2.94,2.94) [-3.00,1.00]
Total: 19574 W: 4028 L: 3904 D: 11642
http://tests.stockfishchess.org/tests/view/5b3e48950ebc5902b9fff080

passed LTC (8 threads):
LLR: 2.96 (-2.94,2.94) [-3.00,1.00]
Total: 21293 W: 3626 L: 3506 D: 14161
http://tests.stockfishchess.org/tests/view/5b3eefd60ebc5902b9fffa81

Closes https://github.com/official-stockfish/Stockfish/pull/1667

No functional change single threaded.

src/search.cpp

index 97ad9912b6b38e21c890e462f30cca55efbacba5..7cb53fbf32064a53ff69cd97e774c56233dcd32e 100644 (file)
@@ -331,7 +331,7 @@ void Thread::search() {
       if (idx > 0)
       {
           int i = (idx - 1) % 20;
-          if (((rootDepth / ONE_PLY + rootPos.game_ply() + SkipPhase[i]) / SkipSize[i]) % 2)
+          if (((rootDepth / ONE_PLY + SkipPhase[i]) / SkipSize[i]) % 2)
               continue;  // Retry with an incremented rootDepth
       }