Cfish 9 is OUT!

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

Moderators: hgm, Harvey Williamson, bob

Forum rules
This textbox is used to restore diagrams posted with the [d] tag before the upgrade.
zullil
Posts: 5121
Joined: Mon Jan 08, 2007 11:31 pm
Location: PA USA
Full name: Louis Zulli

Cfish 9 is OUT!

Post by zullil » Wed Jan 31, 2018 8:27 pm

and it's 15% faster than SF 9 (your mileage may vary)! And that's just for one thread. Even better with many threads on NUMA systems.

https://github.com/syzygy1/Cfish

Looks like you'll need to compile for yourself.

Hoping Mohammed returns to provide us with Asmfish 9 ...

User avatar
Nordlandia
Posts: 2166
Joined: Fri Sep 25, 2015 7:38 pm
Location: Sortland, Norway

Re: Cfish 9 is OUT!

Post by Nordlandia » Wed Jan 31, 2018 8:41 pm

What to do with makefile in order to compile it?

zullil
Posts: 5121
Joined: Mon Jan 08, 2007 11:31 pm
Location: PA USA
Full name: Louis Zulli

Re: Cfish 9 is OUT!

Post by zullil » Wed Jan 31, 2018 8:50 pm

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.

syzygy
Posts: 4374
Joined: Tue Feb 28, 2012 10:56 pm

Re: Cfish 9 is OUT!

Post by syzygy » Wed Jan 31, 2018 8:58 pm

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: 4027
Joined: Sun Mar 12, 2006 1:40 am
Location: Groningen

Re: Cfish 9 is OUT!

Post by Eelco de Groot » Wed Jan 31, 2018 9:01 pm

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: 93
Joined: Thu Jul 23, 2009 3:40 am

Re: Cfish 9 is OUT!

Post by Andre » Wed Jan 31, 2018 9:16 pm

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: 51
Joined: Sat Jan 01, 2011 4:33 pm

Re: Cfish 9 is OUT!

Post by Thomas Zipproth » Wed Jan 31, 2018 9:21 pm

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: 1937
Joined: Wed Mar 08, 2006 7:15 pm

Re: Cfish 9 is OUT!

Post by Jouni » Wed Jan 31, 2018 9:33 pm

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 9:44 pm, edited 2 times in total.
Jouni

syzygy
Posts: 4374
Joined: Tue Feb 28, 2012 10:56 pm

Re: Cfish 9 is OUT!

Post by syzygy » Wed Jan 31, 2018 9:40 pm

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: 4374
Joined: Tue Feb 28, 2012 10:56 pm

Re: Cfish 9 is OUT!

Post by syzygy » Wed Jan 31, 2018 9:43 pm

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".

Post Reply