Crafty 22.0 Windows x64 available

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

Moderators: hgm, Rebel, chrisw

bob
Posts: 20943
Joined: Mon Feb 27, 2006 7:30 pm
Location: Birmingham, AL

Re: Crafty 22.0 x64 smp crashes in console mode

Post by bob »

Werner wrote:Hi bob,
here are my files
.rc
egtb
tbpath=J:\tbs
# adaptive 750K 24M 192M 24M 48M
egtb
tbpath=J:\tbs
cache=32M
ponder off
mode=tournament
swindle on # (Allows Crafty to try to win drawn games (according to Endgame Tables))
learn 7
book random 1
bookw freq 0.7
bookw ratio 0.8
bookw eval 0.6
bookw learn 1
bookw cap 0.5
book width 4
book on
show book
computer
log=on
mt=2 #(Increases Crafty's MaxThreads to 2 for a dual CPU computer - disables smp)
# smpmt=2 #(Increases Crafty's MaxThreads to 2 for a dual CPU computer - using smp dual-core/2+ cpus)
timebook 80 8
#adaptive NPS a
hash=512M
hashp=16M
Comments:

you have two egtb commands. Only one is needed.

Mode=tournament is a special-case piece of code that is only used if pondering. It basically says "when I get ready to ponder, find the set of valid book moves for my opponent, then generate the set of legal moves for my opponent and remove the book moves. From that set, do a short ponder search to find the best non-book move, and then ponder that."

Since you are not pondering, I would remove that for simplicity.

learn 7 is also the default and should be removed for the same reason, as should "book random 1" as it is also the default.

book on is the default and should be removed

"computer" no longer does anything since crafty's eval is fully symmetric and there is no special-case computer-only code in it.

smpmt=2 and mt=2 are redundant. They do exactly the same thing so just one is needed.

The "timebook 80 8" is speculative and you can use it if you want. Makes crafty use a lot more time on the first 8 moves out of book, which may or may not be good. the "80" says use 80% more time, which might be extreme or not...
log.001
EGTB access enabled
using tbpath=J:\tbs
5 piece tablebase files found
11059kb of RAM used for TB indices and decompression tables
EGTB cache memory = 32M bytes.
pondering disabled.
book learning enabled
result learning enabled
choose from book moves randomly (using weights.)
choose from 4 best moves.
book file enabled.
show book statistics
playing a computer!

log.002
max threads set to 2
hash table memory = 384M bytes.
pawn hash table memory = 10M bytes.

Crafty v22.0 JA (2 cpus)

