Stockfish 2.3.1 update available

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

Moderator: Ras

User avatar
Jim Ablett
Posts: 2377
Joined: Fri Jul 14, 2006 7:56 am
Location: London, England
Full name: Jim Ablett

Re: Stockfish 2.3.1 update available.

Post by Jim Ablett »

mcostalba wrote:
gladius wrote: I'm seeing it crash with stockfish-231-64-ja.exe, however, with my local compile it doesn't crash. I wonder if the pgo is hitting a bug?
Yes I confirm I can reproduce the crash with Jim's 64bit binaries, both popcount and not popcount, on my Windows 7. The 32bit one seems to work instead. Moreover my local 64 bit (MSVC) compile doesn't shows this behaviour.

Jim, does it crashes for you? Try this:

Code: Select all

$ ./stockfish
Stockfish 2.3.1 by Tord Romstad, Marco Costalba and Joona Kiiski
setoption name uci_chess960 value true
position fen qnnbbrkr/pppppppp/8/8/8/8/PPPPPPPP/QNNBBRKR w HFhf - 0 0
go infinite 
Yes it crashed for me too. I found the GCC optimizations that were causing the crash. It was the Graphite loop transformation switches '-floop-interchange' , '-floop-strip-mine' & '-floop-block'. A pity really as these gave a small speedup when used.

I will recompile the 64 bit versions and post them here when done.

Jim.
mcostalba
Posts: 2684
Joined: Sat Jun 14, 2008 9:17 pm

Re: Stockfish 2.3.1 update available.

Post by mcostalba »

Jim Ablett wrote: Yes it crashed for me too. I found the GCC optimizations that were causing the crash. It was the Graphite loop transformation switches '-floop-interchange' , '-floop-strip-mine' & '-floop-block'. A pity really as these gave a small speedup when used.
Does it crashes for the Window build or also for Linux one? In the latter case could you compile me a crashing version for Linux with debug info embedded so that I could try to understand in wich part of code it crashes?

Also doe sit crashes with any of the 3 or when you enable all of them? In this case you may be could enable only the non crashing ones.
User avatar
Jim Ablett
Posts: 2377
Joined: Fri Jul 14, 2006 7:56 am
Location: London, England
Full name: Jim Ablett

Re: Stockfish 2.3.1 update available.

Post by Jim Ablett »

mcostalba wrote:
Jim Ablett wrote: Yes it crashed for me too. I found the GCC optimizations that were causing the crash. It was the Graphite loop transformation switches '-floop-interchange' , '-floop-strip-mine' & '-floop-block'. A pity really as these gave a small speedup when used.
Does it crashes for the Window build or also for Linux one? In the latter case could you compile me a crashing version for Linux with debug info embedded so that I could try to understand in wich part of code it crashes?

Also doe sit crashes with any of the 3 or when you enable all of them? In this case you may be could enable only the non crashing ones.

No problem with the Linux versions which use identical switches.
Makes me think this is a compiler bug in Mingw compiler although my Windows builds still run faster than Linux ones on same machine without graphite loop optimizations.
Anyway I have recompiled the 64 bit windows versions. Very very slightly slower than before on my machine but your mileage may vary.

https://dl.dropbox.com/u/5047625/stockfish-231-ja.zip
Mirror:
http://cl.ly/JfHE/stockfish-231-ja.zip

Jim.
User avatar
Laskos
Posts: 10948
Joined: Wed Jul 26, 2006 10:21 pm
Full name: Kai Laskos

Re: Stockfish 2.3.1 update available

Post by Laskos »

Seems same improvement as 2.3 vs. version 2.2.2, about 26 Elo points at ultra-short time control, 2.5s + 0.04s

Code: Select all

    Program                            Score       %      Elo    +   -   Draws

  1 Stockfish 2.3.1 JA 64bit       : 2152.5/4000  53.8   3226    8   8   40.5 %
  2 Stockfish 2.2.2 JA             : 1847.5/4000  46.2   3200    8   8   40.5 %
10-15 points improvement at blitz time control.

Kai
Modern Times
Posts: 3782
Joined: Thu Jun 07, 2012 11:02 pm

Re: Stockfish 2.3.1 update available.

Post by Modern Times »

Position 9 is fine now with the new compile.
User avatar
Ajedrecista
Posts: 2164
Joined: Wed Jul 13, 2011 9:04 pm
Location: Madrid, Spain.

Re: Stockfish 2.3.1 update available.

Post by Ajedrecista »

