]> git.sesse.net Git - stockfish/blobdiff - src/misc.cpp
Upon changing the number of threads, make sure all threads are bound
[stockfish] / src / misc.cpp
index d815c9c41fd3dd0ac4463cd1e1a23925a8c1d478..1f543ea2eacf436fd9a394b144a778d943a8c45f 100644 (file)
@@ -293,14 +293,6 @@ int get_group(size_t idx) {
 
 void bindThisThread(size_t idx) {
 
-  // If OS already scheduled us on a different group than 0 then don't overwrite
-  // the choice, eventually we are one of many one-threaded processes running on
-  // 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 (Threads.size() < 8)
-      return;
-
   // Use only local variables to be thread-safe
   int group = get_group(idx);