Stockfish 2.3 update available

Discussion of anything and everything relating to chess playing software and machines.

Moderators: hgm, Rebel, chrisw

User avatar
geots
Posts: 4790
Joined: Sat Mar 11, 2006 12:42 am

Re: Stockfish 2.3 update available

Post by geots »

Modern Times wrote:
Jim Ablett wrote:Hi Ray,

All builds are Gcc/Mingw compiler except normal Windows 64 bit SSE 4.2 which is Intel compiler.
I included the Intel version for AMD compatibility. GCC SSE4.2 compile did not run on AMD Phenom with last release.
It does now so Intel version may not be needed anymore.

Jim.
OK, that is clear now. We should all ignore the normal Windows 64 bit SSE 4.2 Intel compile. Perfect, now I can move forward.

Needs to be pulled anyway. It did not work right. The non-sse42 64bit ran at 4,884,106 nps at depth of 22. The sse42 64bit ran same at 4,760,583 nps, which means it is slower. Shouldn't be. Whereas the GCC sse42 depthed out at 5,041,968 nps. Which is the fastest- but not by enough to really matter either way. Now the 32bit showed 3,491,284 nps at same depth. You can lose a good bit if you have to use 32 bit- personally- what I am looking at says it doesn't much matter whether you use GCC sse42 x 64, or just the plain x64. You ain't gonna see any difference in actual play strengthwise either way.

gts
Modern Times
Posts: 3557
Joined: Thu Jun 07, 2012 11:02 pm

Re: Stockfish 2.3 update available

Post by Modern Times »

Yes, with the GCC SSE42 version being just 3% faster than the generic x64 version, you will never see any Elo gain because if it exists, it will be lost in the error margins. But if you are doing analysis of some sort, then by all means take the 3%.
User avatar
Werner
Posts: 2876
Joined: Wed Mar 08, 2006 10:09 pm
Location: Germany
Full name: Werner Schüle

Re: Stockfish 2.3 update available

Post by Werner »

Hi Jim,
I have some problems to understand the discussion. Can you please cofirm, which 64bit compile I can use on my core I7 pc:
stockfish-23-64-sse42-ja.exe 802.304 15.09.2012 15:05 -a--
stockfish-23-64-ja-sse42-i7.exe 815.616 15.09.2012 14:44 -a--
stockfish-23-64-ja.exe 821.760 15.09.2012 14:14 -a--
stockfish-23-w32-ja.exe 800.256 15.09.2012 10:01 -a--

Which is not ok?
Werner
User avatar
Don
Posts: 5106
Joined: Tue Apr 29, 2008 4:27 pm

Re: Stockfish 2.3 update available

Post by Don »

What has changed? We noticed that there are significant differences in 2.2.2 and this version with respect to playing characteristic.

For example, on a 1 ply search version 23 is about 30 ELO stronger when playing head to head (only 8000 games) and is over twice as fast.

That implies some evaluation improvements and either quies search performance improvements or perhaps simply startup costs have been reduced. One version of Komodo was very slow on sub 5 ply searches because we spend a lot of time obsessing over the ply 1 move list.

However 2.3 seems to retains a big speed advantage although not the 2 to 1 I see in 1 ply searches. It searches at least 1/4 ply more.

Can you tell us what the most impactful changes are?


mcostalba wrote:Thanks Jim, very kind and helpful as usual.

Just a couple of quick notes.

1) For people compiling themself the Stockfish bench signature is: 5416292 It means that if you run ./stockfish bench then it should show 5416292 nodes searched. This means that the compile is correct.

2) For people running / using under Android / iPhone with more than one thread, I'd suggest to set "Use Sleeping Threads" option. This allows to save power and battery and strength is practically the same.
Capital punishment would be more effective as a preventive measure if it were administered prior to the crime.
Paloma
Posts: 1167
Joined: Thu Dec 25, 2008 9:07 pm
Full name: Herbert L

Re: Stockfish 2.3 update available

Post by Paloma »

To compare, which hash size you used?

And what is the generic Version and what Intel compile?
I have Intel Core 2 Duo (is no sse 4.2)
It gives 4 Vers.

Code: Select all

