Skip to content

Commit

Permalink
Update threads stack size on StackSize.
Browse files Browse the repository at this point in the history
  • Loading branch information
dpldgr committed Nov 10, 2024
1 parent 19074ea commit 98c1f07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ucioption.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ void on_clear_hash(const Option&) { Search::clear(); }
void on_hash_size(const Option& o) { TT.resize(size_t(o)); }
void on_logger(const Option& o) { start_logger(o); }
#if defined(__APPLE__) || defined(__MINGW32__) || defined(__MINGW64__) || defined(USE_PTHREADS)
void on_stack_size(const Option& o) { TH_STACK_SIZE=size_t(o)*1024*1024; }
void on_stack_size(const Option& o) { TH_STACK_SIZE = size_t(o) * 1024 * 1024; Threads.set(size_t(Options["Threads"])); }
#endif
void on_threads(const Option& o) { Threads.set(size_t(o)); }
void on_tb_path(const Option& o) { Tablebases::init(o); }
Expand Down

0 comments on commit 98c1f07

Please sign in to comment.