Cfish 8 for the MacOS

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

Moderators: hgm, Rebel, chrisw

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

Cfish 8 for the MacOS

Post by MikeB »

Cfish is a fork of Stockfish written in "C"

official Cfish source by Ronald De Man: https://github.com/syzygy1/Cfish

MB's forked CFish source for the Mac: https://github.com/MichaelB7/cfish

Cfish 8 MacOS executable: https://github.com/MichaelB7/cfish/blob ... _MacOS.zip

also available is the latest Cfish: https://github.com/MichaelB7/cfish/blob ... _MacOS.zip


Clang PGO is broken for Cfish under Sierra (10.12) , still works under ElCapitan (10.11) - at least for me. In the new makefile, "make" will build the non PGO version, "make cpro" will build a PGO version which will be about 7 to 10% faster , depending on your hardware, the day of the month, phase of the moon yada, yada :wink:

Gauntlet run below with the latest exe

Code: Select all

400 rounds and 1600 games completed...
time control: 900+15
Date: 11/05/16 : 13:19:04
4000 game(s) loaded
Rank Name                      Rating   Δ     +    -     #     Σ    Σ%     W    L    D   W%    =%   OppR 
---------------------------------------------------------------------------------------------------------
   1 Cfish 051116 64 POPCNT     3117   0.0    8    8  1600  849.5  53.1  341  242 1017  21.3  63.6  3096 
   2 Stockfish 8se              3105  12.2    8    8  1600  813.5  50.8  299  272 1029  18.7  64.3  3099 
   3 Stockfish 8 64 POPCNT      3104   0.9    8    8  1600  809.0  50.6  287  269 1044  17.9  65.2  3099 
   4 Stockfish MateFinder 8 6   3101   3.0    8    8  1600  802.0  50.1  294  290 1016  18.4  63.5  3100 
   5 Stockfish 8se-Study        3074  26.3    8    8  1600  726.0  45.4  231  379  990  14.4  61.9  3106 
---------------------------------------------------------------------------------------------------------
User avatar
MikeB
Posts: 4889
Joined: Thu Mar 09, 2006 6:34 am
Location: Pen Argyl, Pennsylvania

Re: Cfish 8 for the MacOS

Post by MikeB »

bleeding edge CF is looking pretty good...ran another gauntlet, this time with CF 8...

Code: Select all

400 rounds and 2000 games completed...
time control: 900+15
Date: 11/05/16 : 15:34:24
6000 game(s) loaded
Rank Name                      Rating   Δ     +    -     #     Σ    Σ%     W    L    D   W%    =%   OppR 
---------------------------------------------------------------------------------------------------------
   1 Cfish 051116 64 POPCNT     3115   0.0    7    7  2000 1052.5  52.6  417  312 1271  20.9  63.5  3097 
   2 Cfish 8 64 POPCNT          3107   8.4    7    7  2000 1022.0  51.1  394  350 1256  19.7  62.8  3099 
   3 Stockfish 8 64 POPCNT      3104   2.8    7    7  2000 1011.5  50.6  360  337 1303  18.0  65.2  3099 
   4 Stockfish 8se              3103   0.4    7    7  2000 1012.0  50.6  365  341 1294  18.2  64.7  3099 
   5 Stockfish MateFinder 8 6   3099   4.2    7    7  2000  997.5  49.9  366  371 1263  18.3  63.1  3100 
   6 Stockfish 8se-Study        3072  27.0    7    7  2000  904.5  45.2  294  485 1221  14.7  61.0  3106 
---------------------------------------------------------------------------------------------------------
supersharp77
Posts: 1242
Joined: Sat Jul 05, 2014 7:54 am
Location: Southwest USA

Re: Cfish 8 for the MacOS

Post by supersharp77 »

MikeB wrote:bleeding edge CF is looking pretty good...ran another gauntlet, this time with CF 8...

Code: Select all

400 rounds and 2000 games completed...
time control: 900+15
Date: 11/05/16 : 15:34:24
6000 game(s) loaded
Rank Name                      Rating   Δ     +    -     #     Σ    Σ%     W    L    D   W%    =%   OppR 
---------------------------------------------------------------------------------------------------------
   1 Cfish 051116 64 POPCNT     3115   0.0    7    7  2000 1052.5  52.6  417  312 1271  20.9  63.5  3097 
   2 Cfish 8 64 POPCNT          3107   8.4    7    7  2000 1022.0  51.1  394  350 1256  19.7  62.8  3099 
   3 Stockfish 8 64 POPCNT      3104   2.8    7    7  2000 1011.5  50.6  360  337 1303  18.0  65.2  3099 
   4 Stockfish 8se              3103   0.4    7    7  2000 1012.0  50.6  365  341 1294  18.2  64.7  3099 
   5 Stockfish MateFinder 8 6   3099   4.2    7    7  2000  997.5  49.9  366  371 1263  18.3  63.1  3100 
   6 Stockfish 8se-Study        3072  27.0    7    7  2000  904.5  45.2  294  485 1221  14.7  61.0  3106 
---------------------------------------------------------------------------------------------------------
Whats this time control your using?.....900 moves in 15 seconds?
AR :wink:
User avatar
MikeB
Posts: 4889
Joined: Thu Mar 09, 2006 6:34 am
Location: Pen Argyl, Pennsylvania

Re: Cfish 8 for the MacOS

