Is this fast? (Crafty-22.2)

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

Moderator: Ras

krazyken

Re: Is this fast? (Crafty-22.2)

Post by krazyken »

OK got a recompile that compares now thanks!

Code: Select all

max threads set to 2
White(1): bench
Running benchmark. . .
......
Total nodes: 24609043
Raw nodes per second: 5493089.955357
Total elapsed time: 4.480000

zullil
Posts: 6442
Joined: Tue Jan 09, 2007 12:31 am
Location: PA USA
Full name: Louis Zulli

Re: Is this fast? (Crafty-22.2)

Post by zullil »

krazyken wrote:OK got a recompile that compares now thanks!

Code: Select all

max threads set to 2
White(1): bench
Running benchmark. . .
......
Total nodes: 24609043
Raw nodes per second: 5493089.955357
Total elapsed time: 4.480000

I have one of my own that seems comparable in speed to the one you provided (which I downloaded and ran on my machine for comparison). On my 2 GHz Core 2 Duo MacBook:

Code: Select all

hash table memory =  768K bytes.

Crafty v22.4 (2 cpus)

White(1): bench
Running benchmark. . .
......
Total nodes: 37327719
Raw nodes per second: 4161395.652174
Total elapsed time: 8.970000
I notice that compiling with -DSKILL (which I did in the past) results in a slightly slower binary.

For what it's worth, here's the relevant portion of my Makefile:

Code: Select all

CC=icc CXX=icpc \
                CFLAGS='$(CFLAGS) -ipo -mdynamic-no-pic -O2 -no-prec-div -static -m64 -prof-use' \
                CXFLAGS=$(CFLAGS) \
                LDFLAGS=$(LDFLAGS) \
                LIBS='-lpthread -lstdc++' \
                opt='$(opt) -DCPUS=2 -DINLINE64 \ 
I'm not sure that I made good use of the PGO; it seemed to give almost no gain in speed.

Seems rather amazing to me to be getting four million nps on a low-end laptop!
bob
Posts: 20943
Joined: Mon Feb 27, 2006 7:30 pm
Location: Birmingham, AL

Re: Is this fast? (Crafty-22.2)

Post by bob »

one note: optimally you don't use more than one processor for the bench command. Doing so introduces the "jitter" caused by the parallel search. When you use more than one processor, the only number that is meaningful is the nps number (why it displays that many fractional digits is unknown, I am going to fix that right now)...
krazyken

Re: Is this fast? (Crafty-22.2)

Post by krazyken »

zullil wrote:
I'm not sure that I made good use of the PGO; it seemed to give almost no gain in speed.

Seems rather amazing to me to be getting four million nps on a low-end laptop!
You can certainly download my binary to try on your laptop, for comparison. I posted the link in the crafty 22.4 thread.
zullil
Posts: 6442
Joined: Tue Jan 09, 2007 12:31 am
Location: PA USA
Full name: Louis Zulli

Re: Is this fast? (Crafty-22.2)

Post by zullil »

krazyken wrote: You can certainly download my binary to try on your laptop, for comparison. I posted the link in the crafty 22.4 thread.

:D Did that. Please read the (whole!) post to which you replied.

Thanks for making your binary available by the way. I was going to make mine available until I reread the license agreement that came with the icc compiler I downloaded for evaluation:

3. LICENSE RESTRICTIONS:

i. EVALUATION LICENSE: If you are using the Materials under the control of an Evaluation license, you as an individual may use the Materials only for internal evaluation purposes and only for the term of the evaluation time period, which is controlled by the license key code for the Materials. NOTWITHSTANDING ANYTHING TO THE CONTRARY ELSEWHERE IN THIS AGREEMENT, YOU MAY NOT DISTRIBUTE ANY PORTION OF THE MATERIALS, AND THE APPLICATION AND/OR PRODUCT DEVELOPED BY YOU MAY ONLY BE USED FOR EVALUATION PURPOSES AND ONLY FOR THE TERM OF THE EVALUATION PERIOD.
bob
Posts: 20943
Joined: Mon Feb 27, 2006 7:30 pm
Location: Birmingham, AL

Re: Is this fast? (Crafty-22.2)

Post by bob »

zullil wrote:
krazyken wrote: You can certainly download my binary to try on your laptop, for comparison. I posted the link in the crafty 22.4 thread.

:D Did that. Please read the (whole!) post to which you replied.

Thanks for making your binary available by the way. I was going to make mine available until I reread the license agreement that came with the icc compiler I downloaded for evaluation:

3. LICENSE RESTRICTIONS:

i. EVALUATION LICENSE: If you are using the Materials under the control of an Evaluation license, you as an individual may use the Materials only for internal evaluation purposes and only for the term of the evaluation time period, which is controlled by the license key code for the Materials. NOTWITHSTANDING ANYTHING TO THE CONTRARY ELSEWHERE IN THIS AGREEMENT, YOU MAY NOT DISTRIBUTE ANY PORTION OF THE MATERIALS, AND THE APPLICATION AND/OR PRODUCT DEVELOPED BY YOU MAY ONLY BE USED FOR EVALUATION PURPOSES AND ONLY FOR THE TERM OF THE EVALUATION PERIOD.
Switch to linux, and the icc compiler is free with no such restrictions other than you can't use it for a commercial application.
krazyken

