Some questions about Crafty

Discussion of chess software programming and technical issues.

Moderator: Ras

Joerg Oster
Posts: 992
Joined: Fri Mar 10, 2006 4:29 pm
Location: Germany
Full name: Jörg Oster

Some questions about Crafty

Post by Joerg Oster »

Is the JA compile of Crafty 23.6 for Linux without SMP enabled?
I have smpmt=6 in my crafty.rc file, but Crafty uses only 1 thread. The Windows build does use 6 threads ...
Well, it's a bit weird to run the Windows compile if a Linux compile is also available, isn't it?

How do I compile Crafty with gcc?
Typing 'make' I get an error, as I don't have the Intel Compiler.

In this Thread http://talkchess.com/forum/viewtopic.php?t=47930 Bob mentions 500 test positions. Are they somewhere available? Currently I have no access to his ftp site.
Or does someone else have some non-tactical midgame positions for testing purposes?

Background is I want to do some SMP investigations with Crafty and Stockfish.
Jörg Oster
zullil
Posts: 6442
Joined: Tue Jan 09, 2007 12:31 am
Location: PA USA
Full name: Louis Zulli

Re: Some questions about Crafty

Post by zullil »

Joerg Oster wrote: How do I compile Crafty with gcc?
Typing 'make' I get an error, as I don't have the Intel Compiler.

Code: Select all

make linux
should work.

Code: Select all

make help
will list other options.

Or look at the Makefile and edit! Or add a target.
bob
Posts: 20943
Joined: Mon Feb 27, 2006 7:30 pm
Location: Birmingham, AL

Re: Some questions about Crafty

Post by bob »

Joerg Oster wrote:Is the JA compile of Crafty 23.6 for Linux without SMP enabled?
I have smpmt=6 in my crafty.rc file, but Crafty uses only 1 thread. The Windows build does use 6 threads ...
Well, it's a bit weird to run the Windows compile if a Linux compile is also available, isn't it?

How do I compile Crafty with gcc?
Typing 'make' I get an error, as I don't have the Intel Compiler.

In this Thread http://talkchess.com/forum/viewtopic.php?t=47930 Bob mentions 500 test positions. Are they somewhere available? Currently I have no access to his ftp site.
Or does someone else have some non-tactical midgame positions for testing purposes?

Background is I want to do some SMP investigations with Crafty and Stockfish.
I don't remember the exact option... but if you look at the various "linux" flavors of targets in the Makefile, at least a couple have CC = gcc already... If you will email me, I can send you the slightly modified Makefile I use on my Macbook, which uses gcc 4.7.2 and has a PGO run built in...
User avatar
sje
Posts: 4675
Joined: Mon Mar 13, 2006 7:43 pm

Re: Some questions about Crafty

Post by sje »

bob wrote:... my Macbook, which uses gcc 4.7.2 ...
On my Mac Pro (Mac O/S X 10.7.5), I get:

Code: Select all

$ g++ --version
i686-apple-darwin11-llvm-g++-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
Is my machine with its 4.2.1 that far behind?
Michel
Posts: 2292
Joined: Mon Sep 29, 2008 1:50 am

Re: Some questions about Crafty

Post by Michel »

Perhaps it has something to do with the fact that Apple rejects software licenced under the GPL3? It might might be that gcc 4.2 was the last gcc
licenced under the GPL2.
User avatar
sje
Posts: 4675
Joined: Mon Mar 13, 2006 7:43 pm

Re: Some questions about Crafty

Post by sje »

Michel wrote:Perhaps it has something to do with the fact that Apple rejects software licenced under the GPL3?
Maybe. If so, there's nothing I can do about it. But why is Bob's gcc version what it is?

The situation on my Year 2000 iMac (O/S X 10.5) is even further behind:

Code: Select all

$ g++ --version
powerpc-apple-darwin8-g++-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build 5367)
bob
Posts: 20943
Joined: Mon Feb 27, 2006 7:30 pm
Location: Birmingham, AL

Re: Some questions about Crafty

Post by bob »

sje wrote:
bob wrote:... my Macbook, which uses gcc 4.7.2 ...
On my Mac Pro (Mac O/S X 10.7.5), I get:

Code: Select all

$ g++ --version
i686-apple-darwin11-llvm-g++-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
Is my machine with its 4.2.1 that far behind?
When I got my macbook, first thing I installed was xcode. Which comes with apple's version of gcc (clang). It would not compile an executable of Crafty that would execute, even though it was working on every other platform on the planet. I used macports and downloaded 4.7.2

cc version 4.7.2 (MacPorts gcc47 4.7.2_2+universal)

and it worked perfectly. I can't say how far behind 4.2 is, but it is definitely "back there"

Apple clang version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn)

Is what came on my macbook. I've had it about 8-9 months.

Good box to work on. dual core 2.0ghz i7
bob
Posts: 20943
Joined: Mon Feb 27, 2006 7:30 pm
Location: Birmingham, AL

Re: Some questions about Crafty

Post by bob »

sje wrote:
Michel wrote:Perhaps it has something to do with the fact that Apple rejects software licenced under the GPL3?
Maybe. If so, there's nothing I can do about it. But why is Bob's gcc version what it is?

The situation on my Year 2000 iMac (O/S X 10.5) is even further behind:

Code: Select all

$ g++ --version
powerpc-apple-darwin8-g++-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build 5367)
Download macports, then you can download any version of gcc you want...
User avatar
sje
Posts: 4675
Joined: Mon Mar 13, 2006 7:43 pm

Re: Some questions about Crafty

Post by sje »

bob wrote:Download macports, then you can download any version of gcc you want...
Thanks, I just might do this. Some years ago I did install this or something like it in order to install some GNU/Linux programs. I later decided that the extra system administration work was more than the benefit gained, so since then I run non-native Mac stuff on a Linux box.

I am not happy with the direction that Apple has taken over the past five years or so. They have lost interest in providing for those with machines more than three or four years old, and they've also lost interest in providing for the high-end, general purpose (i.e., non-Apple specific) developers.