Thanks. Now compiles fine.cdani wrote:Is far from the best solution, but you can try adding this line in tt.cpp before the use of __mingiovanni wrote: Thanks. However I tried to compile it on my ubuntu linux box and I didn't succeed:
...
for (long long i = 0; i < clusterCount * sizeof(Cluster); i += (1 << 30)) { //1GB
^
tt.cpp:107:71: error: ‘__min’ was not declared in this scope
long long j = __min((1 << 30), (clusterCount * sizeof(Cluster)) - i);
^Sure someone will understand what is happening.Code: Select all
#define __min(a,b) (((a) < (b)) ? (a) : (b))
Stockfish version with hash saving capability
Moderators: hgm, Rebel, chrisw
-
- Posts: 142
- Joined: Wed Jul 08, 2015 12:30 pm
Re: Stockfish version with hash saving capability
-
- Posts: 2204
- Joined: Sat Jan 18, 2014 10:24 am
- Location: Andorra
Re: Stockfish version with hash saving capability
Can you try this format?Rodolfo Leoni wrote: I gave it this epd (1 position) and engine still stops working.
r3kb1r/1bqn1p1p/p1Np1P2/3P4/1p6/5Q1B/PPP4P/2KR2R1 b kq - 4 20 acd 40; ce 2426; bm Bh3
Code: Select all
r3kb1r/1bqn1p1p/p1Np1P2/3P4/1p6/5Q1B/PPP4P/2KR2R1 b kq - 4 20 acd 40;; bm Bh3; ce 2426;;
Daniel José - http://www.andscacs.com
-
- Posts: 12541
- Joined: Wed Mar 08, 2006 8:57 pm
- Location: Redmond, WA USA
Re: Stockfish version with hash saving capability
I do not have this button.cdani wrote:Done:
www.andscacs.com/downloads/stockfish_x6 ... vehash.zip
It has a new option
option name LoadEpdToHash type button
First you set
HashFile
to an epd file and then press this new button.
It does what is supposed to do, but I don't know if this influences Stockfish search a lot, as I have not tried.
I hope is useful to someone.
I searched the code base for LoadEpdToHash but it found nothing.
Perhaps the new version did not get pushed to the archive?
Taking ideas is not a vice, it is a virtue. We have another word for this. It is called learning.
But sharing ideas is an even greater virtue. We have another word for this. It is called teaching.
But sharing ideas is an even greater virtue. We have another word for this. It is called teaching.
-
- Posts: 12541
- Joined: Wed Mar 08, 2006 8:57 pm
- Location: Redmond, WA USA
Re: Stockfish version with hash saving capability
Dann Corbit wrote:These are the new options that I see in the code:cdani wrote:Done:
www.andscacs.com/downloads/stockfish_x6 ... vehash.zip
It has a new option
option name LoadEpdToHash type button
First you set
HashFile
to an epd file and then press this new button.
It does what is supposed to do, but I don't know if this influences Stockfish search a lot, as I have not tried.
I hope is useful to someone.
//dani170724
o["NeverClearHash"] << Option(false);
o["HashFile"] << Option("hash.hsh", on_HashFile);
o["SaveHashtoFile"] << Option(SaveHashtoFile);
o["LoadHashfromFile"] << Option(LoadHashfromFile);
//enddani170724
I do not have this button.
I searched the code base for LoadEpdToHash but it found nothing.
Perhaps the new version did not get pushed to the archive?
Taking ideas is not a vice, it is a virtue. We have another word for this. It is called learning.
But sharing ideas is an even greater virtue. We have another word for this. It is called teaching.
But sharing ideas is an even greater virtue. We have another word for this. It is called teaching.
-
- Posts: 545
- Joined: Tue Jun 06, 2017 4:49 pm
- Location: Italy
Re: Stockfish version with hash saving capability
Hi Dann.Dann Corbit wrote:I do not have this button.cdani wrote:Done:
www.andscacs.com/downloads/stockfish_x6 ... vehash.zip
It has a new option
option name LoadEpdToHash type button
First you set
HashFile
to an epd file and then press this new button.
It does what is supposed to do, but I don't know if this influences Stockfish search a lot, as I have not tried.
I hope is useful to someone.
I searched the code base for LoadEpdToHash but it found nothing.
Perhaps the new version did not get pushed to the archive?
I have the button. It's just below the LoadFileToHash button.
F.S.I. Chess Teacher
-
- Posts: 12541
- Joined: Wed Mar 08, 2006 8:57 pm
- Location: Redmond, WA USA
Re: Stockfish version with hash saving capability
Mystery solved. I did not notice that his archive started at root folder level, so I was looking for the code and executables in the wrong place. I found an older version that he made instead.Rodolfo Leoni wrote:Hi Dann.Dann Corbit wrote:I do not have this button.cdani wrote:Done:
www.andscacs.com/downloads/stockfish_x6 ... vehash.zip
It has a new option
option name LoadEpdToHash type button
First you set
HashFile
to an epd file and then press this new button.
It does what is supposed to do, but I don't know if this influences Stockfish search a lot, as I have not tried.
I hope is useful to someone.
I searched the code base for LoadEpdToHash but it found nothing.
Perhaps the new version did not get pushed to the archive?
I have the button. It's just below the LoadFileToHash button.
Taking ideas is not a vice, it is a virtue. We have another word for this. It is called learning.
But sharing ideas is an even greater virtue. We have another word for this. It is called teaching.
But sharing ideas is an even greater virtue. We have another word for this. It is called teaching.
-
- Posts: 12541
- Joined: Wed Mar 08, 2006 8:57 pm
- Location: Redmond, WA USA
Re: Stockfish version with hash saving capability
I had to fiddle with it to make it work in a way that I understood.Dann Corbit wrote:Mystery solved. I did not notice that his archive started at root folder level, so I was looking for the code and executables in the wrong place. I found an older version that he made instead.Rodolfo Leoni wrote:Hi Dann.Dann Corbit wrote:I do not have this button.cdani wrote:Done:
www.andscacs.com/downloads/stockfish_x6 ... vehash.zip
It has a new option
option name LoadEpdToHash type button
First you set
HashFile
to an epd file and then press this new button.
It does what is supposed to do, but I don't know if this influences Stockfish search a lot, as I have not tried.
I hope is useful to someone.
I searched the code base for LoadEpdToHash but it found nothing.
Perhaps the new version did not get pushed to the archive?
I have the button. It's just below the LoadFileToHash button.
It loaded 4 million EPD rows in 22 seconds.
In the first game, it got a draw with Asmfish.
I will need a deeper pile of EPD for sure.
I saw an advantage develop for the hash loaded version, but it got slowly drained away. With only 4 million hash entries loaded, it would be pretty sparse in reality.
I figure with a billion entries in the hash, it might have a terrific advantage. Further, after it minimaxes for a while, the hash should get stronger and stronger (in theory). I imagine that a lot of good entries will get aged out of the table, though.
Taking ideas is not a vice, it is a virtue. We have another word for this. It is called learning.
But sharing ideas is an even greater virtue. We have another word for this. It is called teaching.
But sharing ideas is an even greater virtue. We have another word for this. It is called teaching.
-
- Posts: 12541
- Joined: Wed Mar 08, 2006 8:57 pm
- Location: Redmond, WA USA
Re: Stockfish version with hash saving capability
Game 2, got a pawn advantage on Komodo, but ended in a draw.
Taking ideas is not a vice, it is a virtue. We have another word for this. It is called learning.
But sharing ideas is an even greater virtue. We have another word for this. It is called teaching.
But sharing ideas is an even greater virtue. We have another word for this. It is called teaching.
-
- Posts: 2204
- Joined: Sat Jan 18, 2014 10:24 am
- Location: Andorra
Re: Stockfish version with hash saving capability
Nice first attempt!Dann Corbit wrote: It loaded 4 million EPD rows in 22 seconds.
In the first game, it got a draw with Asmfish.
I will need a deeper pile of EPD for sure.
I saw an advantage develop for the hash loaded version, but it got slowly drained away. With only 4 million hash entries loaded, it would be pretty sparse in reality.
I figure with a billion entries in the hash, it might have a terrific advantage. Further, after it minimaxes for a while, the hash should get stronger and stronger (in theory). I imagine that a lot of good entries will get aged out of the table, though.
If you want to make it load faster the epd file, you probably know that you can remove all the "sync_cout <<" lines in the source.
Also I understand that you will load the full epd file before the start of each game.
Daniel José - http://www.andscacs.com
-
- Posts: 12541
- Joined: Wed Mar 08, 2006 8:57 pm
- Location: Redmond, WA USA
Re: Stockfish version with hash saving capability
I compiled the wrong version altogether.giovanni wrote:Did you compile it on ubuntu?Dann Corbit wrote:Built fine for me.
I am going to test it this evening.
When I got the right version, I included the algorithm header and changed the macro to the template method.
I do have Ubuntu here. My 64 core box runs Ubuntu.
Taking ideas is not a vice, it is a virtue. We have another word for this. It is called learning.
But sharing ideas is an even greater virtue. We have another word for this. It is called teaching.
But sharing ideas is an even greater virtue. We have another word for this. It is called teaching.