White(1): e2e4
time used: 17.46
time surplus 0.00 time limit 42.75 (+20.25) (3:30)
depth time score variation (1)
starting thread 1
9-> 0.14 0.15 1. ... Nc6 2. Nc3 Nf6 3. Nf3 d5 4.
e5 Ne4 5. Nxe4 dxe4
10 0.17 0.22 1. ... Nc6 2. Nc3 Nf6 3. Nf3 e6 4.
d4 d5 5. Qd3 Bb4 6. e5
10-> 0.24 0.22 1. ... Nc6 2. Nc3 Nf6 3. Nf3 e6 4.
d4 d5 5. Qd3 Bb4 6. e5 (s=2)
11 0.57 0.32 1. ... Nc6 2. Nf3 e6 3. Nc3 d5 4. exd5
exd5 5. d4 Nf6 6. Qe2+ Be7 7. Bf4
11-> 0.75 0.32 1. ... Nc6 2. Nf3 e6 3. Nc3 d5 4. exd5
exd5 5. d4 Nf6 6. Qe2+ Be7 7. Bf4
12 1.07 0.32 1. ... Nc6 2. Nf3 e6 3. d4 Nf6 4. e5
Nd5 5. Bd3 Ncb4 6. O-O Nxd3 7. Qxd3
<HT>
12-> 1.55 0.32 1. ... Nc6 2. Nf3 e6 3. d4 Nf6 4. e5
Nd5 5. Bd3 Ncb4 6. O-O Nxd3 7. Qxd3
<HT> (s=2)
13 2.02 0.32 1. ... Nc6 2. Nf3 e6 3. d4 Nf6 4. Bd3
Bb4+ 5. c3 Be7 6. O-O O-O 7. e5 Nd5
8. Qd2
13-> 2.49 0.32 1. ... Nc6 2. Nf3 e6 3. d4 Nf6 4. Bd3
Bb4+ 5. c3 Be7 6. O-O O-O 7. e5 Nd5
8. Qd2 (s=2)
14 4.50 0.28 1. ... Nc6 2. Nf3 e5 3. d4 exd4 4.
Nxd4 Qh4 5. Nb5 Qxe4+ 6. Qe2 Qxe2+
7. Bxe2 Kd8 8. N1c3 Nb4 9. Nd4 <HT>
14-> 7.75 0.28 1. ... Nc6 2. Nf3 e5 3. d4 exd4 4.
Nxd4 Qh4 5. Nb5 Qxe4+ 6. Qe2 Qxe2+
7. Bxe2 Kd8 8. N1c3 Nb4 9. Nd4 <HT>
(s=2)
15 9.91 0.44 1. ... Nc6 2. Nf3 e5 3. d4 exd4 4.
Nxd4 Nf6 5. Nxc6 bxc6 6. Nc3 Bb4 7.
Qd4 Bxc3+ 8. Qxc3 O-O 9. Qe5 <HT>
15 12.22 0.29 1. ... e5 2. Nf3 Nf6 3. Nxe5 d6 4.
Nf3 Nxe4 5. Nc3 Nxc3 6. dxc3 Nc6 7.
Bc4 Qe7+ 8. Be3 Be6
15-> 14.28 0.29 1. ... e5 2. Nf3 Nf6 3. Nxe5 d6 4.
Nf3 Nxe4 5. Nc3 Nxc3 6. dxc3 Nc6 7.
Bc4 Qe7+ 8. Be3 Be6 (s=3)
16 25.64 0.34 1. ... e5 2. Nf3 Nf6 3. Nc3 Nc6 4.
d4 exd4 5. Nxd4 Bb4 6. Nxc6 bxc6 7.
Qd4 Bxc3+ 8. Qxc3 O-O 9. Qc4 Bb7 (s=2)
16-> 33.16 0.34 1. ... e5 2. Nf3 Nf6 3. Nc3 Nc6 4.
d4 exd4 5. Nxd4 Bb4 6. Nxc6 bxc6 7.
Qd4 Bxc3+ 8. Qxc3 O-O 9. Qc4 Bb7
time=44.14 mat=0 n=118859514 fh=91% nps=2.7M
ext-> check=4.9M 1rep=279K mate=3K pp=0 reduce=70.7M/8.4M
predicted=0 evals=96.0M 50move=0 EGTBprobes=0 hits=0
SMP-> splits=513 aborts=46 data=5/512 elap=44.14
terminating SMP processes.

I only started in console mode and started with e2e4

here is console output from start:

Initializing multiple threads.
System is SMP, not NUMA.
unable to open book file [./book.bin].
book is disabled
unable to open book file [./books.bin].
EGTB access enabled
using tbpath=J:\tbs
5 piece tablebase files found
11059kb of RAM used for TB indices and decompression tables
EGTB cache memory = 32M bytes.
pondering disabled.
use 'settc' command if a game is restarted after crafty
has been terminated for any reason.
tournament mode.
book learning enabled
result learning enabled
choose from book moves randomly (using weights.)
choose from 4 best moves.
book file enabled.
show book statistics
playing a computer!
max threads set to 2
hash table memory = 384M bytes.
pawn hash table memory = 10M bytes.

Crafty v22.0 JA (2 cpus)

White(1):


PS: it does not crash when ponder is on!!
see console output:


Initializing multiple threads.
System is SMP, not NUMA.
unable to open book file [./book.bin].
book is disabled
unable to open book file [./books.bin].
EGTB access enabled
using tbpath=J:\tbs
5 piece tablebase files found
11059kb of RAM used for TB indices and decompression tables
EGTB cache memory = 32M bytes.
pondering enabled.
use 'settc' command if a game is restarted after crafty
has been terminated for any reason.
tournament mode.
book learning enabled
result learning enabled
choose from book moves randomly (using weights.)
choose from 4 best moves.
book file enabled.
show book statistics
playing a computer!
max threads set to 2
hash table memory = 384M bytes.
pawn hash table memory = 10M bytes.