Post by MikeB »

supersharp77 wrote:
MikeB wrote:bleeding edge CF is looking pretty good...ran another gauntlet, this time with CF 8...

Code: Select all

400 rounds and 2000 games completed...
time control: 900+15
Date: 11/05/16 : 15:34:24
6000 game(s) loaded
Rank Name                      Rating   Δ     +    -     #     Σ    Σ%     W    L    D   W%    =%   OppR 
---------------------------------------------------------------------------------------------------------
   1 Cfish 051116 64 POPCNT     3115   0.0    7    7  2000 1052.5  52.6  417  312 1271  20.9  63.5  3097 
   2 Cfish 8 64 POPCNT          3107   8.4    7    7  2000 1022.0  51.1  394  350 1256  19.7  62.8  3099 
   3 Stockfish 8 64 POPCNT      3104   2.8    7    7  2000 1011.5  50.6  360  337 1303  18.0  65.2  3099 
   4 Stockfish 8se              3103   0.4    7    7  2000 1012.0  50.6  365  341 1294  18.2  64.7  3099 
   5 Stockfish MateFinder 8 6   3099   4.2    7    7  2000  997.5  49.9  366  371 1263  18.3  63.1  3100 
   6 Stockfish 8se-Study        3072  27.0    7    7  2000  904.5  45.2  294  485 1221  14.7  61.0  3106 
---------------------------------------------------------------------------------------------------------
Whats this time control your using?.....900 moves in 15 seconds?
AR :wink:
haha - not quite that fast , using a command line GUI-less interface written by Bob Hyatt that uses centi seconds - given that Stockfish;s fishtesting uses 10 seconds with .1 second increment for STC , this is a 9 second base with a liberal 0.15 second increment :wink:
User avatar
MikeB
Posts: 4889
Joined: Thu Mar 09, 2006 6:34 am
Location: Pen Argyl, Pennsylvania

Re: Cfish 8 for the MacOS

Post by MikeB »

MikeB wrote:Cfish is a fork of Stockfish written in "C"

official Cfish source by Ronald De Man: https://github.com/syzygy1/Cfish

MB's forked CFish source for the Mac: https://github.com/MichaelB7/cfish

Cfish 8 MacOS executable: https://github.com/MichaelB7/cfish/blob ... _MacOS.zip

also available is the latest Cfish: https://github.com/MichaelB7/cfish/blob ... _MacOS.zip


Clang PGO is broken for Cfish under Sierra (10.12) , still works under ElCapitan (10.11) - at least for me. In the new makefile, "make" will build the non PGO version, "make cpro" will build a PGO version which will be about 7 to 10% faster , depending on your hardware, the day of the month, phase of the moon yada, yada :wink:

Gauntlet run below with the latest exe

Code: Select all

400 rounds and 1600 games completed...
time control: 900+15
Date: 11/05/16 : 13:19:04
4000 game(s) loaded
Rank Name                      Rating   Δ     +    -     #     Σ    Σ%     W    L    D   W%    =%   OppR 
---------------------------------------------------------------------------------------------------------
   1 Cfish 051116 64 POPCNT     3117   0.0    8    8  1600  849.5  53.1  341  242 1017  21.3  63.6  3096 
   2 Stockfish 8se              3105  12.2    8    8  1600  813.5  50.8  299  272 1029  18.7  64.3  3099 
   3 Stockfish 8 64 POPCNT      3104   0.9    8    8  1600  809.0  50.6  287  269 1044  17.9  65.2  3099 
   4 Stockfish MateFinder 8 6   3101   3.0    8    8  1600  802.0  50.1  294  290 1016  18.4  63.5  3100 
   5 Stockfish 8se-Study        3074  26.3    8    8  1600  726.0  45.4  231  379  990  14.4  61.9  3106 
---------------------------------------------------------------------------------------------------------
Just a quick update - PGO under Sierra is now working. The fix was made by moving to clang ver 3.9 under Macports and making that the default clang. Although I include Ronald's original makefile on github, I compile cFish from a custom makefile that was derived from crafty. Note this line:

Code: Select all

##### live below should be modified reflect your clang directory and version
@/opt/local/libexec/llvm-3.9/bin/llvm-profdata merge -output=engine.profdata *.profraw
The nice feature about this makefile if you have a mac is you just have to type "make cpro" at the command line in the src directory and you will have the fastest stockfish available to run on macOS. Over 5% faster than the C++ version .

Code: Select all

"bench"
===========================
Total time (ms) : 2949
Nodes searched  : 5773672
Nodes/second    : 1957840

"bench 4096 12 24" produced the fastest bench completion time to depth 24 on a 2010 Mac Pro.
===========================
Total time (ms) : 82354
Nodes searched  : 1488251422
Nodes/second    : 18071392
official Cfish source by Ronald De Man: https://github.com/syzygy1/Cfish

MB's forked CFish source for the Mac: https://github.com/MichaelB7/cfish

Cfish 8 MacOS executable: https://github.com/MichaelB7/cfish/blob ... _MacOS.zip

the latest and fastest Cfish:
https://github.com/MichaelB7/cfish/blob ... -MacOS.zip
maxdeg
Posts: 229
Joined: Thu Mar 10, 2016 6:17 pm
Location: Canada

Re: Cfish 8 for the MacOS

Post by maxdeg »

Thanks Mike !
Happy Thanksgiving !!