Hello Jim:
Jim Ablett wrote:
mcostalba wrote:
Jim Ablett wrote: Yes it crashed for me too. I found the GCC optimizations that were causing the crash. It was the Graphite loop transformation switches '-floop-interchange' , '-floop-strip-mine' & '-floop-block'. A pity really as these gave a small speedup when used.
Does it crashes for the Window build or also for Linux one? In the latter case could you compile me a crashing version for Linux with debug info embedded so that I could try to understand in wich part of code it crashes?

Also doe sit crashes with any of the 3 or when you enable all of them? In this case you may be could enable only the non crashing ones.

No problem with the Linux versions which use identical switches.
Makes me think this is a compiler bug in Mingw compiler although my Windows builds still run faster than Linux ones on same machine without graphite loop optimizations.
Anyway I have recompiled the 64 bit windows versions. Very very slightly slower than before on my machine but your mileage may vary.

https://dl.dropbox.com/u/5047625/stockfish-231-ja.zip
Mirror:
http://cl.ly/JfHE/stockfish-231-ja.zip

Jim.
I read this warning post from Chess2U Forum:

Stockfish
Quocvuong82 wrote:Stockfish 2.3.1 x64 JA (SSE4.2 and non SSE4.2) is bug (gen moves)
Fen: rn2k2r/pp1b1p1p/4pp2/qB6/1b1NP3/2N5/PP3PPP/R2QK2R w KQkq - 0 0
perft 5
Nodes searched : 76978078

2.3.1 w32
perft 5
Nodes searched : 73001686
I have just downloaded the package of the URL of your post I quote from, and I can only check Windows versions, 32-bit, legacy and not legacy versions, and both of them give perft(5) = 73001686 (number confirmed by JetChess 1.0.0.0). I hope that this bug in 64-bit versions is fixed with your new compiles.

Thanks to everybody that help SF to be better every day.

Regards from Spain.

Ajedrecista.
MM
Posts: 766
Joined: Sun Oct 16, 2011 11:25 am

Re: Stockfish 2.3.1 update available.

Post by MM »

Modern Times wrote:Position 9 is fine now with the new compile.

Yes, i'm running a minimatch 2.3.1 SSE42 - 2.2.2 SSE42 and there are no crashes.

In the shredder GUI, from the classic start position, 2.3.1 counts about 4/5 % knodes less than the old 2.3. I am talking about 64 bit SSE42.

Right now, after 7 minutes, at 1 core, 2.3.1 shows 1251 kn/s while 2.3 shows 1312 kn/s and it was about the same since the beginning of the analyzis.

Best Regards
MM
mcostalba
Posts: 2684
Joined: Sat Jun 14, 2008 9:17 pm

Re: Stockfish 2.3.1 update available.

Post by mcostalba »

Ajedrecista wrote: I hope that this bug in 64-bit versions is fixed with your new compiles.
I confirm new JIm's compiles are correct in all versions: 32bits, 64bits and 64+popcount

I guess we are at the end of this troubled releasing. Thanks to Jim to have worked hard at late Saturday night to fix the miscompile, thanks to Ray and all other guys to have reported bugs and verified new versions are correct.

Stockfish bench signature of this 2.3.1 version is: 5423738


That is different from 2.3, it means above the chess960 bug fix there is also a small added evaluation tweak that should increase ELO a bit (especially in the 64bit popcount version), but anyhow I do not suggest testers to redo the ongoing tests because the increase should be well within usual public lists error bars.
MM
Posts: 766
Joined: Sun Oct 16, 2011 11:25 am

Re: Stockfish 2.3.1 update available.

Post by MM »

mcostalba wrote:
Ajedrecista wrote: I hope that this bug in 64-bit versions is fixed with your new compiles.
I confirm new JIm's compiles are correct in all versions: 32bits, 64bits and 64+popcount

I guess we are at the end of this troubled releasing. Thanks to Jim to have worked hard at late Saturday night to fix the miscompile, thanks to Ray and all other guys to have reported bugs and verified new versions are correct.

Stockfish bench signature of this 2.3.1 version is: 5423738


That is different from 2.3, it means above the chess960 bug fix there is also a small added evaluation tweak that should increase ELO a bit (especially in the 64bit popcount version), but anyhow I do not suggest testers to redo the ongoing tests because the increase should be well within usual public lists error bars.
Thank you for the work.

Best Regards
MM
snino64
Posts: 35
Joined: Mon Oct 05, 2009 2:38 pm

Re: Stockfish 2.3.1 update available.

Post by snino64 »

At this level it is very difficult to improve the strength of stockfish. It was a great effort from the team of stockfish, Jim, Gary, etc., and has achieved a great improvement thanks to the collaboration of all.
Thank you very much to all