X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fucioption.cpp;h=1778c7182a52f56de7209e19a79af8b90cc17feb;hp=d83bac6d2ba6bff90640912f691d16c62cdee274;hb=9369f4963d9376820cb5ca4bad66b86e67b0a010;hpb=42b48b08e81b55e385e55b3074b7c59d81809a45 diff --git a/src/ucioption.cpp b/src/ucioption.cpp index d83bac6d..1778c718 100644 --- a/src/ucioption.cpp +++ b/src/ucioption.cpp @@ -54,11 +54,13 @@ bool CaseInsensitiveLess::operator() (const string& s1, const string& s2) const void init(OptionsMap& o) { + const int MaxHashMB = Is64Bit ? 1024 * 1024 : 2048; + o["Write Debug Log"] << Option(false, on_logger); o["Contempt"] << Option(0, -100, 100); o["Min Split Depth"] << Option(0, 0, 12, on_threads); o["Threads"] << Option(1, 1, MAX_THREADS, on_threads); - o["Hash"] << Option(16, 1, 1024 * 1024, on_hash_size); + o["Hash"] << Option(16, 1, MaxHashMB, on_hash_size); o["Clear Hash"] << Option(on_clear_hash); o["Ponder"] << Option(true); o["MultiPV"] << Option(1, 1, 500);