X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fucioption.cpp;h=0e049046f9b407cc17b52d95724806de1e835977;hp=4448c1e3f94f93ba328a6346f15aa2b523fc2dee;hb=c3e964f35e3619afa7d729a928dcaa2e710ecc21;hpb=d8f683760c9eb6d2c4714ec83e717dd2143de55c diff --git a/src/ucioption.cpp b/src/ucioption.cpp index 4448c1e3..0e049046 100644 --- a/src/ucioption.cpp +++ b/src/ucioption.cpp @@ -39,7 +39,7 @@ namespace UCI { void on_clear_hash(const Option&) { Search::clear(); } void on_hash_size(const Option& o) { TT.resize(o); } void on_logger(const Option& o) { start_logger(o); } -void on_threads(const Option&) { Threads.read_uci_options(); } +void on_threads(const Option& o) { Threads.set(o); } void on_tb_path(const Option& o) { Tablebases::init(o); } @@ -59,7 +59,7 @@ void init(OptionsMap& o) { o["Debug Log File"] << Option("", on_logger); o["Contempt"] << Option(0, -100, 100); - o["Threads"] << Option(1, 1, 128, on_threads); + o["Threads"] << Option(1, 1, 512, on_threads); o["Hash"] << Option(16, 1, MaxHashMB, on_hash_size); o["Clear Hash"] << Option(on_clear_hash); o["Ponder"] << Option(false);