Page 1 of 8

Re: CFish

Posted: Thu Sep 01, 2016 9:30 pm
by zullil
Marek Soszynski wrote:
That's the answer to where's Cfish.
But why Cfish? Why a C port of Stockfish?
Because the author, Ronald de Man, prefers to code in C. In addition, it makes the code "lighter" and perhaps also easier for compilers to optimize. Cfish is already faster than SF-dev, with fully equivalent serial search.

Re: CFish

Posted: Thu Sep 01, 2016 10:23 pm
by syzygy
Dann Corbit wrote:
Marek Soszynski wrote:
That's the answer to where's Cfish.
But why Cfish? Why a C port of Stockfish?
Why not?
Exactly.

Re: CFish

Posted: Fri Sep 02, 2016 3:16 am
by Dann Corbit
Jouni wrote:There are 2 exes 182k and 645k. Which one is correct?
The 645K one is build with Mingw GCC 6.1, and it will require bitcount instruction for your CPU.

The smaller one is built with Microsoft Visual C++ and it should run on any 64 bit CPU

I guess that the Mingw one will be faster.

Re: CFish

Posted: Fri Sep 02, 2016 5:02 am
by shrapnel
zullil wrote:Cfish is already faster than SF-dev, with fully equivalent serial search.
Hmm...will give it a shot.

Re: CFish

Posted: Fri Sep 02, 2016 3:26 pm
by Norbert Raimund Leisner
Hello Dann,

both CFish versions crash immediately on Windows 7-SP1 x64 on WinBoard-GUI 4.8.0 and Arena 3.5.1 Interface just after a few moves.

CPU
Intel Core i5 3470
Cores 4
Threads 4
Name Intel Core i5 3470
Code Name Ivy Bridge
Package Socket 1155 LGA
Technology 22nm
Specification Intel Core i5-3470 CPU @ 3.20GHz
Family 6
Extended Family 6
Model A
Extended Model 3A
Stepping 9
Revision N0
Instructions MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, Intel 64, NX, VMX, AES, AVX
Virtualization Supported, Enabled
Hyperthreading Supported, Disabled
Fan Speed 2109 RPM
Bus Speed 99.8 MHz
Stock Core Speed 3200 MHz
Stock Bus Speed 100 MHz
Average Temperature 38 °C
Caches
L1 Data Cache Size 4 x 32 KBytes
L1 Instructions Cache Size 4 x 32 KBytes
L2 Unified Cache Size 4 x 256 KBytes
L3 Unified Cache Size 6144 KBy

RAM
Memory slots
Total memory slots 2
Used memory slots 2
Free memory slots 0
Memory
Type DDR3
Size 4096 MBytes
Channels # Dual
DRAM Frequency 798.1 MHz
CAS# Latency (CL) 11 clocks
RAS# to CAS# Delay (tRCD) 11 clocks
RAS# Precharge (tRP) 11 clocks
Cycle Time (tRAS) 28 clocks
Command Rate (CR) 2T
Physical Memory
Memory Usage 48 %
Total Physical 3.71 GB
Available Physical 1.90 GB
Total Virtual 7.41 GB
Available Virtual 5.54 GB
SPD
Number Of SPD Modules 2

What is your email-address? I could send you the Arena-debug-files, of course.

Best wishes,
Norbert

Re: CFish

Posted: Fri Sep 02, 2016 5:56 pm
by leslies
same thing happens with me on windows 10.i am also using arena 3.5.1 .also on a side note i have two paths for syzygy but i can only use one or the other when using cfish.thanks leslie.shamel@sbcglobal.net

Re: CFish

Posted: Sat Sep 03, 2016 2:54 am
by syzygy
leslies wrote:same thing happens with me on windows 10.i am also using arena 3.5.1 .also on a side note i have two paths for syzygy but i can only use one or the other when using cfish.thanks leslie.shamel@sbcglobal.net
I have just fixed a bug which indeed must have caused problems after a few moves and only on Windows.

Re: CFish

Posted: Sun Sep 04, 2016 6:36 pm
by shrapnel
How to get the latest .exe ?

Re: CFish

Posted: Mon Sep 05, 2016 12:05 pm
by Dann Corbit
shrapnel wrote:How to get the latest .exe ?
Here is one:
https://www.dropbox.com/s/0zfnehxzq7ery ... er.7z?dl=0

Re: CFish

Posted: Wed Sep 07, 2016 1:06 am
by Gusev
Dann Corbit wrote:Ronald does not distribute a windows binary, so here is a CFish that comes with one:

https://www.dropbox.com/s/0zfnehxzq7ery ... er.7z?dl=0

There is a Code::Blocks project for building a generic version (it is nice because you can visually debug very easily) and there is a version I built with his makefile.

In order to use his makefile, I had to change the exe symbol name from cfish to cfish.exe
Hi Dann, I tried to follow this advice and got stuck at the message
-------------- Build: Release in cfish (compiler: GNU GCC Compiler (x64 v.6.2.0))---------------

Checking if target is up-to-date: mingw32-make.exe -q -f "D:\Users\Dmitri\Documents\CodeBlocks Projects\Cfish\Cfish-master\src\Makefile" build ARCH=x86-64-bmi2 COMP=mingw
Running command: mingw32-make.exe -f "D:\Users\Dmitri\Documents\CodeBlocks Projects\Cfish\Cfish-master\src\Makefile" build ARCH=x86-64-bmi2 COMP=mingw
mingw32-make.exe ARCH=x86-64-bmi2 COMP=mingw config-sanity
mingw32-make.exe[1]: *** No rule to make target 'config-sanity'. Stop.
mingw32-make.exe: *** [build] Error 2
The rule for config-sanity is present in the makefile,
config-sanity:
@echo ""
@echo "Config:"
@echo "debug: '$(debug)'"
and so on.
If I turn off config-sanity and try to proceed to all, I get "No rule to make target 'all'", even though here it is,
all: $(EXE) .depend
How can I overcome this problem?