Page 1 of 4

Crafty 25.3 Release

Posted: Sat Aug 17, 2019 7:21 pm
by MikeB
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

Re: Crafty 25.3 Release

Posted: Sat Aug 17, 2019 7:29 pm
by MikeB
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

Re: Crafty 25.3 Release

Posted: Sat Aug 17, 2019 11:05 pm
by Graham Banks
This is great news!
Thanks to Bob and yourself. :)

Re: Crafty 25.3 Release

Posted: Mon Aug 19, 2019 4:49 am
by MikeB
Graham Banks wrote: Sat Aug 17, 2019 11: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.

Re: Crafty 25.3 Release

Posted: Mon Aug 19, 2019 8:04 am
by menniepals
Any executable please?

Re: Crafty 25.3 Release

Posted: Tue Aug 20, 2019 1:17 am
by Dann Corbit
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)

Re: Crafty 25.3 Release

Posted: Fri Sep 06, 2019 1:58 am
by Graham Banks
Any windows exes yet?

Re: Crafty 25.3 Release

Posted: Fri Sep 06, 2019 2:22 am
by Dann Corbit
In the link above there is a 64 bit binary.

Re: Crafty 25.3 Release

Posted: Fri Sep 06, 2019 2:24 am
by MikeB
Graham Banks wrote: Fri Sep 06, 2019 1:58 am 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

Re: Crafty 25.3 Release

Posted: Fri Sep 06, 2019 2:25 am
by Dann Corbit
Crafty 64 bit windows binary alone is attached