Re: Is this fast? (Crafty-22.2)

Post by krazyken »

zullil wrote:
krazyken wrote: You can certainly download my binary to try on your laptop, for comparison. I posted the link in the crafty 22.4 thread.

:D Did that. Please read the (whole!) post to which you replied.
Whoops it was late. I read it and missed it! so I got about the same speeds as you?

The Intel license is a bit fuzzy, and varies depending on the OS you use it under which is crazy. But number of faster chess engines you can get for the price make it a worthwhile purchase.

THE APPLICATION AND/OR PRODUCT DEVELOPED BY YOU
They don't define "developed by" and in general use compiling is not the same as developing. But I'd recommend buying it anyway as it may be cheaper than legal fees.
zullil
Posts: 6442
Joined: Tue Jan 09, 2007 12:31 am
Location: PA USA
Full name: Louis Zulli

Re: Is this fast? (Crafty-22.2)

Post by zullil »

krazyken wrote:so I got about the same speeds as you?
Mine were the tiniest bit better, at least on five benches with each binary.

My results:

Code: Select all

Results for Louis:
Procyon: ~/Desktop] ./crafty-22.4 hash=1M 'book off'
hash table memory =  768K bytes.
book file disabled.

Crafty v22.4 (1 cpus)

White(1): bench
Running benchmark. . .
......
Total nodes: 29798325
Raw nodes per second: 2063595.914127
Total elapsed time: 14.440000
White(1): quit
Procyon: ~/Desktop] ./crafty-22.4 hash=1M 'book off'
hash table memory =  768K bytes.
book file disabled.

Crafty v22.4 (1 cpus)

White(1): bench
Running benchmark. . .
......
Total nodes: 29798325
Raw nodes per second: 2065025.987526
Total elapsed time: 14.430000
White(1): quit
Procyon: ~/Desktop] ./crafty-22.4 hash=1M 'book off'
hash table memory =  768K bytes.
book file disabled.

Crafty v22.4 (1 cpus)

White(1): bench
Running benchmark. . .
......
Total nodes: 29798325
Raw nodes per second: 2063595.914127
Total elapsed time: 14.440000
White(1): quit
Procyon: ~/Desktop] ./crafty-22.4 hash=1M 'book off'
hash table memory =  768K bytes.
book file disabled.

Crafty v22.4 (1 cpus)

White(1): bench
Running benchmark. . .
......
Total nodes: 29798325
Raw nodes per second: 2069328.125000
Total elapsed time: 14.400000
White(1): quit
Procyon: ~/Desktop] ./crafty-22.4 hash=1M 'book off'
hash table memory =  768K bytes.
book file disabled.

Crafty v22.4 (1 cpus)

White(1): bench
Running benchmark. . .
......
Total nodes: 29798325
Raw nodes per second: 2065025.987526
Total elapsed time: 14.430000
White(1): quit
Your results:

Code: Select all

Results for Kenny:
Procyon: ~/Desktop] ./crafty hash=1M 'book off'
hash table memory =  768K bytes.
book file disabled.

Crafty v22.4 (1 cpus)

White(1): bench
Running benchmark. . .
......
Total nodes: 29798325
Raw nodes per second: 2036795.967191
Total elapsed time: 14.630000
White(1): quit
Procyon: ~/Desktop] ./crafty hash=1M 'book off'
hash table memory =  768K bytes.
book file disabled.

Crafty v22.4 (1 cpus)

White(1): bench
Running benchmark. . .
......
Total nodes: 29798325
Raw nodes per second: 2055056.896552
Total elapsed time: 14.500000
White(1): quit
Procyon: ~/Desktop] ./crafty hash=1M 'book off'
hash table memory =  768K bytes.
book file disabled.

Crafty v22.4 (1 cpus)

White(1): bench
Running benchmark. . .
......
Total nodes: 29798325
Raw nodes per second: 2050813.833448
Total elapsed time: 14.530000
White(1): quit
Procyon: ~/Desktop] ./crafty hash=1M 'book off'
hash table memory =  768K bytes.
book file disabled.

Crafty v22.4 (1 cpus)

White(1): bench
Running benchmark. . .
......
Total nodes: 29798325
Raw nodes per second: 2055056.896552
Total elapsed time: 14.500000
White(1): quit
Procyon: ~/Desktop] ./crafty hash=1M 'book off'
hash table memory =  768K bytes.
book file disabled.

Crafty v22.4 (1 cpus)

White(1): bench
Running benchmark. . .
......
Total nodes: 29798325
Raw nodes per second: 2052226.239669
Total elapsed time: 14.520000
White(1): quit