Crafty 22.0 Windows x64 available

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

Moderator: Ras

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

Re: Crafty 22.0 x64 smp - thanks Bob

Post by bob »

Ómar wrote:Thanks Werner but sorry it´s still pondering on its opponents time :evil: :evil: :evil:
Yes I´m using notepad2 and the PS builds and my comp is like yours,
AMD with dual core.
But thanks again for your help.
It is common for GUIs to override the ponder=off. For example, using xboard you need to use the option -xponder/-ponder to disable/enable pondering. What happens is that xboard/winboard starts crafty, which then immediately reads the crafty.rc/.craftyrc file and sets options as specified, then xboard will send additional commands that can override these settings. "hard" or "easy" are two good examples that turn pondering on or off _after_ the .rc file has been processed...

In console/text mode, I can guarantee you that ponder=off will not let crafty think while the opponent is on move. But with the various GUIs around, they control everything after initialization is done...
bob
Posts: 20943
Joined: Mon Feb 27, 2006 7:30 pm
Location: Birmingham, AL

Re: Crafty 22.0 x64 smp - thanks Bob

Post by bob »

rhollay wrote:
Werner wrote:
Ómar wrote:Hi Werner,

Can you please post here the .rc file that did help you at last.
(I don´t understand this: - as the 2nd carrige return after the word exit in the .rc file helped.)

Best regards.
Ok, once more then crafty.rc:

mt=2
egtb
tbpath=J:\tbs
ponder=off
hash=384M
hashp=128M
cache=32M
log=off
exit

as you see here is a free line after the word exit - this is necessary!

and the wrong version was:

mt=2
egtb
tbpath=J:\tbs
ponder=off
hash=384M
hashp=128M
cache=32M
log=off
exit
this was my version before: no free line after the word exit.

Does this help you?
On my WindowsXP (32bit) all Crafty 32 bit SMP builds I have regularly use to ponder during opponent's time (Crafty 19.19-smp, 19.20-smp,
v21.6 ....).
I tried all your suggestions, there is CR/LF after every line.
When started from command prompt it says "pondering disabled", still it uses 25% processor time while it's poor Scorpio's time to think.

Probably this behavior is not tied to 64bit builds of new versions.
I cannot find a solution.

(Oh, it's an Intel Core2Duo, Arena 1.99 beta5)
Are you playing fast games?

On a core-2 duo, your 25% is not possible. If both use 2 threads, each will get 100% of one cpu, or 50% of total machine. If crafty is not pondering, and you are not using the new version with smpnice=1, then while the opponent is thinking, it will get 2/3 of the entire machine and crafty will get 1/3 since it has one process spinning while the opponent is running 2.

25% is not possible unless you play very fast games, and get into the case where task manager is slow enough in updating that it begins to blend the two engine cpu totals toegether since things happen between screen updates...

Since you say "when started from the command line it still uses one processor all the time" that suggests that you are not using the most recent 22.0 version, which will not behave like that...
User avatar
rhollay
Posts: 150
Joined: Wed Mar 08, 2006 8:26 pm

Re: Crafty 22.0 x64 smp - thanks Bob

Post by rhollay »

bob wrote:
rhollay wrote:
Werner wrote:
Ómar wrote:Hi Werner,

Can you please post here the .rc file that did help you at last.
(I don´t understand this: - as the 2nd carrige return after the word exit in the .rc file helped.)

Best regards.
Ok, once more then crafty.rc:

mt=2
egtb
tbpath=J:\tbs
ponder=off
hash=384M
hashp=128M
cache=32M
log=off
exit

as you see here is a free line after the word exit - this is necessary!

and the wrong version was:

mt=2
egtb
tbpath=J:\tbs
ponder=off
hash=384M
hashp=128M
cache=32M
log=off
exit
this was my version before: no free line after the word exit.

Does this help you?
On my WindowsXP (32bit) all Crafty 32 bit SMP builds I have regularly use to ponder during opponent's time (Crafty 19.19-smp, 19.20-smp,
v21.6 ....).
I tried all your suggestions, there is CR/LF after every line.
When started from command prompt it says "pondering disabled", still it uses 25% processor time while it's poor Scorpio's time to think.

Probably this behavior is not tied to 64bit builds of new versions.
I cannot find a solution.

