]> git.sesse.net Git - stockfish/commitdiff
Increase the maximum number of threads to 1024
authorJoost VandeVondele <Joost.VandeVondele@gmail.com>
Sat, 3 Sep 2022 09:15:40 +0000 (11:15 +0200)
committerJoost VandeVondele <Joost.VandeVondele@gmail.com>
Wed, 7 Sep 2022 05:31:48 +0000 (07:31 +0200)
relatively soon servers with 512 threads will be available 'quite commonly',
anticipate even more threads, and increase our current maximum from 512 to 1024.

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

No functional change.

src/ucioption.cpp

index 922fa34fe939808a51ed14658fa2d0861685bd3b..9fb48345a06044b99ab17f56c2873c9ed3886a1d 100644 (file)
@@ -61,7 +61,7 @@ void init(OptionsMap& o) {
   constexpr int MaxHashMB = Is64Bit ? 33554432 : 2048;
 
   o["Debug Log File"]        << Option("", on_logger);
-  o["Threads"]               << Option(1, 1, 512, on_threads);
+  o["Threads"]               << Option(1, 1, 1024, on_threads);
   o["Hash"]                  << Option(16, 1, MaxHashMB, on_hash_size);
   o["Clear Hash"]            << Option(on_clear_hash);
   o["Ponder"]                << Option(false);