Add support for Windows large pages

for users that set the needed privilige "Lock Pages in Memory"
large pages will be automatically enabled (see Readme.md).

This expert setting might improve speed, 5% - 30%, depending
on the hardware, the number of threads and hash size. More for
large hashes, large number of threads and NUMA. If the operating
system can not allocate large pages (easier after a reboot), default
allocation is used automatically. The engine log provides details.

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

fixes https://github.com/official-stockfish/Stockfish/issues/2619

No functional change
This commit is contained in:
Sami Kiminki
2020-05-04 20:49:27 +03:00
committed by Joost VandeVondele
parent 86ee4eb84d
commit d4763424d2
5 changed files with 120 additions and 2 deletions

View File

@@ -49,6 +49,7 @@ int main(int argc, char* argv[]) {
UCI::loop(argc, argv);
TT.resize(0);
Threads.set(0);
return 0;
}