(Oh, it's an Intel Core2Duo, Arena 1.99 beta5)
Are you playing fast games?

On a core-2 duo, your 25% is not possible. If both use 2 threads, each will get 100% of one cpu, or 50% of total machine. If crafty is not pondering, and you are not using the new version with smpnice=1, then while the opponent is thinking, it will get 2/3 of the entire machine and crafty will get 1/3 since it has one process spinning while the opponent is running 2.

25% is not possible unless you play very fast games, and get into the case where task manager is slow enough in updating that it begins to blend the two engine cpu totals toegether since things happen between screen updates...

Since you say "when started from the command line it still uses one processor all the time" that suggests that you are not using the most recent 22.0 version, which will not behave like that...
Sorry, but true. And yes, I use Crafty v21.6-smp because I cannot find v22.0 for my 32bit WindowsXP.
Just tried with longer time controls (60 min.), and when it's Scorpio's turn then
Task Manager shows 72-75% fluctuation of CPU activity for Scorpio 2.0-smp and 25-28% for Crafty 21.6-smp.
On the other hand, when Crafty thinks then it uses 98-99% of CPU.
bob
Posts: 20943
Joined: Mon Feb 27, 2006 7:30 pm
Location: Birmingham, AL

Re: Crafty 22.0 x64 smp - thanks Bob

Post by bob »

rhollay wrote:
bob wrote:
rhollay wrote:
Werner wrote:
Ómar wrote:Hi Werner,

Can you please post here the .rc file that did help you at last.
(I don´t understand this: - as the 2nd carrige return after the word exit in the .rc file helped.)

Best regards.
Ok, once more then crafty.rc:

mt=2
egtb
tbpath=J:\tbs
ponder=off
hash=384M
hashp=128M
cache=32M
log=off
exit

as you see here is a free line after the word exit - this is necessary!

and the wrong version was:

mt=2
egtb
tbpath=J:\tbs
ponder=off
hash=384M
hashp=128M
cache=32M
log=off
exit
this was my version before: no free line after the word exit.

Does this help you?
On my WindowsXP (32bit) all Crafty 32 bit SMP builds I have regularly use to ponder during opponent's time (Crafty 19.19-smp, 19.20-smp,
v21.6 ....).
I tried all your suggestions, there is CR/LF after every line.
When started from command prompt it says "pondering disabled", still it uses 25% processor time while it's poor Scorpio's time to think.

Probably this behavior is not tied to 64bit builds of new versions.
I cannot find a solution.

(Oh, it's an Intel Core2Duo, Arena 1.99 beta5)
Are you playing fast games?

On a core-2 duo, your 25% is not possible. If both use 2 threads, each will get 100% of one cpu, or 50% of total machine. If crafty is not pondering, and you are not using the new version with smpnice=1, then while the opponent is thinking, it will get 2/3 of the entire machine and crafty will get 1/3 since it has one process spinning while the opponent is running 2.

25% is not possible unless you play very fast games, and get into the case where task manager is slow enough in updating that it begins to blend the two engine cpu totals toegether since things happen between screen updates...

Since you say "when started from the command line it still uses one processor all the time" that suggests that you are not using the most recent 22.0 version, which will not behave like that...
Sorry, but true. And yes, I use Crafty v21.6-smp because I cannot find v22.0 for my 32bit WindowsXP.
Just tried with longer time controls (60 min.), and when it's Scorpio's turn then
Task Manager shows 72-75% fluctuation of CPU activity for Scorpio 2.0-smp and 25-28% for Crafty 21.6-smp.
On the other hand, when Crafty thinks then it uses 98-99% of CPU.
Then I am not sure what this discussion is doing in this thread. The using one cpu all the time was a known issue in 21.6 and it was not fixed until 22.0... for 21.6 there is no solution. For 22.0 it should work perfectly now, with the most recent version.
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 »

Ok for those still having issues, I have made an .rc file for those to download.

The settings are as follows:

mt=2
egtb
hash=384M
hashp=128M
cache=32M
ponder=off
smpnice=1
log=off
exit


Now when you get it, edit the tablebase path. ie: edit egtb to read tbpath=<path to your tbs>. Edit the hash settings as you see fit.

MAKE ABSOLUTELY SURE WHEN SAVING IT AGAIN THAT THERE IS AN EXTRA BLANK LINE AFTER THE "EXIT".

crafty.rc download

If you are not sure what to do and I will create an rc file for you. Just pm me on this board and leave your email address or email me directly off the website.

I will be looking at the Chessbase issues in a few mins. I just got home from working and once I eat I will tackle that problem and will post a working wb2uci file.

Peter
I was kicked out of Chapters because I moved all the Bibles to the fiction section.
peter
Posts: 3423
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 »

bob wrote:
peter wrote:
I don't follow your last sentence. With smpnice=1, which is now the default, crafty will not use _any_ cpu time once it makes a move, as the second process is terminated instantly upon making a move (the message "terminating SMP processes" is produced when this happens).

So I don't understand what you mean by using up to 25%???
My problem is, I cannot keep myself from trying to make Crafty run in chessbase or Shredder gui. More than the questionable point of activity of both cores, for which I need the mt=2 not only in .rc but also in Wb2UCI adaptor which leads to remain activity of at least 25, mostly 50% of both cores in time of ponder off, these GUIs suffer from hanging up after a move of Crafty. I've thried it with ponder off, ponder=off, space character after each command of .rc, no spaces between the lines, with and without blank line after exit.
I understand quite well, Shredder and chessbase ist not your point and I don't want to question that neither to waste your time, just to answer to your kind regard
regards
Peter.
:)
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 - Arena 1.99 beta 5

