Cfish 9 is OUT!

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

Moderators: hgm, Rebel, chrisw

syzygy
Posts: 5566
Joined: Tue Feb 28, 2012 11:56 pm

Re: Cfish 9 is OUT!

Post by syzygy »

zullil wrote:Looks like you'll need to compile for yourself.
No longer!

https://github.com/syzygy1/Cfish/releases/tag/cfish_9

No binaries yet for Rustfish 9 :)
https://github.com/syzygy1/Rustfish/rel ... rustfish_9
User avatar
Eelco de Groot
Posts: 4567
Joined: Sun Mar 12, 2006 2:40 am
Full name:   

Re: Cfish 9 is OUT!

Post by Eelco de Groot »

zullil wrote:
Nordlandia wrote:What to do with makefile in order to compile it?
Assuming you have a compiler and (the utility named) make installed (and have some idea what you're doing :wink:)

Type

make help

and read about the options.
It compiled with the original makefile without problem for TDM-GCC directly out of the 'box' Here is a BMI2 Windows compile. Ah, I see Ronald has provided his own compiles now.
Debugging is twice as hard as writing the code in the first
place. Therefore, if you write the code as cleverly as possible, you
are, by definition, not smart enough to debug it.
-- Brian W. Kernighan
Andre
Posts: 98
Joined: Thu Jul 23, 2009 5:40 am

Re: Cfish 9 is OUT!

Post by Andre »

Do you know if we can build one for MacOS?
I just tried running "make build ARCH=x86-64-modern" (like I do for the master Stockfish) but I'm getting:

<...>
In file included from benchmark.c:30:
In file included from ./settings.h:4:
./numa.h:7:10: error: 'numa.h' file not found with <angled> include; use "quotes" instead
#include <numa.h>
^~~~~~~~
"numa.h"
1 error generated.
make[1]: *** [benchmark.o] Error 1
make: *** [build] Error 2

I see there's a Linux binary so I was hoping we could get one for MacOS
Thomas Zipproth
Posts: 59
Joined: Sat Jan 01, 2011 5:33 pm

Re: Cfish 9 is OUT!

Post by Thomas Zipproth »

I compared the speed of cfish_9_x64_modern_windows.exe
provided in
https://github.com/syzygy1/Cfish/releases/tag/cfish_9

with the speed of stockfish_9_x64_popcnt.exe
provided in my contribution candidates for the official Stockfish release:
www.zipproth.de/Brainfish/SF9_Windows.zip

Surprisingly, the Stockfish compile seems to be clearly faster.
I never did this comparison till now and expected CFish to be faster, perhaps someone can cross check this.
Jouni
Posts: 3291
Joined: Wed Mar 08, 2006 8:15 pm

Re: Cfish 9 is OUT!

Post by Jouni »

Also SF9 bmi is 10% faster than Cfish bmi. Some other benefits :) ? I tested in corei5 and windows.
Last edited by Jouni on Wed Jan 31, 2018 10:44 pm, edited 2 times in total.
Jouni
syzygy
Posts: 5566
Joined: Tue Feb 28, 2012 11:56 pm

Re: Cfish 9 is OUT!

Post by syzygy »

Thomas Zipproth wrote:I compared the speed of cfish_9_x64_modern_windows.exe
provided in
https://github.com/syzygy1/Cfish/releases/tag/cfish_9

with the speed of stockfish_9_x64_popcnt.exe
provided in my contribution candidates for the official Stockfish release:
www.zipproth.de/Brainfish/SF9_Windows.zip

Surprisingly, the Stockfish compile seems to be clearly faster.
I never did this comparison till now and expected CFish to be faster, perhaps someone can cross check this.
On Linux/Wine on my Sandy Bridge i7-3930K, the Cfish binary is faster.

On Linux/Wine on my Kaby Lake i7-7560U laptop, Cfish is again faster. Same for the bmi2 versions.

How are you measuring? Default bench?
syzygy
Posts: 5566
Joined: Tue Feb 28, 2012 11:56 pm

Re: Cfish 9 is OUT!

Post by syzygy »

Andre wrote:Do you know if we can build one for MacOS?
I just tried running "make build ARCH=x86-64-modern" (like I do for the master Stockfish) but I'm getting:
You could try "make build ARCH=x86-64-modern numa=no".
syzygy
Posts: 5566
Joined: Tue Feb 28, 2012 11:56 pm

Re: Cfish 9 is OUT!

Post by syzygy »

I have recompiled the binaries with -flto. Not much faster on my system, but maybe it helps on other systems.

Same link: https://github.com/syzygy1/Cfish/releases/tag/cfish_9
Thomas Zipproth
Posts: 59
Joined: Sat Jan 01, 2011 5:33 pm

Re: Cfish 9 is OUT!

Post by Thomas Zipproth »

syzygy wrote:
Thomas Zipproth wrote:I compared the speed of cfish_9_x64_modern_windows.exe
provided in
https://github.com/syzygy1/Cfish/releases/tag/cfish_9

with the speed of stockfish_9_x64_popcnt.exe
provided in my contribution candidates for the official Stockfish release:
www.zipproth.de/Brainfish/SF9_Windows.zip

Surprisingly, the Stockfish compile seems to be clearly faster.
I never did this comparison till now and expected CFish to be faster, perhaps someone can cross check this.
On Linux/Wine on my Sandy Bridge i7-3930K, the Cfish binary is faster.

On Linux/Wine on my Kaby Lake i7-7560U laptop, Cfish is again faster. Same for the bmi2 versions.

How are you measuring? Default bench?
Yes, Default bench, here are the results:


Core I7 4790k Haswell 4GHz Windows7:

cfish_9_x64_bmi2_windows.exe:
===========================
Total time (ms) : 1873
Nodes searched : 5023629
Nodes/second : 2682129

stockfish_9_x64_bmi2.exe
===========================
Total time (ms) : 1815
Nodes searched : 5023629
Nodes/second : 2767839


Core I7 3770k 3.5GHz Sandy Bridge Windows 7:

cfish_9_x64_modern_windows.exe
===========================
Total time (ms) : 2466
Nodes searched : 5023629
Nodes/second : 2037156

stockfish_9_x64_popcnt.exe
===========================
Total time (ms) : 2295
Nodes searched : 5023629
Nodes/second : 2188945
syzygy
Posts: 5566
Joined: Tue Feb 28, 2012 11:56 pm

Re: Cfish 9 is OUT!

Post by syzygy »

On my old Sandy Bridge laptop with Windows 10:

stockfish_9_x64_popcnt.exe: 1737077 nodes/second
cfish_9_x64_modern_windows.exe: 1805761 nodes/second

Compiled with gcc-7.2.0 (and without -mnative to avoid unwanted dependencies).

Interestingly, Cfish compiled on my old Windows laptop (with gcc-6.2.0) achieves 1879397 nodes/second.