64 bit Crafty 25.0 binary

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

Moderators: hgm, Rebel, chrisw

Dann Corbit
Posts: 12540
Joined: Wed Mar 08, 2006 8:57 pm
Location: Redmond, WA USA

64 bit Crafty 25.0 binary

Post by Dann Corbit »

The link below contains the current crafty code base with the latest patch.
It also contains my windows specific makefile along with a 64 bit crafty 25.0 binary.

https://www.dropbox.com/s/54fgt0uv4alk4 ... .0.7z?dl=0

Output of a search of the root position:

Code: Select all

F:\project\dcorbit\Crafty-25.0>crafty
EPD Kit revision date: 1996.04.21
unable to open book file [./book.bin].
book is disabled
unable to open book file [./books.bin].

Initializing multiple threads.
System is SMP, not NUMA.

Crafty v25.0 (1 cpus)

White(1): mt 11
Warning--  xboard 'cores' option disabled
max threads set to 11.
White(1): st 99
search time set to 99.00.
White(1): go
        time surplus   0.00  time limit 1:39 (1:39)
        depth     time       score   variation (1)
starting thread 1 2 3 4 5 6 7 8 9 10 <done>
         20     1.26/1&#58;39     0.05   1. Nf3 Nf6 2. Nc3 d5 3. e3 e6 4. a3 Nc6
                                     5. d4 Bd6 6. Bd3 O-O 7. O-O Bd7 8. Bd2 a6
                                     9. g3 g6 10. Qe2 Qe7
         20     3.48/1&#58;39     0.05   1. d4 Nf6 2. Nc3 d5 3. Nf3 e6 4. e3 Nc6
                                     5. Bd3 Bd6 6. O-O a6 7. Bd2 O-O 8. a3 Bd7
                                     9. g3 g6 10. Qe2 Qe7
         20     4.23/1&#58;39     0.05   1. e4 e5 2. Nc3 Nc6 3. Nf3 Nf6 4. Bc4 Bc5
                                     5. d3 O-O 6. Be3 Bxe3 7. fxe3 d6 8. O-O
                                     Be6 9. Bxe6 fxe6 10. Qe2 Qe7
         20->   4.42/1&#58;39     0.05   1. e4 e5 2. Nc3 Nc6 3. Nf3 Nf6 4. Bc4 Bc5
                                     5. d3 O-O 6. Be3 Bxe3 7. fxe3 d6 8. O-O
                                     Be6 9. Bxe6 fxe6 10. Qe2 Qe7 &#40;s=3&#41;
         21     6.21/1&#58;39     0.17   1. e4 e5 2. Nf3 Nc6 3. Bc4 Bc5 4. O-O Nf6
                                     5. d3 O-O 6. Nc3 Na5 7. Bb3 Nxb3 8. axb3
                                     d6 9. Be3 Bxe3 10. fxe3 Be6 11. Qe2 &#40;s=3&#41;
         21->   6.65/1&#58;39     0.17   1. e4 e5 2. Nf3 Nc6 3. Bc4 Bc5 4. O-O Nf6
                                     5. d3 O-O 6. Nc3 Na5 7. Bb3 Nxb3 8. axb3
                                     d6 9. Be3 Bxe3 10. fxe3 Be6 11. Qe2 &#40;s=3&#41;
         22     7.42/1&#58;39     0.17   1. e4 e5 2. Nf3 Nc6 3. Bc4 Bc5 4. O-O Nf6
                                     5. d3 O-O 6. Nc3 Na5 7. Nxe5 d6 8. Nxf7
                                     Rxf7 9. Bxf7+ Kxf7 10. Be3 Bb4 11. Nd5 Bg4
                                     12. f3 &#40;s=3&#41;
         22->   7.78/1&#58;39     0.17   1. e4 e5 2. Nf3 Nc6 3. Bc4 Bc5 4. O-O Nf6
                                     5. d3 O-O 6. Nc3 Na5 7. Nxe5 d6 8. Nxf7
                                     Rxf7 9. Bxf7+ Kxf7 10. Be3 Bb4 11. Nd5 Bg4
                                     12. f3 &#40;s=3&#41;
         23     9.71/1&#58;39     0.22   1. e4 e5 2. Nf3 Nc6 3. Bc4 Bc5 4. O-O Nf6
                                     5. d3 O-O 6. Nc3 Na5 7. Nxe5 d6 8. Nxf7
                                     Rxf7 9. Bxf7+ Kxf7 10. Be3 Bb4 11. Nd5
                                     Nxd5 12. Qh5+ Kf8 13. Qxd5 &#40;s=3&#41;
         23->  10.10/1&#58;39     0.22   1. e4 e5 2. Nf3 Nc6 3. Bc4 Bc5 4. O-O Nf6
                                     5. d3 O-O 6. Nc3 Na5 7. Nxe5 d6 8. Nxf7
                                     Rxf7 9. Bxf7+ Kxf7 10. Be3 Bb4 11. Nd5
                                     Nxd5 12. Qh5+ Kf8 13. Qxd5
         24    12.79/1&#58;39     0.18   1. e4 e5 2. Nf3 Nc6 3. Bc4 Bc5 4. O-O Nf6
                                     5. Nc3 O-O 6. d3 Na5 7. Nxe5 d6 8. Nxf7
                                     Rxf7 9. Bxf7+ Kxf7 10. Be3 Bb4 11. a3 Bxc3
                                     12. bxc3 Bg4 13. Qd2
         24->  13.48/1&#58;39     0.18   1. e4 e5 2. Nf3 Nc6 3. Bc4 Bc5 4. O-O Nf6
                                     5. Nc3 O-O 6. d3 Na5 7. Nxe5 d6 8. Nxf7
                                     Rxf7 9. Bxf7+ Kxf7 10. Be3 Bb4 11. a3 Bxc3
                                     12. bxc3 Bg4 13. Qd2
         25    26.32/1&#58;39     0.16   1. e4 e5 2. Nf3 Nc6 3. Bc4 Nf6 4. Nc3 Nxe4
                                     5. Nxe4 d5 6. Bd3 dxe4 7. Bxe4 Bd6 8. O-O
                                     O-O 9. Re1 Bg4 10. d3 Qe7 11. Be3 f6
                                     12. c3 Be6 13. d4
         25->  30.09/1&#58;39     0.16   1. e4 e5 2. Nf3 Nc6 3. Bc4 Nf6 4. Nc3 Nxe4
                                     5. Nxe4 d5 6. Bd3 dxe4 7. Bxe4 Bd6 8. O-O
                                     O-O 9. Re1 Bg4 10. d3 Qe7 11. Be3 f6
                                     12. c3 Be6 13. d4
         26    43.98/1&#58;39     0.15   1. e4 e5 2. Nf3 Nc6 3. Bc4 Nf6 4. Nc3 Nxe4
                                     5. Nxe4 d5 6. Bd3 dxe4 7. Bxe4 Bd6 8. O-O
                                     O-O 9. Re1 Qf6 10. d3 Bg4 11. Be3 Bf5
                                     12. Bd5 Kh8 13. Qd2 a6
         26->   1&#58;09/1&#58;39     0.15   1. e4 e5 2. Nf3 Nc6 3. Bc4 Nf6 4. Nc3 Nxe4
                                     5. Nxe4 d5 6. Bd3 dxe4 7. Bxe4 Bd6 8. O-O
                                     O-O 9. Re1 Qf6 10. d3 Bg4 11. Be3 Bf5
                                     12. Bd5 Kh8 13. Qd2 a6
         27     1&#58;21/1&#58;39     0.19   1. e4 e5 2. Nf3 Nc6 3. Bc4 Nf6 4. Nc3 Nxe4
                                     5. Nxe4 d5 6. Bd3 dxe4 7. Bxe4 Bd6 8. O-O
                                     O-O 9. Re1 Qf6 10. d3 Bg4 11. Be3 Bf5
                                     12. Ng5 Bb4 13. c3 Bxe4 14. Nxe4
         27->   1&#58;24/1&#58;39     0.19   1. e4 e5 2. Nf3 Nc6 3. Bc4 Nf6 4. Nc3 Nxe4
                                     5. Nxe4 d5 6. Bd3 dxe4 7. Bxe4 Bd6 8. O-O
                                     O-O 9. Re1 Qf6 10. d3 Bg4 11. Be3 Bf5
                                     12. Ng5 Bb4 13. c3 Bxe4 14. Nxe4
        time=1&#58;39&#40;98%)  nodes=2916503035&#40;2.9B&#41;  fh1=90%  pred=0  nps=29.4M
        chk=37.8M  qchk=63.4M  fp=836.5M  mcp=278.5M  50move=0
        LMReductions&#58;  1/97.8M  2/67.9M  3/35.4M  4/11.4M  5/749.6K  6/7.5K
        null-move &#40;R&#41;&#58;  3/106.3M  4/6.0M  5/131.8K  6/3.0K  7/12
        splits=201.1K&#40;138.0K&#41;  aborts=35.6K  joins=280.1K  data=20%&#40;20%)
