Crafty 21.6

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

Moderator: Ras

jwes
Posts: 778
Joined: Sat Jul 01, 2006 7:11 am

Re: Crafty 21.6

Post by jwes »

chess.h has the code

# define CPUS=1

but I think it should be

# define CPUS 1
Dirt
Posts: 2851
Joined: Wed Mar 08, 2006 10:01 pm
Location: Irvine, CA, USA

Crafty 21.6 single cpu 7.6% faster on my computer

Post by Dirt »

Jim Ablett wrote:Crafty 21.6 win32 Intel Compiler 10 p.g.o (single-cpu)

http://mihd.net/frxlg3

Jim.
Thanks.
Erik Roggenburg

Re: Crafty 21.6

Post by Erik Roggenburg »

I'm using Crafty in the Fritz 10 GUI via Wb2Uci.

I can't seem to make it run with 2 threads.

I'd appreciate it if someone could share their Wb2Uci set ups and Crafty.rc information with me.

I need to include Crafty in my little ratings list.
bob
Posts: 20943
Joined: Mon Feb 27, 2006 7:30 pm
Location: Birmingham, AL

Re: Crafty 21.6 single cpu 7.6% faster on my computer

Post by bob »

Dirt wrote:
Jim Ablett wrote:Crafty 21.6 win32 Intel Compiler 10 p.g.o (single-cpu)

http://mihd.net/frxlg3

Jim.
Thanks.
Makes no sense to me. On my machines, compiling without SMP is a bare fraction of one percent. There is only one if-test that gets executed in search, once for each node searched. No way it can be 7% of the total time...
bob
Posts: 20943
Joined: Mon Feb 27, 2006 7:30 pm
Location: Birmingham, AL

Re: Crafty 21.6 - smpnice -

Post by bob »

Werner wrote:Hi,
this command does not work:


Initializing multiple threads.
System is SMP, not NUMA.
EPD Kit revision date: 1996.04.21
unable to open book file [./book.bin].
book is disabled
unable to open book file [./books.bin].
hash table memory = 384M bytes.
pawn hash table memory = 24M bytes.
EGTB cache memory = 8 bytes.
use 'settc' command if a game is restarted after crafty
has been terminated for any reason.
tournament mode.
ERROR "smpnice=1 " is unknown rc-file option
max threads set to 2

Crafty v21.6 (2 cpus)

White(1):
I understand. It was originally in 21.6 but as we made lots of changes over the past few months, it was apparently lost. It is now in 21.7 safely and will not be lost again...
Dirt
Posts: 2851
Joined: Wed Mar 08, 2006 10:01 pm
Location: Irvine, CA, USA

Re: Crafty 21.6 single cpu 7.6% faster on my computer

Post by Dirt »

bob wrote:
Dirt wrote:
Jim Ablett wrote:Crafty 21.6 win32 Intel Compiler 10 p.g.o (single-cpu)

http://mihd.net/frxlg3

Jim.
Thanks.
Makes no sense to me. On my machines, compiling without SMP is a bare fraction of one percent. There is only one if-test that gets executed in search, once for each node searched. No way it can be 7% of the total time...
I checked again, with similar results. This time I ran in safe mode (to make sure I got a different memory layout) and got only a slightly smaller difference in time. The speedup actually increased to 8.11% due to everything speeding up in safe mode.

I'm don't doubt you about the extra instructions not taking that much time. Given that, my guess is that the memory footprint of the new compile fits my computer's cache better; unless Jim did something different when he made the single CPU version.
User avatar
Jim Ablett
Posts: 2360
Joined: Fri Jul 14, 2006 7:56 am
Location: London, England
Full name: Jim Ablett

Re: Crafty 21.6 single cpu 7.6% faster on my computer

Post by Jim Ablett »

Hi Greg,
unless Jim did something different when he made the single CPU version.
No difference. Compile options/switches identical. I only made changes to the source (adding some missing defines) to get it to compile without including the smp stuff.

Jim.
Dirt
Posts: 2851
Joined: Wed Mar 08, 2006 10:01 pm
Location: Irvine, CA, USA

Problem found, SMP version now 1% faster!

Post by Dirt »

bob wrote:<stuff>
To test I had just removed the crafty.rc file from my Crafty directory and compared it (using the bench command) against the Crafty in the directory created by unzipping the single CPU distribution. What I had overlooked is that Jim included a crafty.rc in his distribution, which gave his version an advantage.
Guetti

Re: Crafty 21.6

Post by Guetti »

I have a problem that one thread doesn't get killed when I quit crafty while it is searching. This happens only when 4 threads are used. Could somebody try this on another system? It could be specific to my setup with OS X.
Tony Thomas

Re: Crafty 21.6

Post by Tony Thomas »

Guetti wrote:I have a problem that one thread doesn't get killed when I quit crafty while it is searching. This happens only when 4 threads are used. Could somebody try this on another system? It could be specific to my setup with OS X.
May be you should read the rest of the thread, that's exactly what they are talking about. By using the command BOB mentioned, you will be able to get around the problem, in version 21.7.