Skip to content

Commit

Permalink
Update ucioption.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
dpldgr committed Nov 10, 2024
1 parent 79b173c commit 9403841
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ucioption.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ void init_variant(const Variant* v) {
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; }
#endif
void on_max_moves(const Option& o) { MAX_MOVES = size_t(o); }
void on_threads(const Option& o) { Threads.set(size_t(o)); }
void on_tb_path(const Option& o) { Tablebases::init(o); }
Expand Down Expand Up @@ -184,7 +186,9 @@ void init(OptionsMap& o) {

o["Debug Log File"] << Option("", on_logger);
o["Threads"] << Option(1, 1, 512, on_threads);
#if defined(__APPLE__) || defined(__MINGW32__) || defined(__MINGW64__) || defined(USE_PTHREADS)
o["StackSize"] << Option(8, 1, 64, on_stack_size);
#endif
o["MaxMoves"] << Option(1024, 256, 8192, on_max_moves);
o["Hash"] << Option(16, 1, MaxHashMB, on_hash_size);
o["Clear Hash"] << Option(on_clear_hash);
Expand Down

0 comments on commit 9403841

Please sign in to comment.