From 3dc9f952253050627ca3fa14302a3edb4f991d32 Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Sun, 27 Dec 2009 00:44:08 +0100 Subject: [PATCH] Set maximum hash table size to 2GB We cannot allocate more then 2 GB, so let the limit reflect this. Signed-off-by: Marco Costalba --- src/tt.cpp | 2 +- src/ucioption.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tt.cpp b/src/tt.cpp index a8aa1b65..1b2ae720 100644 --- a/src/tt.cpp +++ b/src/tt.cpp @@ -55,7 +55,7 @@ TranspositionTable::~TranspositionTable() { void TranspositionTable::set_size(unsigned mbSize) { - assert(mbSize >= 4 && mbSize <= 4096); + assert(mbSize >= 4 && mbSize <= 2048); unsigned newSize = 1024; diff --git a/src/ucioption.cpp b/src/ucioption.cpp index 2185edf0..c99644f2 100644 --- a/src/ucioption.cpp +++ b/src/ucioption.cpp @@ -123,7 +123,7 @@ namespace { o["Minimum Split Depth"] = Option(4, 4, 7); o["Maximum Number of Threads per Split Point"] = Option(5, 4, 8); o["Threads"] = Option(1, 1, 8); - o["Hash"] = Option(32, 4, 4096); + o["Hash"] = Option(32, 4, 2048); o["Clear Hash"] = Option(false, BUTTON); o["New Game"] = Option(false, BUTTON); o["Ponder"] = Option(true); -- 2.39.2