Crafty v22.0 JA (2 cpus)

White(1): e2e4
time used: 2.28
time surplus 0.00 time limit 57.00 (+27.00) (3:30)
depth time score variation (1)
starting thread 1
9-> 0.14 0.15 1. ... Nc6 2. Nf3 Nf6 3. Nc3 d5 4.
e5 Ne4 5. Nxe4 dxe4 <HT>
10 0.19 0.22 1. ... Nc6 2. Nf3 Nf6 3. Nc3 e6 4.
d4 d5 5. Qd3 Bb4 6. e5
10-> 0.27 0.22 1. ... Nc6 2. Nf3 Nf6 3. Nc3 e6 4.
d4 d5 5. Qd3 Bb4 6. e5 (s=2)
11 0.39 0.34 1. ... Nc6 2. Nf3 e6 3. Nc3 d5 4. d4
Nf6 5. e5 Ne4 6. Nxe4 dxe4 <HT>
11-> 0.78 0.34 1. ... Nc6 2. Nf3 e6 3. Nc3 d5 4. d4
Nf6 5. e5 Ne4 6. Nxe4 dxe4 <HT> (s=3)
12 1.03 0.33 1. ... Nc6 2. Nf3 e6 3. Nc3 d5 4. Bb5
dxe4 5. Nxe4 f5 6. Nc3 Nf6 7. O-O (s=2)
12-> 1.78 0.33 1. ... Nc6 2. Nf3 e6 3. Nc3 d5 4. Bb5
dxe4 5. Nxe4 f5 6. Nc3 Nf6 7. O-O (s=3)
13 2.17 0.34 1. ... Nc6 2. Nf3 e6 3. Nc3 d5 4. Bb5
dxe4 5. Nxe4 f5 6. Nc3 Nf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nc6 9. Re1 Bf5
time=1:41 mat=0 n=284005364 fh=91% nps=2.8M
ext-> check=13.0M 1rep=769K mate=11K pp=0 reduce=171.8M/19.8M
predicted=0 evals=228.6M 50move=0 EGTBprobes=0 hits=0
SMP-> splits=483 aborts=63 data=6/512 elap=1:41

Black(1): e5
time used: 1:41
time remaining 0:28 (Crafty) 0:29 (opponent).
59 moves to next time control (Crafty)
if clocks are wrong, use 'clock' command to adjust them
White(2): Nf3 [pondering]
time surplus 0.00 time limit 51.80 (+23.02) (3:21)
depth time score variation (16)
16 7.81 0.33 2. ... Nf6 3. Nxe5 d6 4. Nf3 Nxe4 5.
Nc3 Nxc3 6. dxc3 Be7 7. Bc4 Be6 8.
Bxe6 fxe6 9. O-O Nc6 10. Bf4
16 12.84 12/29? 2. ... Bb4 (2.0Mnps)
I am not following your "not crashing" comment. If it is hanging or crashing when it prints out "terminating SMP processes" then you have the old 22.0 that was replaced with the new smpnice fix because the older version was broken...

I just checked to verify and the current version on the ftp machine is the current version and I've had no reports of it crashing with ponder=off using the smpnice=1 (which is now the default).
peter
Posts: 3187
Joined: Sat Feb 16, 2008 7:38 am
Full name: Peter Martan

Re: Crafty 22.0 x64 smp crashes in console mode

Post by peter »

[/quote]

Comments:

you have two egtb commands. Only one is needed.

Mode=tournament is a special-case piece of code that is only used if pondering. It basically says "when I get ready to ponder, find the set of valid book moves for my opponent, then generate the set of legal moves for my opponent and remove the book moves. From that set, do a short ponder search to find the best non-book move, and then ponder that."

Since you are not pondering, I would remove that for simplicity.

