Yeszullil wrote:
Anyone know who tthsqe12 is? Is that Mohammed?
Stockfish version with hash saving capability
Moderators: hgm, Rebel, chrisw
-
- Posts: 4606
- Joined: Wed Oct 01, 2008 6:33 am
- Location: Regensburg, Germany
- Full name: Guenther Simon
Re: Stockfish version with hash saving capability
-
- Posts: 6442
- Joined: Tue Jan 09, 2007 12:31 am
- Location: PA USA
- Full name: Louis Zulli
Re: Stockfish version with hash saving capability
Thanks. I thought he had abandoned the project due to burnout.Guenther wrote:Yeszullil wrote:
Anyone know who tthsqe12 is? Is that Mohammed?
Now the TT Save/Load seem to be working properly.
-
- Posts: 12038
- Joined: Mon Jul 07, 2008 10:50 pm
Re: Stockfish version with hash saving capability
thanks for the explanation.something else I would like to know. I believe 7 pawns is mate in 12 (not found it yet) others have said 8 pawns on the board is mate in 14. is there anything unusual about that that it takes 2 moves to wipe off one pawn and get to equivalent of 7 pawns.?zullil wrote: Perhaps your expectations are unrealistic? After finding the mate-in-9, you saved the hash. So, when you reloaded that hash and searched the original position, the engine now had an exact score (mate-in-9) for that one position. I wouldn't expect that knowledge to be all that helpful in determining the evaluation of the original position. There are so many other nodes that still need to be considered.
-
- Posts: 122
- Joined: Mon Aug 18, 2014 7:12 pm
- Location: Trento (Italy)
Re: Stockfish version with hash saving capability
Hi DanielRodolfo Leoni wrote:In addition to what Daniel wrote, I'd say your engine needs its hash free and available for other uses than positions analysis. It's matter of performance. So you need the command buttons, until this system will become a structured, additional hashes one (like in Stockfish PA GTB and Critter). When done, you'll "only" need a checkbox for using the PHs, and all other tuneable setting options.duncan wrote: is there a reason why LoadHashfromFile has to be clicked for it to work, as opposed to loading by default from current directory. ?as there is a danger if you forget to click LoadHashfromFile and then save it. you can overwrite days of analysis.
Confirm that maximum hash size is 2gb?
Beyond this value I get (0kb)
-
- Posts: 3186
- Joined: Sat Feb 16, 2008 7:38 am
- Full name: Peter Martan
Re: Stockfish version with hash saving capability
zullil wrote:Can confirm that as for Fritz14 GUI and Win7x64pro (popcount- compile)Guenther wrote: Now the TT Save/Load seem to be working properly.
Peter.
-
- Posts: 6442
- Joined: Tue Jan 09, 2007 12:31 am
- Location: PA USA
- Full name: Louis Zulli
Re: Stockfish version with hash saving capability
peter wrote:Sorry, Peter. I can only confirm that the Linux version seemed to work properly from a command line.zullil wrote:Can confirm that as for Fritz14 GUI and Win7x64pro (popcount- compile)Guenther wrote: Now the TT Save/Load seem to be working properly.
What are these other things you mention? Windows? GUI?
-
- Posts: 2204
- Joined: Sat Jan 18, 2014 10:24 am
- Location: Andorra
Re: Stockfish version with hash saving capability
Didn't know that happens. I try to see the cause.Zerbinati wrote: Hi Daniel
Confirm that maximum hash size is 2gb?
Beyond this value I get (0kb)
Thanks.
Daniel José - http://www.andscacs.com
-
- Posts: 122
- Joined: Mon Aug 18, 2014 7:12 pm
- Location: Trento (Italy)
Re: Stockfish version with hash saving capability
Thanks Danielcdani wrote:Didn't know that happens. I try to see the cause.Zerbinati wrote: Hi Daniel
Confirm that maximum hash size is 2gb?
Beyond this value I get (0kb)
Thanks.
-
- Posts: 12038
- Joined: Mon Jul 07, 2008 10:50 pm
Re: Stockfish version with hash saving capability
zullil wrote: asmFish eventually found mate-in-11 from the original position. But it took a while.Code: Select all
info depth 54 seldepth 24 multipv 1 time 5491130 nps 50956798 score mate 11 nodes 279810404462 hashfull 999 tbhits 0 pv a2a4 h7h5 d2d4 c7c6 e2e4 g7g6 d4d5 g6g5 d1h5 e8d8 h5f7 c6d5 f1b5 d5e4 f7d5 d8c8 d5d7 c8b8 b5a6 b8a8 d7b7
is your nps 50956798 which is very fast and quicker than threadripper.? May I ask what sytem you are using?
-
- Posts: 2204
- Joined: Sat Jan 18, 2014 10:24 am
- Location: Andorra
Re: Stockfish version with hash saving capability
Done! Now they can work with files larger than 2 GB.
Andscacs:
www.andscacs.com/downloads/andscacs091237.zip
Stockfish:
www.andscacs.com/downloads/stockfish_x6 ... vehash.zip
Stockfish changes:
Andscacs:
www.andscacs.com/downloads/andscacs091237.zip
Stockfish:
www.andscacs.com/downloads/stockfish_x6 ... vehash.zip
Stockfish changes:
Code: Select all
bool TranspositionTable::save() {
std::ofstream b_stream(hashfilename,
std::fstream::out | std::fstream::binary);
if (b_stream)
{
//b_stream.write(reinterpret_cast<char const *>(table), clusterCount * sizeof(Cluster));
for (long long i = 0; i < clusterCount * sizeof(Cluster); i += (1 << 30)) { //1GB
long long j = __min((1 << 30), (clusterCount * sizeof(Cluster)) - i);
b_stream.write(reinterpret_cast<char const *>(table) + i, j);
}
return (b_stream.good());
}
return false;
}
void TranspositionTable::load() {
//file size: https://stackoverflow.com/questions/2409504/using-c-filestreams-fstream-how-can-you-determine-the-size-of-a-file
std::ifstream file;
file.open(hashfilename, std::ios::in | std::ios::binary);
file.ignore(std::numeric_limits<std::streamsize>::max());
std::streamsize size = file.gcount();
file.clear(); // Since ignore will have set eof.
resize(size / 1024 / 1024);
file.seekg(0, std::ios::beg);
file.read(reinterpret_cast<char *>(table), clusterCount * sizeof(Cluster));
}
Daniel José - http://www.andscacs.com