White&#40;1&#41;&#58; e4
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.
Dann Corbit
Posts: 12540
Joined: Wed Mar 08, 2006 8:57 pm
Location: Redmond, WA USA

Re: 64 bit Crafty 25.0 binary

Post by Dann Corbit »

Built using msys2, mingw, and gcc 5.2 64 bit compiler.
To create this build using the same tools, just type:
make profile
from the msys2 prompt in the crafty folder.
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.
Modern Times
Posts: 3546
Joined: Thu Jun 07, 2012 11:02 pm

Re: 64 bit Crafty 25.0 binary

Post by Modern Times »

On the bench command (which is 1CPU), the nps is 15% faster than Daniel's compile on my machine. The total nodes searched are different however - are they always supposed to be the same with Crafty bench ?

Edit: Just checked Crafty 23.4, Peter Skinner's compile vs Jim Ablett's. The total nodes was identical on the bench command. So I think, either your compile or Daniel's may not be producing the intended results. Maybe Bob can comment.
BBauer
Posts: 658
Joined: Wed Mar 08, 2006 8:58 pm

Re: 64 bit Crafty 25.0 binary

Post by BBauer »

Thank you Dann!
Especially for the Makefile. I suceeded in compiling crafty.
It worked.

Kind regards
Bernhard
User avatar
Graham Banks
Posts: 41423
Joined: Sun Feb 26, 2006 10:52 am
Location: Auckland, NZ