learn 7 is also the default and should be removed for the same reason, as should "book random 1" as it is also the default.

book on is the default and should be removed

"computer" no longer does anything since crafty's eval is fully symmetric and there is no special-case computer-only code in it.

smpmt=2 and mt=2 are redundant. They do exactly the same thing so just one is needed.

The "timebook 80 8" is speculative and you can use it if you want. Makes crafty use a lot more time on the first 8 moves out of book, which may or may not be good. the "80" says use 80% more time, which might be extreme or not...

I am not following your "not crashing" comment. If it is hanging or crashing when it prints out "terminating SMP processes" then you have the old 22.0 that was replaced with the new smpnice fix because the older version was broken...

I just checked to verify and the current version on the ftp machine is the current version and I've had no reports of it crashing with ponder=off using the smpnice=1 (which is now the default).[/quote]

Very special thanks again! With Peter Skinners download and his minimal .rc everything works fine, adding smpnice=1 makes Crafty use one core at thinking time of opponent up to 25%, as for myself, I can live with this. mt=2 I still have to add to Wb2UCI.eng beside engine name, otherwise Crafty uses only one core even with mt=2 in .rc
best regards
Peter.
User avatar
Werner
Posts: 2873
Joined: Wed Mar 08, 2006 10:09 pm
Location: Germany
Full name: Werner Schüle

Re: Crafty 22.0 x64 smp - thanks Bob

Post by Werner »

Hi Bob,
thanks for the explanation. For these tests I used latest version from Jim - and I thougt he had changed it. Perhaps now? Hope he does it as there is a link to his versions on WBEC!!

Now I use the version from Peter - including his .rc file.
Werner
User avatar
Graham Banks
Posts: 41539
Joined: Sun Feb 26, 2006 10:52 am
Location: Auckland, NZ

Re: Crafty 22.0 x64 smp - thanks Bob

Post by Graham Banks »

Werner wrote:Hi Bob,
thanks for the explanation. For these tests I used latest version from Jim - and I thougt he had changed it. Perhaps now? Hope he does it as there is a link to his versions on WBEC!!

Now I use the version from Peter - including his .rc file.
Hi Werner,

have you checked that Crafty accesses tablebases with the setup you're using?

Regards, Graham.
gbanksnz at gmail.com
User avatar
Werner
Posts: 2873
Joined: Wed Mar 08, 2006 10:09 pm
Location: Germany
Full name: Werner Schüle

Re: Crafty 22.0 x64 smp - thanks Bob

Post by Werner »

Hi Graham,
yes, I have tested it under Arena:

FEN: 4k3/4p3/8/8/3p4/8/4N3/4KB2 w - - 0 1

Crafty 22.0 x64 2CPU:
12 00:01 220.356 125.917 +M30 1. Nxd4 <EGTB>
13 00:01 220.357 125.918 +M30 1. Nxd4 <EGTB>
13 00:05 501.664 97.033 +M30 1. Nxd4 <EGTB>
14 00:05 501.665 97.033 +M30 1. Nxd4 <EGTB>

with this .rc-file:

mt=2
egtb
tbpath=J:\tbs
ponder off
hash=384M
hashp=128M
cache=32M
exit
Werner
User avatar
Graham Banks
Posts: 41539
Joined: Sun Feb 26, 2006 10:52 am
Location: Auckland, NZ

Re: Crafty 22.0 x64 smp - thanks Bob

Post by Graham Banks »

Werner wrote:Hi Graham,
yes, I have tested it under Arena:

FEN: 4k3/4p3/8/8/3p4/8/4N3/4KB2 w - - 0 1

Crafty 22.0 x64 2CPU:
12 00:01 220.356 125.917 +M30 1. Nxd4 <EGTB>
13 00:01 220.357 125.918 +M30 1. Nxd4 <EGTB>
13 00:05 501.664 97.033 +M30 1. Nxd4 <EGTB>
14 00:05 501.665 97.033 +M30 1. Nxd4 <EGTB>

with this .rc-file:

mt=2
egtb
tbpath=J:\tbs
ponder off
hash=384M
hashp=128M
cache=32M
exit
Okay. Thanks. :D

