From: Marco Costalba Date: Sat, 9 Jan 2010 15:45:31 +0000 (+0100) Subject: Fix threads count setting X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=968c3de8e0acd46a8b55225dda1ed607ce24f380;ds=sidebyside Fix threads count setting Was broken after "Optimal tune for 8 cores" patch. Signed-off-by: Marco Costalba --- diff --git a/src/ucioption.cpp b/src/ucioption.cpp index 9bcd960b..9f1447e1 100644 --- a/src/ucioption.cpp +++ b/src/ucioption.cpp @@ -198,10 +198,14 @@ void init_uci_options() { // Set optimal value for parameter "Minimum Split Depth" // according to number of available cores. + assert(options.find("Threads") != options.end()); assert(options.find("Minimum Split Depth") != options.end()); + Option& thr = options["Threads"]; Option& msd = options["Minimum Split Depth"]; + thr.defaultValue = thr.currentValue = stringify(cpu_count()); + if (cpu_count() >= 8) msd.defaultValue = msd.currentValue = stringify(7); }