Skip to content

Commit bc3b148

Browse files
CoffeeOnesnicolet
authored andcommitted
NUMA for 9 threads or more
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
1 parent 9fff272 commit bc3b148

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ Pascal Romaret
100100
Pasquale Pigazzini (ppigazzini)
101101
Patrick Jansen (mibere)
102102
pellanda
103+
Peter Zsifkovits (CoffeeOne)
103104
Ralph Stößer (Ralph Stoesser)
104105
Raminder Singh
105106
renouve

src/thread.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ void Thread::idle_loop() {
9898
// some Windows NUMA hardware, for instance in fishtest. To make it simple,
9999
// just check if running threads are below a threshold, in this case all this
100100
// NUMA machinery is not needed.
101-
if (Options["Threads"] >= 8)
101+
if (Options["Threads"] > 8)
102102
WinProcGroup::bindThisThread(idx);
103103

104104
while (true)

src/tt.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ void TranspositionTable::clear() {
8787
threads.push_back(std::thread([this, idx]() {
8888

8989
// Thread binding gives faster search on systems with a first-touch policy
90-
if (Options["Threads"] >= 8)
90+
if (Options["Threads"] > 8)
9191
WinProcGroup::bindThisThread(idx);
9292

9393
// Each thread will zero its part of the hash table

0 commit comments

Comments
 (0)