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:
parent
fa7b244dc9
commit
48cfdfcc46
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue