Stockfish 8 SSE (Special Edition)

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

Moderator: Ras

User avatar
MikeB
Posts: 4889
Joined: Thu Mar 09, 2006 6:34 am
Location: Pen Argyl, Pennsylvania

Re: Stockfish 8 SSE (Special Edition)

Post by MikeB »

fern wrote:wait, wait...do you have a simple exe I can download for windows 10, 32 bits?

from the stone age regards
Fern
Any takers to make a32 bit and 64 bit versions for windows? - will add them to the GitHub link if anyone can provide. I'm strictly Mac now.
User avatar
fern
Posts: 8755
Joined: Sun Feb 26, 2006 4:07 pm

Re: Stockfish 8 SSE (Special Edition)

Post by fern »

well, then your grandma has broken de rules of the OFSOB club...

Thinking in going to 16 bits regards

Fern
fantasmadel50
Posts: 113
Joined: Thu Apr 30, 2015 7:36 pm

Re: Stockfish 8 SSE (Special Edition)

Post by fantasmadel50 »

Someone who was kind enough to compile a version of sse for windows, here is a granny who uses it lol. :lol:
tpoppins
Posts: 919
Joined: Tue Nov 24, 2015 9:11 pm
Location: upstate

Re: Stockfish 8 SSE (Special Edition)

Post by tpoppins »

MikeB wrote: Any takers to make a32 bit and 64 bit versions for windows?
Compiling this is not as simple as SE was. Last two commits deleted makefiles for no apparent reason, the one before that throws up this:

Code: Select all

benchmark.o:benchmark.cpp:(.rdata$.refptr.tzbook[.refptr.tzbook]+0x0): undefined
 reference to `tzbook'
main.o:main.cpp:(.text.startup+0x277): undefined reference to `TZBook::init(std:
:__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > cons
t&)'
search.o:search.cpp:(.text+0xcee9): undefined reference to `TZBook::probe2(Posit
ion&)'
ucioption.o:ucioption.cpp:(.text+0x6ce): undefined reference to `TZBook::init(st
d::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > co
nst&)'
ucioption.o:ucioption.cpp:(.text+0xc63): undefined reference to `TZBook::set_boo
k_move2_probability(int)'
collect2.exe: error: ld returned 1 exit status
Makefile:473: recipe for target 'stockfish' failed
mingw32-make[2]: *** [stockfish] Error 1
User avatar
MikeB
Posts: 4889
Joined: Thu Mar 09, 2006 6:34 am
Location: Pen Argyl, Pennsylvania

Re: Stockfish 8 SSE (Special Edition)

Post by MikeB »

tpoppins wrote:
MikeB wrote: Any takers to make a32 bit and 64 bit versions for windows?
Compiling this is not as simple as SE was. Last two commits deleted makefiles for no apparent reason, the one before that throws up this:

Code: Select all

benchmark.o:benchmark.cpp:(.rdata$.refptr.tzbook[.refptr.tzbook]+0x0): undefined
 reference to `tzbook'
main.o:main.cpp:(.text.startup+0x277): undefined reference to `TZBook::init(std:
:__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > cons
t&)'
search.o:search.cpp:(.text+0xcee9): undefined reference to `TZBook::probe2(Posit
ion&)'
ucioption.o:ucioption.cpp:(.text+0x6ce): undefined reference to `TZBook::init(st
d::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > co
nst&)'
ucioption.o:ucioption.cpp:(.text+0xc63): undefined reference to `TZBook::set_boo
k_move2_probability(int)'
collect2.exe: error: ld returned 1 exit status
Makefile:473: recipe for target 'stockfish' failed
mingw32-make[2]: *** [stockfish] Error 1
I added the Windows makefile from the Brainfish source, it may work for you. Not sure, I do not use Windows.

https://github.com/MichaelB7/Stockfish/ ... le-Windows
tpoppins
Posts: 919
Joined: Tue Nov 24, 2015 9:11 pm
Location: upstate

Re: Stockfish 8 SSE (Special Edition)

