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.
Some questions about Crafty
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
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
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 linuxCode: Select all
make helpOr 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
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...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.
-
sje
- Posts: 4675
- Joined: Mon Mar 13, 2006 7:43 pm
Re: Some questions about Crafty
On my Mac Pro (Mac O/S X 10.7.5), I get:bob wrote:... my Macbook, which uses gcc 4.7.2 ...
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)
-
Michel
- Posts: 2292
- Joined: Mon Sep 29, 2008 1:50 am
Re: Some questions about Crafty
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.
licenced under the GPL2.
-
sje
- Posts: 4675
- Joined: Mon Mar 13, 2006 7:43 pm
Re: Some questions about Crafty
Maybe. If so, there's nothing I can do about it. But why is Bob's gcc version what it is?Michel wrote:Perhaps it has something to do with the fact that Apple rejects software licenced under the GPL3?
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
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.2sje wrote:On my Mac Pro (Mac O/S X 10.7.5), I get:bob wrote:... my Macbook, which uses gcc 4.7.2 ...Is my machine with its 4.2.1 that far behind?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)
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
Download macports, then you can download any version of gcc you want...sje wrote:Maybe. If so, there's nothing I can do about it. But why is Bob's gcc version what it is?Michel wrote:Perhaps it has something to do with the fact that Apple rejects software licenced under the GPL3?
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)
-
sje
- Posts: 4675
- Joined: Mon Mar 13, 2006 7:43 pm
Re: Some questions about Crafty
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.bob wrote:Download macports, then you can download any version of gcc you want...
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.