Re: 64 bit Crafty 25.0 binary

Post by Graham Banks »

Doesn't work on my i5.
gbanksnz at gmail.com
User avatar
MikeB
Posts: 4889
Joined: Thu Mar 09, 2006 6:34 am
Location: Pen Argyl, Pennsylvania

Re: 64 bit Crafty 25.0 binary

Post by MikeB »

Modern Times wrote:On the bench command (which is 1CPU), the nps is 15% faster than Daniel's compile on my machine. The total nodes searched are different however - are they always supposed to be the same with Crafty bench ?

Edit: Just checked Crafty 23.4, Peter Skinner's compile vs Jim Ablett's. The total nodes was identical on the bench command. So I think, either your compile or Daniel's may not be producing the intended results. Maybe Bob can comment.
As along the hash tables are the same and it is a clean start, bench nodes should be exactly the same.

Currently:

Code: Select all

Mac-Pro&#58;~ michaelbyrne$ /Users/michaelbyrne/Documents/Sources/Crafty/crafty-25.0_Final122715/crafty ; exit;
unable to open book file &#91;./book.bin&#93;.
book is disabled
unable to open book file &#91;./books.bin&#93;.

Crafty v25.0 &#40;1 cpus&#41;

White&#40;1&#41;&#58; bench
Running benchmark. . .
......
Total nodes&#58; 169405499 
If is not 169405499 nodes that from a clean start with no craftyrc files, you do not have the latest crafty or you have a version that may be broken. Hopefully, I do have the latest version. :shock:
User avatar
cdani
Posts: 2204
Joined: Sat Jan 18, 2014 10:24 am
Location: Andorra

Re: 64 bit Crafty 25.0 binary

Post by cdani »