Post by tpoppins »

It did, thank you, Michael.

Windoze bins:
TinyUpload
MediaFire

Code: Select all

stockfish-8SSE-w32-old_tp.exe .... for old Win32 systems
stockfish-8SSE-w32-sse_tp.exe .... for Win32 systems with SSE
stockfish-8SSE-x64_tp.exe ........ for old x64 systems
stockfish-8SSE-x64-popcnt_tp.exe . for 'modern' x64 systems with POPCNT

The w32 compiles have been built and tested on WinXP+SP3, the rest 
on Win7 x64 Pro. No BMI2 compile at this time.

Bench: 4735038
BTW, please remove my miserable BMI2 build from the S8se Windoze release on your GitHub pages - it has been reported to be 10% slower than the POPCNT one. :\
fantasmadel50
Posts: 113
Joined: Thu Apr 30, 2015 7:36 pm

Re: Stockfish 8 SSE (Special Edition)

Post by fantasmadel50 »

Many thanks for these compilations T Poppins, wanted to try this version sse to see that such. A doubt only I have to incorporate the cerellum of the page of the author within the book path. Muchas gracias por estas compilaciones T Poppins, queria probar esta versión sse a ver que tal. Una duda solamente le tengo que incorporar el cerellum de la pagina del autor dentro del book path.?
User avatar
MikeB
Posts: 4889
Joined: Thu Mar 09, 2006 6:34 am
Location: Pen Argyl, Pennsylvania

Re: Stockfish 8 SSE (Special Edition)

Post by MikeB »

tpoppins wrote:It did, thank you, Michael.

Windoze bins:
TinyUpload
MediaFire

Code: Select all

stockfish-8SSE-w32-old_tp.exe .... for old Win32 systems
stockfish-8SSE-w32-sse_tp.exe .... for Win32 systems with SSE
stockfish-8SSE-x64_tp.exe ........ for old x64 systems
stockfish-8SSE-x64-popcnt_tp.exe . for 'modern' x64 systems with POPCNT

The w32 compiles have been built and tested on WinXP+SP3, the rest 
on Win7 x64 Pro. No BMI2 compile at this time.

Bench: 4735038
BTW, please remove my miserable BMI2 build from the S8se Windoze release on your GitHub pages - it has been reported to be 10% slower than the POPCNT one. :\
Thanks. Added SF 8 SSE windows binaries to Github, removed the BMI2 build from the S8se Windows binaries.
User avatar
MikeB
Posts: 4889
Joined: Thu Mar 09, 2006 6:34 am
Location: Pen Argyl, Pennsylvania

Re: Stockfish 8 SSE (Special Edition)

Post by MikeB »

MikeB wrote:Stockfish 8 SE is the Special Edition of Stockfish as described here:
http://talkchess.com/forum/viewtopic.php?t=61952

So one might be wondering what is the SSE version? Back in the 80's, Pontiac came out with a Bonneville SE Edition model , but then when they came with a newer "top of the line" model Bonneville , it was the "SSE".

SSE incorporates Brainfish - more information here: http://www.zipproth.de ) , essentially, a deeply searched database of chess positions at its disposal. I created an opening based book on WCC games (available here http://talkchess.com/forum/viewtopic.php?t=61999), knowing this would give Stockfish a huge advantage against an opponent that did not have access to the same database - and we can see the results here:

Code: Select all

500 rounds and 500 games completed...
time control: 1500+50
Date: 11/06/16 : 22:29:26
500 game(s) loaded
Rank Name                  Rating   Δ     +    -     #     Σ    Σ%     W    L    D   W%    =%   OppR 
---------------------------------------------------------------------------------------------------------
   1 Stockfish SSE 110616   3160   0.0    9    9   500  337.5  67.5  212   37  251  42.4  50.2  3040 
   2 Komodo 10.2 64-bit     3040 120.8    9    9   500  162.5  32.5   37  212  251   7.4  50.2  3160 
