1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-05-16 15:39:36 +00:00

Fix threads count setting

Was broken after "Optimal tune for 8 cores" patch.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba 2010-01-09 16:45:31 +01:00
parent fa7b244dc9
commit 48cfdfcc46

View file

@ -198,10 +198,14 @@ void init_uci_options() {
// Set optimal value for parameter "Minimum Split Depth" // Set optimal value for parameter "Minimum Split Depth"
// according to number of available cores. // according to number of available cores.
assert(options.find("Threads") != options.end());
assert(options.find("Minimum Split Depth") != options.end()); assert(options.find("Minimum Split Depth") != options.end());
Option& thr = options["Threads"];
Option& msd = options["Minimum Split Depth"]; Option& msd = options["Minimum Split Depth"];
thr.defaultValue = thr.currentValue = stringify(cpu_count());
if (cpu_count() >= 8) if (cpu_count() >= 8)
msd.defaultValue = msd.currentValue = stringify(7); msd.defaultValue = msd.currentValue = stringify(7);
} }