Crafty 25.3 Release

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

Moderators: bob, hgm, Harvey Williamson

Forum rules
This textbox is used to restore diagrams posted with the [d] tag before the upgrade.
MikeB
Posts: 3398
Joined: Thu Mar 09, 2006 5:34 am
Location: Pen Argyl, Pennsylvania

Crafty 25.3 Release

Post by MikeB » Sat Aug 17, 2019 5:21 pm

The official Crafty has been updated by Bob Hyatt to address two significant bugs:

Code: Select all

 *    25.3   Two bugs fixed that were significant.  First, the older syzygy    *
 *           probe code I was using had some sort of bug it seems.  I replaced *
 *           it with the most recent and that solved tb probe failures dealing *
 *           with an enpassant capture that was the only legal move.  Once     *
 *           that was fixed, I then found that I had not factored in the       *
 *           captured piece = pawn for EP captures (where I was calling the    *
 *           probe code).  This caused a new bug once the tbprobe.c code was   *
 *           updated.  That is now fixed also, leaving everything working as   *
 *           it should, so far as I know through a lot of testing.             *
Also with the changes, Crafty now supports 7 man syzygy and will even tell you if you have an incomplete tablebase as it told me.

Code: Select all

Mac-Pro:cluster.mfb michaelbyrne$ crafty
unable to open book file [./book.bin].
book is disabled
hash table memory = 256M bytes (16M entries).
pawn hash table memory = 12M bytes (512K entries).
Incomplete tablebase file KRRBBvKN..rtbz
info string Incomplete tablebase file KRRBBvKN..rtbz
SYZYGY EGTB access enabled, 7 piece TBs found
max threads set to 12.
book file disabled.
do not offer draws
decline draw offers
noise level set to 0.00 seconds.
pondering enabled.
disabled resignations.
I am honored to host the official crafty source as a courtesy to Bob since he has retired, as most of you know, and is no longer able to host his source on the UAB University servers.

The "Play by Elo" Crafty version will continue as a separate branch which I will update in the near future - but I cannot today as I will be off to a wedding in few hours.

If those who are to compile crafty 25.3 for Windows , 64bit, 32 bit with bmi2, popcnt and plain - that would be greatly appreciated

You may drop off the executables below and I will gather them and make a release on Github from the compiled versions.

https://www.dropbox.com/request/OM3yOz4Qvb4XLUSQpcwh

Please note that Crafty should only be used with "real cores" and when you compile crafty, that's setting can be adjusted in the makefile "-DCPUS=x", where x represents the number of real cores on your computer.

SOURCE:
https://github.com/MichaelB7/Crafty

MikeB
Posts: 3398
Joined: Thu Mar 09, 2006 5:34 am
Location: Pen Argyl, Pennsylvania

Re: Crafty 25.3 Release

Post by MikeB » Sat Aug 17, 2019 5:29 pm

crafty 25.3 bench with 12 cores on a 2010 Mac Pro

Code: Select all

Mac-Pro:crafty-25-4 michaelbyrne$ crafty
unable to open book file [./book.bin].
book is disabled
unable to open book file [./books.bin].

Crafty v25.3

machine has 24 processors

White(1): ponder off
pondering disabled.
White(1): smp -1
smp processor affinity disabled.
White(1): mt 12
max threads set to 12.
White(1): bench
Running serial benchmark. . .
pos:  1(17.9M)  2(31.7M)  3(28.4M)  4(29.4M)  5(23.3M)  6(34.5M)  7(42.0M) 
pos:  8(13.9M)  9(21.2M) 10(10.6M) 11(18.7M) 12(17.3M) 13(8.1M) 14(27.3M) 
pos: 15(54.7M) 16(20.1M) 17(13.7M) 18(38.1M) 19(35.3M) 20(9.9M) 21(24.7M) 
pos: 22(25.3M) 23(28.4M) 24(28.7M) 25(37.2M) 26(13.8M) 27(17.9M) 28(26.3M) 
pos: 29(16.0M) 30(14.3M) 31(26.4M) 32(27.5M) 33(34.6M) 34(18.3M) 35(8.5M) 
pos: 36(29.3M) 37(10.4M) 38(25.0M) 39(43.0M) 40(17.2M) 41(19.9M) 42(46.5M) 
pos: 43(30.5M) 44(40.1M) 45(16.2M) 46(41.0M) 47(34.6M) 48(23.7M) 49(11.1M) 
pos: 50(23.9M) 51(34.7M) 52(25.6M) 53(23.9M) 54(1.1M) 55(20.5M) 56(13.4M) 
pos: 57(5.2M) 58(23.4M) 59(22.2M) 60(19.2M) 61(24.4M) 62(11.5M) 63(27.3M) 
pos: 64(30.4M) 

