mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-22 01:56:58 +08:00
Increase max hash size to 16GB
TCEC season 3, which is due to start in a few weeks, just had its server upgraded to 64GB RAM and will therefore allow 16GB hash to be used per engine. This is almost the upper limit without changing the type of size and hashMask. After this we need to move to uint64_t instead of uint32_t. No functional change.
This commit is contained in:
@@ -30,7 +30,7 @@ TranspositionTable TT; // Our global transposition table
|
||||
/// measured in megabytes. Transposition table consists of a power of 2 number
|
||||
/// of clusters and each cluster consists of ClusterSize number of TTEntry.
|
||||
|
||||
void TranspositionTable::set_size(size_t mbSize) {
|
||||
void TranspositionTable::set_size(uint64_t mbSize) {
|
||||
|
||||
assert(msb((mbSize << 20) / sizeof(TTEntry)) < 32);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user