Regards, Graham.
gbanksnz at gmail.com
User avatar
Jim Ablett
Posts: 1401
Joined: Fri Jul 14, 2006 7:56 am
Location: London, England
Full name: Jim Ablett

Re: Crafty 22.0 x64 smp - thanks Bob

Post by Jim Ablett »

Werner wrote:Hi Bob,
thanks for the explanation. For these tests I used latest version from Jim - and I thougt he had changed it. Perhaps now? Hope he does it as there is a link to his versions on WBEC!!

Now I use the version from Peter - including his .rc file.
Hi Werner,

I've updated my download with the revised 'crafty.rc'. I've also included
some Mingw-Gcc builds to test for anyone still having trouble. I'm still not sure
if it's my Intel build that's to blame for the problem, or the rc file, or both.
If my compile is the culprit, I'll remove it.

Jim.
User avatar
Peter Skinner
Posts: 1763
Joined: Sun Feb 26, 2006 1:49 pm
Location: Edmonton, Alberta, Canada
Full name: Peter Skinner

Re: Crafty 22.0 x64 smp - thanks Bob

Post by Peter Skinner »

Werner wrote:Hi Bob,
thanks for the explanation. For these tests I used latest version from Jim - and I thougt he had changed it. Perhaps now? Hope he does it as there is a link to his versions on WBEC!!

Now I use the version from Peter - including his .rc file.
Just remember if using my .rc file that the command egtb assumes that your tablebases are in a folder called tb inside your crafty folder.

If they aren't, use tbpath=<path> and they access fine.

I test pretty thoroughly under Windows with all internal and release builds. The interfaces I test with are Winboard, ChessPartner and Arena. I stopped using Chessbase some time ago when I realized that no matter what I tried, a "simple" rc file wasn't good enough and even with a proper wb2uci file, Crafty played very odd at times. No doubt due to something Chessbase does.

I also make no changes to the source other than adding PS to the Crafty build number so people can distinguish my builds from others.

Peter
I was kicked out of Chapters because I moved all the Bibles to the fiction section.
User avatar
Werner
Posts: 2873
Joined: Wed Mar 08, 2006 10:09 pm
Location: Germany
Full name: Werner Schüle

Re: Crafty 22.0 x64 smp - thanks Bob

Post by Werner »

Hi Peter,
I just started under Arena an eng-eng match with your build
Crafty 22.0 2CPU
Naum 3 2CPU
on my dual AMD 64x2
here is the .rc file
mt=2
egtb
tbpath=J:\tbs
ponder=off
hash=384M
hashp=128M
cache=32M
log=off
exit

When I watch Windows task manager Naum 3 gets only 50 % so I stopped the match. The same happens under Winboard.
When I include the command smpnice=1 in the .rc file Crafty is unloaded before it moves...
So I wonder how do you manage to make eng-eng matches on a dual with even condions :oops:
What´s my fault now?
Werner
User avatar
Peter Skinner
Posts: 1763
Joined: Sun Feb 26, 2006 1:49 pm
Location: Edmonton, Alberta, Canada
Full name: Peter Skinner

Re: Crafty 22.0 x64 smp - thanks Bob

Post by Peter Skinner »

Werner wrote:Hi Peter,
I just started under Arena an eng-eng match with your build
Crafty 22.0 2CPU
Naum 3 2CPU
on my dual AMD 64x2
here is the .rc file
mt=2
egtb
tbpath=J:\tbs
ponder=off
hash=384M
hashp=128M
cache=32M
log=off
exit

When I watch Windows task manager Naum 3 gets only 50 % so I stopped the match. The same happens under Winboard.
When I include the command smpnice=1 in the .rc file Crafty is unloaded before it moves...
So I wonder how do you manage to make eng-eng matches on a dual with even condions :oops:
What´s my fault now?
Which interface are you using?

If it is Chessbase, then there is nothing I can do to help as I don't use it myself for testing.

I HIGHLY recommend Arena. It simply works...
I was kicked out of Chapters because I moved all the Bibles to the fiction section.