Total nodes: 397905229
Raw nodes per second: 31806972
Total elapsed time: 12.51

User avatar
Graham Banks
Posts: 33022
Joined: Sun Feb 26, 2006 9:52 am
Location: Auckland, NZ

Re: Crafty 25.3 Release

Post by Graham Banks » Sat Aug 17, 2019 9:05 pm

This is great news!
Thanks to Bob and yourself. :)
My email addresses:
gbanksnz at gmail.com
gbanksnz at yahoo.co.nz

MikeB
Posts: 3398
Joined: Thu Mar 09, 2006 5:34 am
Location: Pen Argyl, Pennsylvania

Re: Crafty 25.3 Release

Post by MikeB » Mon Aug 19, 2019 2:49 am

Graham Banks wrote:
Sat Aug 17, 2019 9:05 pm
This is great news!
Thanks to Bob and yourself. :)
Thanks Graham- but the all the credit goes to Bob. Sort of hoping he gets the CC bug back - maybe not full tilt, but just enough to make things interesting.

menniepals
Posts: 224
Joined: Wed Mar 08, 2006 7:31 pm
Location: Houston, Texas

Re: Crafty 25.3 Release

Post by menniepals » Mon Aug 19, 2019 6:04 am

Any executable please?

Dann Corbit
Posts: 10000
Joined: Wed Mar 08, 2006 7:57 pm
Location: Redmond, WA USA
Contact:

Re: Crafty 25.3 Release

Post by Dann Corbit » Mon Aug 19, 2019 11:17 pm

I made a code::blocks project that will build crafty using gcc on Windows. The project and a 64 bit binary are included in this archive:
https://drive.google.com/open?id=1hxNqX ... wvrGSPXbbz

I set the following defines:
Z_PREFIX
CPUS=64
EPD=1
INLINEASM=1
SYZYGY=1
T_INDEX64=1
_M_AMD64=1
_WIN32=1
_WIN64=1
__SSE4_2__=1


I do not know if these are optimal. If you don't have SSE 4.2 on your computer, then the binary probably won't run for you.
It should allow up to 64 cores (none of my machines currently have more than that)
Taking ideas is not a vice, it is a virtue. We have another word for this. It is called learning.
But sharing ideas is an even greater virtue. We have another word for this. It is called teaching.

User avatar
Graham Banks
Posts: 33022
Joined: Sun Feb 26, 2006 9:52 am
Location: Auckland, NZ

Re: Crafty 25.3 Release

Post by Graham Banks » Thu Sep 05, 2019 11:58 pm

Any windows exes yet?
My email addresses:
gbanksnz at gmail.com
gbanksnz at yahoo.co.nz

Dann Corbit
Posts: 10000
Joined: Wed Mar 08, 2006 7:57 pm
Location: Redmond, WA USA
Contact:

Re: Crafty 25.3 Release

Post by Dann Corbit » Fri Sep 06, 2019 12:22 am

In the link above there is a 64 bit binary.
Taking ideas is not a vice, it is a virtue. We have another word for this. It is called learning.
But sharing ideas is an even greater virtue. We have another word for this. It is called teaching.

MikeB
Posts: 3398
Joined: Thu Mar 09, 2006 5:34 am
Location: Pen Argyl, Pennsylvania

Re: Crafty 25.3 Release

Post by MikeB » Fri Sep 06, 2019 12:24 am

Graham Banks wrote:
Thu Sep 05, 2019 11:58 pm
Any windows exes yet?
I only saw one exe - will look again, here's the one I found.

https://github.com/MichaelB7/Crafty/rel ... ty25.3.exe

Dann Corbit
Posts: 10000
Joined: Wed Mar 08, 2006 7:57 pm
Location: Redmond, WA USA
Contact:

Re: Crafty 25.3 Release

Post by Dann Corbit » Fri Sep 06, 2019 12:25 am

Crafty 64 bit windows binary alone is attached
Attachments
crafty-bin.7z
64 bit crafty binary
(217.33 KiB) Downloaded 112 times
Taking ideas is not a vice, it is a virtue. We have another word for this. It is called learning.
But sharing ideas is an even greater virtue. We have another word for this. It is called teaching.

Post Reply