stockfish-23-64-sse42-ja.exe    802.304   15.09.2012 15:05 -a--
stockfish-23-64-ja-sse42-i7.exe 815.616   15.09.2012 14:44 -a--
stockfish-23-64-ja.exe          821.760   15.09.2012 14:14 -a--
stockfish-23-w32-ja.exe         800.256   15.09.2012 10:01 -a-- 
See also Question from Sven here:
http://www.talkchess.com/forum/viewtopi ... 80&t=45163

regards
Last edited by Paloma on Sun Sep 16, 2012 6:45 pm, edited 1 time in total.
User avatar
Jim Ablett
Posts: 1426
Joined: Fri Jul 14, 2006 7:56 am
Location: London, England
Full name: Jim Ablett

Re: Stockfish 2.3 update available

Post by Jim Ablett »

Werner wrote:Hi Jim,
I have some problems to understand the discussion. Can you please cofirm, which 64bit compile I can use on my core I7 pc:
stockfish-23-64-sse42-ja.exe 802.304 15.09.2012 15:05 -a--
stockfish-23-64-ja-sse42-i7.exe 815.616 15.09.2012 14:44 -a--
stockfish-23-64-ja.exe 821.760 15.09.2012 14:14 -a--
stockfish-23-w32-ja.exe 800.256 15.09.2012 10:01 -a--

Which is not ok?

Hi Werner,
There were two SSE 4.2 Windows compiles. GCC version for i7 is ok, delete the other one (which was Intel) or just download again from my homepage. I have removed the bad one.

Jim.
User avatar
Werner
Posts: 2876
Joined: Wed Mar 08, 2006 10:09 pm
Location: Germany
Full name: Werner Schüle

Re: Stockfish 2.3 update available

Post by Werner »

Jim Ablett wrote:
Werner wrote:Hi Jim,
I have some problems to understand the discussion. Can you please cofirm, which 64bit compile I can use on my core I7 pc:
stockfish-23-64-sse42-ja.exe 802.304 15.09.2012 15:05 -a--
stockfish-23-64-ja-sse42-i7.exe 815.616 15.09.2012 14:44 -a--
stockfish-23-64-ja.exe 821.760 15.09.2012 14:14 -a--
stockfish-23-w32-ja.exe 800.256 15.09.2012 10:01 -a--

Which is not ok?
Hi Werner,
There were two SSE 4.2 Windows compiles. GCC version for i7 is ok, delete the other one (which was Intel) or just download again from my homepage. I have removed the bad one.
Jim.
Thanks Jim,
as I saw you deleted the red marked one now. Seems to be a bit slower...

Werner
Modern Times
Posts: 3557
Joined: Thu Jun 07, 2012 11:02 pm

Re: Stockfish 2.3 update available

Post by Modern Times »

Just download the whole 2.3 package again. All versions in that are good to go. (except for a chess960 bug which probably doesn't affect you)
Modern Times
Posts: 3557
Joined: Thu Jun 07, 2012 11:02 pm

Re: Stockfish 2.3 update available

Post by Modern Times »

mcostalba wrote:
Modern Times wrote:I don't know, Jim will have to recompile, I can't do that myself.
I'd prefer to wait some days before to ask Jim to push another fix release.

If you send me a pm with an email address I can send to you directly a version compiled by me (not fast as Jim but enough to confirm bug is fixed).
I have PM'd you.
Modern Times
Posts: 3557
Joined: Thu Jun 07, 2012 11:02 pm

Re: Stockfish 2.3 update available

Post by Modern Times »

mcostalba wrote:
Modern Times wrote:
[FEN "rkqbnnbr/pppppppp/8/8/8/8/PPPPPPPP/RKQBNNBR w HAha -"]
Thanks Ray, bug confirmed.

Could you pelase verify that with the following change to file movegen.cpp everything works?

Code: Select all

--- a/src/movegen.cpp
+++ b/src/movegen.cpp
@@ -46,7 +46,7 @@ namespace {
 
     assert(!pos.in_check());
 
-    for (Square s = kto; s != kfrom; s += (Square)(Side == KING_SIDE ? -1 : 1))
+    for (Square s = kto; s != kfrom; s += (Square)(kto > kfrom ? -1 : 1))
         if (pos.attackers_to(s) & enemies)
             return mlist;
Thanks.
Does the bug have any effect on normal chess ?