Crafty 25.3 MSVS 2019

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

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

Re: Crafty 25.3 MSVS 2019

Post by MikeB »

Bob sent me new source which I placed on Github

For now it's in the 09182019 tree - it has the changes that should make compiling on Windows easier.

https://github.com/MichaelB7/Crafty/tree/09182019

You can see the changes here:

https://github.com/MichaelB7/Crafty/pull/8/files

I compile the new source for macOS using both clang and gcc and everything compiled fine:

Normal bench:

Code: Select all

[Mac-Pro:~] % /Users/cluster.mfb/crafty_gcc ; exit;
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): bench
Running serial benchmark. . .
pos:  1(6.9M)  2(5.8M)  3(7.0M)  4(6.9M)  5(5.1M)  6(5.2M)  7(5.5M) 
pos:  8(6.4M)  9(6.5M) 10(6.2M) 11(5.9M) 12(6.2M) 13(7.3M) 14(6.0M) 
pos: 15(13.3M) 16(6.4M) 17(6.8M) 18(5.5M) 19(5.3M) 20(8.4M) 21(7.6M) 
pos: 22(6.5M) 23(6.3M) 24(7.7M) 25(6.8M) 26(6.5M) 27(6.8M) 28(4.9M) 
pos: 29(5.4M) 30(6.2M) 31(5.8M) 32(5.6M) 33(5.9M) 34(6.5M) 35(6.9M) 
pos: 36(6.2M) 37(896.4K) 38(9.0M) 39(6.2M) 40(6.2M) 41(7.2M) 42(6.9M) 
pos: 43(5.5M) 44(6.8M) 45(5.8M) 46(6.3M) 47(6.0M) 48(6.3M) 49(5.2M) 
pos: 50(6.0M) 51(7.3M) 52(6.4M) 53(4.7M) 54(1.6M) 55(7.1M) 56(5.1M) 
pos: 57(4.2M) 58(6.2M) 59(7.8M) 60(6.5M) 61(6.6M) 62(6.7M) 63(6.2M) 
pos: 64(5.8M) 

Total nodes: 191258593
Raw nodes per second: 5926823
Total elapsed time: 32.27

Running SMP benchmark (2 threads)...
pos:  1(13.0M)  2(10.6M) 

Total nodes: 193500064
Raw nodes per second: 5959349
Total elapsed time: 32.47

White(1): 

mt=12 bench:

Code: Select all

[Mac-Pro:~/cluster.mfb] % crafty_gcc mt=12 bench
unable to open book file [./book.bin].
book is disabled
(info) command line option "mt=12"
max threads set to 12.
(info) command line option "bench"
Running serial benchmark. . .
pos:  1(17.4M)  2(28.8M)  3(37.9M)  4(25.1M)  5(26.2M)  6(39.5M)  7(26.3M) 
pos:  8(14.8M)  9(22.3M) 10(10.9M) 11(17.8M) 12(25.3M) 13(7.9M) 14(29.5M) 
pos: 15(48.3M) 16(19.9M) 17(11.4M) 18(21.1M) 19(32.4M) 20(10.2M) 21(31.1M) 
pos: 22(23.8M) 23(16.6M) 24(35.6M) 25(46.5M) 26(14.9M) 27(19.6M) 28(20.2M) 
pos: 29(26.3M) 30(17.9M) 31(15.8M) 32(30.7M) 33(25.4M) 34(15.8M) 35(8.5M) 
pos: 36(33.8M) 37(11.5M) 38(31.0M) 39(29.9M) 40(21.3M) 41(13.8M) 42(33.3M) 
pos: 43(30.3M) 44(26.9M) 45(14.7M) 46(42.0M) 47(35.9M) 48(21.5M) 49(7.7M) 
pos: 50(31.2M) 51(32.1M) 52(21.3M) 53(21.1M) 54(973.5K) 55(20.6M) 56(18.1M) 
pos: 57(5.4M) 58(28.5M) 59(23.2M) 60(26.5M) 61(31.2M) 62(10.4M) 63(44.0M) 
pos: 64(34.1M) 

Total nodes: 289460348
Raw nodes per second: 28946034
Total elapsed time: 10.00


hash table memory = 256M bytes (16M entries).
pawn hash table memory = 12M bytes (512K entries).
Image
bob
Posts: 20943
Joined: Mon Feb 27, 2006 7:30 pm
Location: Birmingham, AL

Re: Crafty 25.3 MSVS 2019

Post by bob »

There is still a problem, however. Works fine for unix-based systems. Still working on the windows version. Think I have it fixed in the source I sent you today, will wait for Joshua to confirm..
User avatar
MikeB
Posts: 4889
Joined: Thu Mar 09, 2006 6:34 am
Location: Pen Argyl, Pennsylvania

Re: Crafty 25.3 MSVS 2019

Post by MikeB »

bob wrote: Wed Sep 18, 2019 9:39 pm There is still a problem, however. Works fine for unix-based systems. Still working on the windows version. Think I have it fixed in the source I sent you today, will wait for Joshua to confirm..
ok - the branch was updated with your most recent changes:

https://github.com/MichaelB7/Crafty/tree/09182019
Image