---------------------------------------------------------------------------------------------------------
Not fair to Komodo, and that should be recognized, but it does illustrate what Stockfish what can do when it has has access to a positional database and every line it plays is in the database.

Source and Mac exe can be for here: https://github.com/MichaelB7/Stockfish

You will need to download Cerebellum_light.bin from here: http://www.zipproth.de and please be sure to enter the path AND the file name in the UCI option BookPath.
Just added a book specifically tailored for SSE and to be used in conjunction with Stockfish 8 SSe and Cerebellum Lite ( Brainfish Edition).

https://github.com/MichaelB7/Stockfish/ ... ok.bin.zip

Source: Chess database consisting over 2.5 million games, a 2.3 GB file, mostly from the last 25 years
source: http://theweekinchess.com as well the historical battles of yesteryear
source: http://www.pgnmentor.com/files.html.

The objective was to make a book with the most popular winning lines through the years. First, using pgn-extract, I extracted just the winning lines and separated them between white and black - about 750,000 games with white wins and around 600 games with black wins. Using the polyglot with the white database, made a book with just white wins where the minimum number of games were 5000. Then, alternating back forth, black, , white, performed 3 more runs , each time decreasing the number of minimum number of games required from 5000 to 1000, to 100 and then to 10 for the last pass. Then merge the two white books together, ensuring the first white book created takes priority ( listing it first) , the same with th e black books , finally merging the white and black books together. See the command line scripts below:

Polyglot first pass: polyglot make-book -min-game 5000 -only-white -pgn wwall_t4.pgn -bin wbook1.bin

Polyglot second pass: polyglot make-book -min-game 1000 -only-black -pgn bwall_t4.pgn -bin bbook1.bin

Polyglot third pass: polyglot make-book -min-game 100 -only-white -pgn wwall_t4.pgn -bin wbook2.bin

Polyglot fourth pass: polyglot make-book -min-game 10 -only-black -pgn bwall_t4.pgn -bin bbook2.bin

Polyglot fifth pass: polyglot merge-book -in1 wbook1.bin -in2 wbook2.bin -out wbook.bin

Polyglot fifth pass: polyglot merge-book -in1 wbook1.bin -in2 wbook2.bin -out wbook.bin

Polyglot sixth pass: polyglot merge-book -in1 bbook1.bin -in2 bbook2.bin -out bbook.bin

Polyglot seventh pass: polyglot merge-book -in1 wbook.bin -in2 bbook.bin -out book.bin

Results with relatively two equal engines , Stockfish 8 SSe below was only using the Cerebellum book. However, the intent is that you use this book with Stockfish 8 SSe in CONJUNCTION WITH the Cerebellum book!

Code: Select all

Rank Name                  Rating   Δ     +    -     #     Σ    Σ%     W    L    D   W%    =%   OppR 
---------------------------------------------------------------------------------------------------------
   1 Stockfish SE 110516    3118   0.0   22   22   500  286.5  57.3   98   25  377  19.6  75.4  3082 
   2 Stockfish SSE 110616   3082  36.9   22   22   500  213.5  42.7   25   98  377   5.0  75.4  3118 
---------------------------------------------------------------------------------------------------------
The book is not that big and that's by design - was just trying too guide Stockfish 8 SSe a little bit and let Cerebellum and the engine takeover relatively early.
tpoppins
Posts: 919
Joined: Tue Nov 24, 2015 9:11 pm
Location: upstate

Re: Stockfish 8 SSE (Special Edition)

Post by tpoppins »

fantasmadel50 wrote:Muchas gracias por estas compilaciones T Poppins
De nada, Diego.
fantasmadel50 wrote:Una duda solamente le tengo que incorporar el cerellum de la pagina del autor dentro del book path.?
El uso del book es el idea mayor de este motor; sin el libro es igual a la version 8SE. Brainfish esta supuesto ser mas rapido que SF regular por su tratamento de NUMA, pero si usted usa una version de 32-bit no creo que va a ver algun diferencia - una de las razones que el autor de Brainfish ofrece solo versiones de 64-bit.