Crafty 22.0 Windows x64 available

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

Moderator: Ras

User avatar
Werner
Posts: 2999
Joined: Wed Mar 08, 2006 10:09 pm
Location: Germany
Full name: Werner Schüle

Re: Crafty 22.0 x64 smp crashes (for Jim!)

Post by Werner »

bob OK, I was correct. A change to thread.c was lost in the melee before the last CCT event. I will have a new 22.0 source up in 5 minutes or so, should fix this not terminating the threads properly problem, and also will have smpnice=1 as the default...

BTW when you download this version, please delete _all_ old .c and .h files. A couple of .c files are no longer needed in this new version and can cause some confusion if you try to use them with an old Makefile...

Source is now up...
So please Jim,
make another compilation.....
Werner
peter
Posts: 3423
Joined: Sat Feb 16, 2008 7:38 am
Full name: Peter Martan

Re: Crafty 22.0 x64 smp crashes

Post by peter »

bob wrote:
peter wrote:Thanks a lot, with this compile x64 runs fine on chessbase GUI and dual core.
But how can I be sure both cores are active? Crafty shows about 1300 to 1500kN/s
regards
Peter.
click on the task bar at the bottom of the screen and then click on task manager and then performance (I think) to see if it thinks both cpus are running.

NPS should double with 2 cores over 1.
Indeed it seems to me, only one core is working. What can I do?
Many thanks
Peter
User avatar
Jim Ablett
Posts: 2331
Joined: Fri Jul 14, 2006 7:56 am
Location: London, England
Full name: Jim Ablett

Re: Crafty 22.0 x64 smp crashes (for Jim!)

Post by Jim Ablett »

Werner wrote:
bob OK, I was correct. A change to thread.c was lost in the melee before the last CCT event. I will have a new 22.0 source up in 5 minutes or so, should fix this not terminating the threads properly problem, and also will have smpnice=1 as the default...

BTW when you download this version, please delete _all_ old .c and .h files. A couple of .c files are no longer needed in this new version and can cause some confusion if you try to use them with an old Makefile...

Source is now up...
So please Jim,
make another compilation.....

http://www.zshare.net/download/792255394beecf/
Mirror:
http://mihd.net/bqrhzx

Jim.
User avatar
Werner
Posts: 2999
Joined: Wed Mar 08, 2006 10:09 pm
Location: Germany
Full name: Werner Schüle

Re: Crafty 22.0 x64 smp working, but....

Post by Werner »

Hi Jim, hi Bob,
thanks for the new versions and compiles!
Crafty 22.0 SMP is now running correct 2CPU eng-eng matches with ponder off. But..
watched inside Areana: after each move Crafty is unloaded from memory and when its turn loaded new!

Now I know what it means: do not make 1-0 games with this version:
The game is lost after the first move :D

edited:
that means: under Chessbase using wb2uci the engine is unloaded after first move and the game is over...

regards
Werner
Martin Thoresen
Posts: 1833
Joined: Thu Jun 22, 2006 12:07 am

Re: Crafty 22.0 x64 smp working, but....

Post by Martin Thoresen »

When using both the 32-bit version and the 64-bit version with the Wb2Uci adapter in Chessbase GUI, I can't make Crafty get the proper amount of Hash (always just 10 MB) nor can I make it use more than one thread.

This is the .rc file:

egtb
tbpath=h:\
# adaptive 750K 24M 192M 24M 48M
tbpath=h:\
cache=32M
ponder off
mode=tournament
swindle on # (Allows Crafty to try to win drawn games (according to Endgame Tables))
learn off
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 off
show book
computer
log=off
mt=4 #(Increases Crafty's MaxThreads to 2 for a dual CPU computer - disables smp)
smpmt=4 #(Increases Crafty's MaxThreads to 2 for a dual CPU computer - using smp dual-core/2+ cpus)
smpnice=1 #(Make Crafty not use cpu on opponents time)
timebook 80 8
#adaptive NPS a
hash=512M
hashp=16M
exit
User avatar
Werner
Posts: 2999
Joined: Wed Mar 08, 2006 10:09 pm
Location: Germany
Full name: Werner Schüle

Re: Crafty 22.0 x64 smp inside Chessbase

Post by Werner »

Hi Martin,
this is my wb2uci.eng:
[ENGINE]
Name=Crafty 22.0 x64 2CPU
Author=Robert Hyatt
Filename=Wb2UCI.exe

[OPTIONS]
Program=crafty_x64.exe mt=2
InitString=resign 0
WhiteScore=true
TerminateHard=true
InitTime=5
Visible=Ponder,Hash,Extras,Logfile,Computer
tbpath=j:\tbs
and this my .rc file:
egtb
hash=512M
hashp=32M
log=off
tbpath=j:\tbs
cache=16M
mode=tournament
swindle off # (Allows Crafty to try to win drawn games (according to Endgame Tables))
mt=2 #(Increases Crafty's MaxThreads to 2 for a dual CPU computer)
timebook 80 8
#adaptive NPS a
smpnice=0

Here it´s using more than 400 MB in memory and both CPUs. The engine is ponderering and does not unload. You can make eng-eng matches on a dual only against a single engine with that configuration.
Werner
Martin Thoresen
Posts: 1833
Joined: Thu Jun 22, 2006 12:07 am

Re: Crafty 22.0 x64 smp working, but....

Post by Martin Thoresen »

It all works fine when I removed the line "exit" from the .rc file
User avatar
Werner
Posts: 2999
Joined: Wed Mar 08, 2006 10:09 pm
Location: Germany
Full name: Werner Schüle

Re: Crafty 22.0 x64 smp working, but....

Post by Werner »

When I use this .rc file after the first move Crafty is undoaded.
Werner
bob
Posts: 20943
Joined: Mon Feb 27, 2006 7:30 pm
Location: Birmingham, AL

Re: Crafty 22.0 x64 smp crashes

Post by bob »

peter wrote:
bob wrote:
peter wrote:Thanks a lot, with this compile x64 runs fine on chessbase GUI and dual core.
But how can I be sure both cores are active? Crafty shows about 1300 to 1500kN/s
regards
Peter.
click on the task bar at the bottom of the screen and then click on task manager and then performance (I think) to see if it thinks both cpus are running.

NPS should double with 2 cores over 1.
Indeed it seems to me, only one core is working. What can I do?
Many thanks
Peter
Do you have "mt=2" in your crafty.rc file? without that, crafty will only use one CPU...
bob
Posts: 20943
Joined: Mon Feb 27, 2006 7:30 pm
Location: Birmingham, AL

Re: Crafty 22.0 x64 smp working, but....

Post by bob »

Werner wrote:Hi Jim, hi Bob,
thanks for the new versions and compiles!
Crafty 22.0 SMP is now running correct 2CPU eng-eng matches with ponder off. But..
watched inside Areana: after each move Crafty is unloaded from memory and when its turn loaded new!

Now I know what it means: do not make 1-0 games with this version:
The game is lost after the first move :D

edited:
that means: under Chessbase using wb2uci the engine is unloaded after first move and the game is over...

regards
Sounds strange, I should be able to stop one process when I want without the GUI thinking the whole thing stops. It works fine under xboard/winboard however...