Post by Werner »

Hi all,
I tried to start a second match and used Arena 1.99 beta4:
It does not work correct. So I installed Arena 1.99 beta 5 in another folder:
Now the match is running correctly. I am sorry - I do not know why as I use the same configuration.
As I remember Arena 1.1 did work too.
regards
Werner
User avatar
Denis P. Mendoza
Posts: 415
Joined: Fri Dec 15, 2006 9:46 pm
Location: Philippines

Re: Crafty 22.0 x64 smp - Arena 1.99 beta 5

Post by Denis P. Mendoza »

Hello Bob,

The windows compiling issue on 32 and 64-bit was already corrected on my part. It was always my experience at the first trials. :oops: . The differences on the src builds followed what you mentioned in your threads. It was only tested in Arena GUI. Chessbase GUI usage is a different case!

The build from second src dated Feb 21, 2008 doesn't ponder during opponents move but exits (as seen on the taskbar ), then runs again when it's time to move. This means "smpnice" is working, even without setting it at rc file - by default.

So when you set smpnice=1 using builds from first src date Feb 2, 2008, a so-called "crash will occur. I see it as this (correct me if I'm wrong). Since the code has wrong implementation of smpnice, Crafty22(Feb.20) will not run again after exiting the first legal move. but without it in the rc parameters, Crafty will run normally like before, but ponders during opponents move.

SMPNICE now should work as defined:

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.                     *
 *                                                          *
I stand corrected on my statements. Thanks.

BTW, this new Crafty is really stronger than I expected, even beats the new Toga in most of my blitz games :D.

Denis
Ómar

Re: Crafty 22.0 x64 smp - thanks Bob

Post by Ómar »

Hi Peter,

Your .rc file don´t work here. Not in Arena 1.1 or Arena 1.99 beta 5.
And there was an extra line after exit. (I am using Notepad2)
While thinking on its first move out of book the hash goes down to 0
and the engine can´t move.
peter
Posts: 3423
Joined: Sat Feb 16, 2008 7:38 am
Full name: Peter Martan

Re: Crafty 22.0 x64 smp - Arena 1.99 beta 5

Post by peter »

Denis P. Mendoza wrote:Hello Bob,

The windows compiling issue on 32 and 64-bit was already corrected on my part. It was always my experience at the first trials. :oops: . The differences on the src builds followed what you mentioned in your threads. It was only tested in Arena GUI. Chessbase GUI usage is a different case!

The build from second src dated Feb 21, 2008 doesn't ponder during opponents move but exits (as seen on the taskbar ), then runs again when it's time to move. This means "smpnice" is working, even without setting it at rc file - by default.

So when you set smpnice=1 using builds from first src date Feb 2, 2008, a so-called "crash will occur. I see it as this (correct me if I'm wrong). Since the code has wrong implementation of smpnice, Crafty22(Feb.20) will not run again after exiting the first legal move. but without it in the rc parameters, Crafty will run normally like before, but ponders during opponents move.

SMPNICE now should work as defined:

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.                     *
 *                                                          *
I stand corrected on my statements. Thanks.

BTW, this new Crafty is really stronger than I expected, even beats the new Toga in most of my blitz games :D.

Denis
As for my experiences with Crafty 22 under chessbase and Shredder GUI, the problem is, that with none of the many tried .rc files I see both cores of dual processor working without the option mt=2 not only in .rc but also in the Wb2UCI.eng file besides the .exe name of Crafty. Even if this worked fine for a while, I don't get more than one legal move from Crafty in Shredder GUI with this certain Wb2UCI.eng file. Leaving the mt=2 out of the .eng brings back normal working but with one core only
regards
Peter.