chess.h has the code
# define CPUS=1
but I think it should be
# define CPUS 1
Crafty 21.6
Moderator: Ras
-
Dirt
- Posts: 2851
- Joined: Wed Mar 08, 2006 10:01 pm
- Location: Irvine, CA, USA
-
Erik Roggenburg
Re: Crafty 21.6
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.
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
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...Dirt wrote:Thanks.
-
bob
- Posts: 20943
- Joined: Mon Feb 27, 2006 7:30 pm
- Location: Birmingham, AL
Re: Crafty 21.6 - smpnice -
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...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):
-
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
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.bob wrote: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...Dirt wrote:Thanks.
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.
-
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
Hi Greg,
Jim.
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.unless Jim did something different when he made the single CPU version.
Jim.
-
Dirt
- Posts: 2851
- Joined: Wed Mar 08, 2006 10:01 pm
- Location: Irvine, CA, USA
Problem found, SMP version now 1% faster!
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.bob wrote:<stuff>
-
Guetti
Re: Crafty 21.6
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
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.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.