]> git.sesse.net Git - stockfish/commitdiff
NUMA for 9 threads or more
authorPeter Zsifkovits <peter.zsifkovits@gmx.at>
Tue, 4 Sep 2018 11:36:42 +0000 (13:36 +0200)
committerStéphane Nicolet <cassio@free.fr>
Thu, 25 Oct 2018 21:03:25 +0000 (23:03 +0200)
Enable numa machinery only for STRICTLY MORE than 8 threads. Reason for this
change is that nowadays SMP tests are always done with 8 threads. That is a
problem for multi-socket Windows machines running on fishtest.

No functional change

AUTHORS
src/thread.cpp
src/tt.cpp

diff --git a/AUTHORS b/AUTHORS
index ba3744794536b3ac0399a7cb227017204e3d981a..04fc7d0fb0b432411fac19d7dedbd2ffa317519a 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -100,6 +100,7 @@ Pascal Romaret
 Pasquale Pigazzini (ppigazzini)
 Patrick Jansen (mibere)
 pellanda
+Peter Zsifkovits (CoffeeOne)
 Ralph Stößer (Ralph Stoesser)
 Raminder Singh
 renouve
index ed7c5f336fe2c2efb1ba44874b97f8f23bd2fc73..42c259685e4620da901778bce753d73cb723f1fa 100644 (file)
@@ -98,7 +98,7 @@ void Thread::idle_loop() {
   // some Windows NUMA hardware, for instance in fishtest. To make it simple,
   // just check if running threads are below a threshold, in this case all this
   // NUMA machinery is not needed.
-  if (Options["Threads"] >= 8)
+  if (Options["Threads"] > 8)
       WinProcGroup::bindThisThread(idx);
 
   while (true)
index 98d593658689db431e735eb2a9484983399bdd8d..4780e2d3424d110baea5b3dff69b58ec9a9679c2 100644 (file)
@@ -87,7 +87,7 @@ void TranspositionTable::clear() {
       threads.push_back(std::thread([this, idx]() {
 
           // Thread binding gives faster search on systems with a first-touch policy
-          if (Options["Threads"] >= 8)
+          if (Options["Threads"] > 8)
               WinProcGroup::bindThisThread(idx);
 
           // Each thread will zero its part of the hash table