]> git.sesse.net Git - stockfish/commit
Replicate network weights only to used NUMA nodes
authorTomasz Sobczyk <tomasz.sobczyk1997@gmail.com>
Thu, 25 Jul 2024 12:37:08 +0000 (14:37 +0200)
committerJoost VandeVondele <Joost.VandeVondele@gmail.com>
Sat, 3 Aug 2024 07:41:37 +0000 (09:41 +0200)
commit8e560c4fd347514a699bde1931912834047cc835
tree94cb599453329c8f160fb0ba860449915cdf8b4b
parent2343f71f3ff524e937f81b2922705081f8907980
Replicate network weights only to used NUMA nodes

On a system with multiple NUMA nodes, this patch avoids unneeded replicated
(e.g. 8x for a single threaded run), reducting memory use in that case.

Lazy initialization forced before search.

Passed STC:
https://tests.stockfishchess.org/tests/view/66a28c524ff211be9d4ecdd4
LLR: 2.96 (-2.94,2.94) <-1.75,0.25>
Total: 691776 W: 179429 L: 179927 D: 332420
Ptnml(0-2): 2573, 79370, 182547, 78778, 2620

closes https://github.com/official-stockfish/Stockfish/pull/5515

No functional change
src/engine.cpp
src/engine.h
src/numa.h
src/search.cpp
src/search.h
src/thread.cpp
src/thread.h