MikeB wrote:
Modern Times wrote:On the bench command (which is 1CPU), the nps is 15% faster than Daniel's compile on my machine. The total nodes searched are different however - are they always supposed to be the same with Crafty bench ?

Edit: Just checked Crafty 23.4, Peter Skinner's compile vs Jim Ablett's. The total nodes was identical on the bench command. So I think, either your compile or Daniel's may not be producing the intended results. Maybe Bob can comment.
As along the hash tables are the same and it is a clean start, bench nodes should be exactly the same.

Currently:

Code: Select all

Mac-Pro&#58;~ michaelbyrne$ /Users/michaelbyrne/Documents/Sources/Crafty/crafty-25.0_Final122715/crafty ; exit;
unable to open book file &#91;./book.bin&#93;.
book is disabled
unable to open book file &#91;./books.bin&#93;.

Crafty v25.0 &#40;1 cpus&#41;

White&#40;1&#41;&#58; bench
Running benchmark. . .
......
Total nodes&#58; 169405499 
If is not 169405499 nodes that from a clean start with no craftyrc files, you do not have the latest crafty or you have a version that may be broken. Hopefully, I do have the latest version. :shock:
So I will remove the ones I have done. Jim ones are working well, and mine do not report those 169405499.
Thanks!
bob
Posts: 20943
Joined: Mon Feb 27, 2006 7:30 pm
Location: Birmingham, AL

Re: 64 bit Crafty 25.0 binary

Post by bob »

Modern Times wrote:On the bench command (which is 1CPU), the nps is 15% faster than Daniel's compile on my machine. The total nodes searched are different however - are they always supposed to be the same with Crafty bench ?

Edit: Just checked Crafty 23.4, Peter Skinner's compile vs Jim Ablett's. The total nodes was identical on the bench command. So I think, either your compile or Daniel's may not be producing the intended results. Maybe Bob can comment.
They should be the same, so long as you don't change hash size or anything similar... If you change hash table size, the tree size will change..
Modern Times
Posts: 3546
Joined: Thu Jun 07, 2012 11:02 pm

Re: 64 bit Crafty 25.0 binary

Post by Modern Times »

MikeB wrote: If is not 169405499 nodes that from a clean start with no craftyrc files, you do not have the latest crafty or you have a version that may be broken. Hopefully, I do have the latest version. :shock:
Thanks. Jim's compiles give that number. Daniel's and Dann's don't.
bob
Posts: 20943
Joined: Mon Feb 27, 2006 7:30 pm
Location: Birmingham, AL

Re: 64 bit Crafty 25.0 binary

Post by bob »

MikeB wrote:
Modern Times wrote:On the bench command (which is 1CPU), the nps is 15% faster than Daniel's compile on my machine. The total nodes searched are different however - are they always supposed to be the same with Crafty bench ?

Edit: Just checked Crafty 23.4, Peter Skinner's compile vs Jim Ablett's. The total nodes was identical on the bench command. So I think, either your compile or Daniel's may not be producing the intended results. Maybe Bob can comment.
As along the hash tables are the same and it is a clean start, bench nodes should be exactly the same.

Currently:

Code: Select all

Mac-Pro&#58;~ michaelbyrne$ /Users/michaelbyrne/Documents/Sources/Crafty/crafty-25.0_Final122715/crafty ; exit;
unable to open book file &#91;./book.bin&#93;.
book is disabled
unable to open book file &#91;./books.bin&#93;.

Crafty v25.0 &#40;1 cpus&#41;

White&#40;1&#41;&#58; bench
Running benchmark. . .
......
Total nodes&#58; 169405499 
If is not 169405499 nodes that from a clean start with no craftyrc files, you do not have the latest crafty or you have a version that may be broken. Hopefully, I do have the latest version. :shock:
That exactly matches mine.

Here's my macbook:

Crafty v25.1 (1 cpus)

White(1): bench
Running benchmark. . .
......
Total nodes: 169405499
Raw nodes per second: 4812656
Total elapsed time: 35.20
time used = 35.27
White(1):

And on the 20 core box (one thread, obviously):

White(1): bench
Running benchmark. . .
......
Total nodes: 169405499


If you don't get that number, something is broken