Hi,
I made a picture from a match Crafty 22.0 2CPU - Naum 3 2CPU in an endgame position where you can see how much the other engine is affected from that problem Charles found out:
http://www.husvankempen.de/nunn/crafty_22_0.JPG
Naum is normally here running more than 2000 kns now only 74!!
Crafty 22.0 Windows x64 available
Moderator: Ras
-
Werner
- Posts: 2999
- Joined: Wed Mar 08, 2006 10:09 pm
- Location: Germany
- Full name: Werner Schüle
-
Denis P. Mendoza
- Posts: 415
- Joined: Fri Dec 15, 2006 9:46 pm
- Location: Philippines
Re: Crafty 22.0 x64 smp - new problem
Hello Werner,Werner wrote:Hi,
I made a picture from a match Crafty 22.0 2CPU - Naum 3 2CPU in an endgame position where you can see how much the other engine is affected from that problem Charles found out:
http://www.husvankempen.de/nunn/crafty_22_0.JPG
Naum is normally here running more than 2000 kns now only 74!!
Here are additional options for wb2uci.eng from my previous file which could resolve some issues you mentioned and others as well. I asked other Chessbase users for these valuable infos.
Code: Select all
WhiteScore=true
TerminateHard=true
RunIdle=true
Denis
1. WhiteScore=true: So that Crafty does not show evaluation with reversed sign in Chessbase and ShreddeerChess GUI.
2. TerminateHard=true: So it helps to run tournaments smoothly by ensuring that Crafty quits when game is over.
3. RunIdle=true: It sets Crafty priority to low so that one can play match against other mp engines without Crafty using CPU when it is opponent's turn to move (works for all engines except those which use processes instead of threads for uci implementation. Example engines which do this are Rybka and Deep Sjeng. You cannot play correct mp vs mp matches on a 2 core machine against these two engines even in Arena as per experience. Better way is to just select "Below Normal Priority" during installation in Chessbase GUI.
I hope this helps again!
e-mail: computer.chess@hotmail.com
-
bob
- Posts: 20943
- Joined: Mon Feb 27, 2006 7:30 pm
- Location: Birmingham, AL
Re: Crafty 22.0 x64 smp - new problem
So you believe that somehow Crafty can reduce its opponent's CPU usage to 5% of what it should be? How exactly would one do that. At most if crafty were pondering it would be 50%, but _not_ 5%. There is something else that is wrong there besides Crafty...Werner wrote:Hi,
I made a picture from a match Crafty 22.0 2CPU - Naum 3 2CPU in an endgame position where you can see how much the other engine is affected from that problem Charles found out:
http://www.husvankempen.de/nunn/crafty_22_0.JPG
Naum is normally here running more than 2000 kns now only 74!!
-
peter
- Posts: 3423
- Joined: Sat Feb 16, 2008 7:38 am
- Full name: Peter Martan
Re: Crafty 22.0 x64 smp - thanks Bob
If you just could have a look at this backward-analyse prob, please. It bothers me cause I can't use Crafty letting it analyse a game other than by hand. It's something about inserting a variation in Shredder GUI too, Crafty stops but can be started easily again going backward manually.Denis P. Mendoza wrote:That's a sign of relief Doc! I was waiting for that "prescription"Automatic engine-engine match runs without problems! Have an "smp" nice day
.
At automatic backward analysing Crafty hangs up after first move analysed.
Many thanks for last help and next one again
regards
Peter.
-
ernest
- Posts: 2053
- Joined: Wed Mar 08, 2006 8:30 pm
Re: Crafty 22.0 x64 smp - thanks Bob
Hi Denis,Denis P. Mendoza wrote: In the meantime, I could give you some tips to make it run in Shredder GUI based on my experience. Let's start with the WB2UCI.eng:
Here's my sample WB2UCI.eng settings. you can edit some of them:
Here's the rc file:[ENGINE]
Name=Crafty22.0SMP64bit
Author=Robert Hyatt
Filename=Crafty22_smp64UCI.exe
[OPTIONS]
Program=crafty22_0_SMP_64bit- 022008.exe
InitString=resign 700 3
HashCommand=hash %iM
WhiteScore=true
OwnBook=true
InitTime=5
hash=128
Visible=Ponder,Hash,Extras,Logfile,Computer
log=off
[EXTRAS]
Tournament mode=mode|check|false|normal|tournament
Crafty log=log|check|false|off|on
Learning=learn|spin|7|0|7
NalimovPath=tbpath|string|c:\Tablebases
NalimovCache=cache %iM|spin|16|1|32
Swindle mode=swindle|check|false|off|on
King safety=evaluation kscale|spin|100|0|200
King safety asymmetry=evaluation asymmetry|spin|-40|-100|100
king safety tropism=evaluation bscale|spin|100|0|200
Blocked pawn=evaluation bscale|spin|100|0|200
Pawn structure=evaluation pscale|spin|100|0|200
Passed pawn=evaluation ppscale|spin|100|0|200
In check extension=extensions check 0.%i|spin|99|0|99
One reply extension=extensions onerep 0.%i|spin|75|0|99
Push passed pawn extension=extensions pushpp 0.%i|spin|75|0|99
Recapture extension=extension recapture 0.%i|spin|75|0|99
Mate threat extension=extension mate 0.%i|spin|75|0|99
Pawn hash (MB)=hashp %iM|spin|16|1|64
Time Usage=usage %i|spin|0|-50|50
Use book=book|check|true|off|on
Book Width=book width %i|spin|3|1|10
Book Random=book random|check|true|0|1
Book frequency weight=bookw freq 0.%i|spin|99|0|99
Book win/loss ratio weight=bookw ratio 0.%i|spin|99|0|99
Book static evaluation weight=bookw eval 0.%i|spin|99|0|99
Book learning weight=bookw lrn 0.%i|spin|99|0|99
Noise (Kn)=noise %i000|spin|5000|0|10000Here's my simple layman's tip:egtb
tbpath=c:\tb
cache=16M
hash=128M
hashp=16M
log=off
mode=tournament
swindle on
mt=2
timebook 80 8
smpnice=0
1. Enter Crafty in Shredder-GUI as a UCI engine. (You already know the drill to use the WB2UCI adapter). My setting names are just examples.
Use the first released engine - Feb 20, 2008.
2, For dual-core matches, just set mt=2 in your rc file and mt=1 for single cpu games. It soesn't work well when it is an added option in the WB2UCI.eng file.
3. Now you're done.
I tried that (with the carriage return at the end of the rc file) in the ShredderClassic GUI, WinXP Pro x64, Core 2 Duo E6600.
Doesn't work well : indeed it uses my 2 cores, it ponders when I play a game against Crafty, quite a few moves are OK, then suddenly when Crafty is to move, it says Depth=1 and hangs. I have to terminate the whole thing with the Task Manager!
If I try the Shredder GUI "Shoot-out" (Crafty against Crafty) it immediately hangs with Depth=1, after the last ShredderGUI book move.
Any idea?
Well, there are a lot of things I don't understand:
1. what is the hierarchy of the settings? You have the rc file settings, you have the WB2UCI.eng settings, you have the ShredderClassic GUI settings... what is used, and what is not? In Winboard (which I no longer use), only the rc file was used.
2. Bob says there was a bug in his "first" Crafty 22.0
Have you used a "later" Crafty 22.0?
3. Jim Ablett's crafty_220_ja.zip is very different, concerning his rc file. What is the main difference?
Can your crafty22_0_SMP_64bit- 022008.exe file be replaced by his crafty_x64.exe file?
4. Since the matter only concerns bugs, I would rather first work them out in a Windows 32-bit environment (I have a double boot WinXP Home / WinXP Pro x64). What is your compiled 32-bit Crafty 22.0 and recommended Wb2uci.exe?
Thanks a lot for your efforts, Denis!
-
Dirt
- Posts: 2851
- Joined: Wed Mar 08, 2006 10:01 pm
- Location: Irvine, CA, USA
Re: Crafty 22.0 x64 smp - thanks Bob
Have you tried the Peter Skinner compile? It could have just been bad luck (hardware error?), but I had an error with the JA compile but not the PS one.ernest wrote:Doesn't work well : indeed it uses my 2 cores, it ponders when I play a game against Crafty, quite a few moves are OK, then suddenly when Crafty is to move, it says Depth=1 and hangs. I have to terminate the whole thing with the Task Manager!
-
Denis P. Mendoza
- Posts: 415
- Joined: Fri Dec 15, 2006 9:46 pm
- Location: Philippines
Re: Crafty 22.0 x64 smp - thanks Bob
Ernest
. In Arena and WB, it's obvious that we use it as straight native WB engine, with the rc as our configuration file. It runs well using the first release with SMPNICE=0 (not =1) and the 2nd fixed version with SMPNICE=1 with Robert's "Crafty pondering style in SMP-mode" (or =0 if you still like pondering). No problem here!
In other GUI/s like Fritz and Shredder, we install it as a UCI engine using Odd-Gunnar Malin's WB2UCI adapter. I uploaded a sample pure- 64-bit pack (adapter, engine and config files) as the subject was about the x64 release. The setup is still the same in 32-bit.
In my experience, I could only use the last fixed version using SMPNICE=0 in SMP-mode. Though SMPNICE=1 works well in SINGLE-cpu mode, with the "normal" pondering (different from "Crafty pondering style in SMP-mode" ).
In smp-mode, it exits during opponent's turn, and runs again (like an on-off switch). In single-cpu, it ponders like normal engines.
.The only difference with Jim and my builds is speed and you can use either one. Jim's latest upload (on his site ) was the fixed version, the same as my 022108 (not 022008). I haven't checked again if Peter Skinner re-compiled another set for the fixed version. My previous tests shows the builds were based on first released src. To check, use it in Arena as WB engine and set smpnice=1. If it crashes, it is not the fixed version.
ot just use Jim's compile.
Here's the latest Wb2Uci.exe: http://utilities.sjakk.biz/download/Wb2Uci_1.3_B22.zip
For testing purposes, use these settings:
Wb2Uci.exe
rc file
Just rename your "Wb2Uci.exe" to "Crafty22_smp32UCI.exe" and you're off to a problem-free installation with shredder and Fritz GUI. Thanks.
Denis
To tell you the truth, I had the same experience as you are using it in CB and SC GUI as I am a Winboard and Arena FreakHi Denis,
I tried that (with the carriage return at the end of the rc file) in the ShredderClassic GUI, WinXP Pro x64, Core 2 Duo E6600.
Doesn't work well : indeed it uses my 2 cores, it ponders when I play a game against Crafty, quite a few moves are OK, then suddenly when Crafty is to move, it says Depth=1 and hangs. I have to terminate the whole thing with the Task Manager!
If I try the Shredder GUI "Shoot-out" (Crafty against Crafty) it immediately hangs with Depth=1, after the last ShredderGUI book move.
Any idea?
In other GUI/s like Fritz and Shredder, we install it as a UCI engine using Odd-Gunnar Malin's WB2UCI adapter. I uploaded a sample pure- 64-bit pack (adapter, engine and config files) as the subject was about the x64 release. The setup is still the same in 32-bit.
In my experience, I could only use the last fixed version using SMPNICE=0 in SMP-mode. Though SMPNICE=1 works well in SINGLE-cpu mode, with the "normal" pondering (different from "Crafty pondering style in SMP-mode" ).
If you're using Crafty as a UCI engine (w/ adapter), what I noticed was, the adapter doesn't command the use of processors. So you have to edit mt = n no. of processors. in the rc file. SMPNICE must be also set at rc file. I assume the others will be controlled by the adapter like hash, etc.1. what is the hierarchy of the settings? You have the rc file settings, you have the WB2UCI.eng settings, you have the ShredderClassic GUI settings... what is used, and what is not? In Winboard (which I no longer use), only the rc file was used.
That's right. It was about SMPNICE=1 (pondering in SMP-mode). I used the later version, and it works as it was programmed to do.2. Bob says there was a bug in his "first" Crafty 22.0
Have you used a "later" Crafty 22.0?
Code: Select all
* *
* "smpnice" command turns on "nice" mode where idle *
* processors are terminated between searches to avoid *
* burning CPU time in the idle loop. *
* *You can also use Jim's Crafty rc file or even Peter's parameters. Jim's new rc setup has some added features. It makes the engine more customized3. Jim Ablett's crafty_220_ja.zip is very different, concerning his rc file. What is the main difference?
Can your crafty22_0_SMP_64bit- 022008.exe file be replaced by his crafty_x64.exe file?
I've uploaded a sample: http://www.zshare.net/download/8073377abfef49/4. Since the matter only concerns bugs, I would rather first work them out in a Windows 32-bit environment (I have a double boot WinXP Home / WinXP Pro x64). What is your compiled 32-bit Crafty 22.0 and recommended Wb2uci.exe?
ot just use Jim's compile.
Here's the latest Wb2Uci.exe: http://utilities.sjakk.biz/download/Wb2Uci_1.3_B22.zip
For testing purposes, use these settings:
Wb2Uci.exe
Code: Select all
[ENGINE]
Name=CRAFTY22_0_SMP_32bit
Author=Robert Hyatt
Filename=Crafty22_smp32UCI.exe
[OPTIONS]
Program=CRAFTY22_0_SMP_32bit-022108.exe
InitString=resign 700 3
HashCommand=hash %iM
WhiteScore=true
TerminateHard=true
RunIdle=true
Visible=Ponder,Hash,Extras,Logfile,Computer
[EXTRAS]
Tournament mode=mode|check|false|normal|tournament
NalimovPath=tbpath|string|c:\Tablebases
NalimovCache=cache %iM|spin|16|1|32
Pawn hash (MB)=hashp %iM|spin|16|1|64Code: Select all
egtb
tbpath=c:\Tablebases
cache=16M
hash=128M
hashp=16M
log=off
mode=tournament
swindle on
mt=2
timebook 80 8
smpnice=0
Denis
e-mail: computer.chess@hotmail.com
-
ernest
- Posts: 2053
- Joined: Wed Mar 08, 2006 8:30 pm
Re: Crafty 22.0 x64 smp - thanks Bob
Sorry, Denis, I tried exactly what you said just above, 32-bit, with my dual-core and in my ShredderClassic GUI: it still hangs...Denis P. Mendoza wrote:Just rename your "Wb2Uci.exe" to "Crafty22_smp32UCI.exe" and you're off to a problem-free installation with shredder and Fritz GUI. Thanks.
Denis
Moreover, when I do infinite analysis, I obtain 100% cpu use on the Crafty process (which is normal, since I use both cores). But when I stop the analysis, I still have 50% cpu use on the Crafty process, which of course is not normal. If I then start again the infinite analysis, Crafty hangs, with 0% cpu use.
This is true with your Crafty compile, as well as Ablett's and Skinner's compiles.
I just gave it a try in the Fritz 8 GUI: same thing...
-
Denis P. Mendoza
- Posts: 415
- Joined: Fri Dec 15, 2006 9:46 pm
- Location: Philippines
Re: Crafty 22.0 x64 smp - thanks Bob
Hello Ernest,
I think infinite analysis, especially analyzing positions works only in single-cpu mode. I can't run epd tests in smp-mode either, as it hangs too! Sorry if I can't help you on this.
Denis
I think infinite analysis, especially analyzing positions works only in single-cpu mode. I can't run epd tests in smp-mode either, as it hangs too! Sorry if I can't help you on this.
Denis
e-mail: computer.chess@hotmail.com
-
bob
- Posts: 20943
- Joined: Mon Feb 27, 2006 7:30 pm
- Location: Birmingham, AL
Re: Crafty 22.0 x64 smp - thanks Bob
The only way this can happen involves one of the following:ernest wrote:Sorry, Denis, I tried exactly what you said just above, 32-bit, with my dual-core and in my ShredderClassic GUI: it still hangs...Denis P. Mendoza wrote:Just rename your "Wb2Uci.exe" to "Crafty22_smp32UCI.exe" and you're off to a problem-free installation with shredder and Fritz GUI. Thanks.
Denis
Moreover, when I do infinite analysis, I obtain 100% cpu use on the Crafty process (which is normal, since I use both cores). But when I stop the analysis, I still have 50% cpu use on the Crafty process, which of course is not normal. If I then start again the infinite analysis, Crafty hangs, with 0% cpu use.
This is true with your Crafty compile, as well as Ablett's and Skinner's compiles.
I just gave it a try in the Fritz 8 GUI: same thing...
(1) you do not have the second 22.0 that was released about 1 day after the first release. That version was broken.
(2) if you do have the second version, for it to use processor time while not pondering requires that you add "smpnice=0" to your crafty.rc/.craftyrc file, as that turns off "nice mode" and will produce the situation you describe.
The current 22.0, with mt=2, ponder=off, no other crafty.rc file options will use both processors when thinking, and will use nothing when waiting on the opponent to move...