Crafty 25.0 Release

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

Moderator: Ras

bob
Posts: 20943
Joined: Mon Feb 27, 2006 7:30 pm
Location: Birmingham, AL

Re: Crafty 25.0 Release

Post by bob »

F.Huber wrote:
bob wrote: I hate to ask, but why are you crippling your hardware with a 32 bit OS?
Yes, you're right, I must be stupid! :shock:
You won't believe it, but I'm even stupid enough to sometimes use a 'crippled' chess engine (called Crafty), which is a few hundred Elo weaker than the current free top-engines. :P

Franz
Nowhere did I say "you are stupid." I asked a simple and direct question, now knowing if you were aware that a 32 bit OS cripples a 64 bit processor badly.

Why you use crafty (few hundred Elo weaker than top engines) is a question only YOU can answer. I simply don't test on 32 bit machines (which are nearly impossible to find today, anyway) since 64 bits is "the standard" everywhere now. Apparently Microsoft doesn't do much 32 bit testing either considering that Eugene's code won't run correctly there either, for unknown reasons. And he was a microsoft C++ compiler guy to boot...

This is the main reason I quit providing executables 15 years ago. Too many different machines, with quirky O/S installs, weird library setups, you-name-it. The source runs on everything, if you know how to compile it, and assuming your system is not configured so oddly that nothing works right.

But running a 32 bit OS is "way out there..." I might even dredge up a copy of windows 3.1 to let you run in 16 bit mode if you want...
bob
Posts: 20943
Joined: Mon Feb 27, 2006 7:30 pm
Location: Birmingham, AL

Re: Crafty 25.0 Release

Post by bob »

Roger Brown wrote:
F.Huber wrote:
bob wrote: I hate to ask, but why are you crippling your hardware with a 32 bit OS?
Yes, you're right, I must be stupid! :shock:
You won't believe it, but I'm even stupid enough to sometimes use a 'crippled' chess engine (called Crafty), which is a few hundred Elo weaker than the current free top-engines. :P

Franz
Hello Franz,

Not going to go with you with the sarcasm, but I can confirm that the 32 bit compile on a 64 bit system (Windows 8.1) ignores whatever setting I use in the crafty.rc file. The console output is similar to what you posted earlier.

The 64 bit compile is fine.

Something is broken somewhere it would seem...

And I am a Crafty user too.

Oh, the shame of it!

Later.
Roger:

If you are compiling your own, and have a little time, I can give you some debug things to try to see where this is breaking with 32 bit compiles.

Probably the first thing I would suspect is that this is broken on a 32 bit compile:

segments[1] =
(void *) (((uintptr_t) segments[0] + alignment - 1) & ~(alignment - 1));

I'd bet that uintptr_t type is causing some issues. I would hope it knows to do such things correctly, and not try to use a 64 bit value which will immediately fail..
User avatar
cdani
Posts: 2204
Joined: Sat Jan 18, 2014 10:24 am
Location: Andorra

Re: Crafty 25.0 Release

Post by cdani »

I can only make Crafty run on 8 cores :-(
I'm trying in a 2 x Xeon E5-2670, but it uses only 25% of the machine (i.e. 50% because it has Hyprethreading activated).
Don't know why is doing like this.
User avatar
cdani
Posts: 2204
Joined: Sat Jan 18, 2014 10:24 am
Location: Andorra

Re: Crafty 25.0 Release

Post by cdani »

I compiled two 32 bit versions:

crafty25_32.exe: 32 bit compile able to run on only 1 cpu.
crafty25_32n.exe: 32 bit compile able to run on only 1 cpu, without popcnt for old cpus.

They are compatible with Windows XP :-)

http://www.andscacs.com/crafty/crafty25_32.zip
schack
Posts: 179
Joined: Thu May 27, 2010 3:32 am

Re: Crafty 25.0 Release

Post by schack »

Question: how to complile this for Windows 64bit using gcc and mingw?

I'm new to compiling my own engines, but I am now doing so with the beta versions of Stockfish (because of false virus alarms) using this template:

http://support.stockfishchess.org/kb/ad ... on-windows
User avatar
velmarin
Posts: 1600
Joined: Mon Feb 21, 2011 9:48 am

Re: Crafty 25.0 Release

Post by velmarin »

cdani wrote:I can only make Crafty run on 8 cores :-(
I'm trying in a 2 x Xeon E5-2670, but it uses only 25% of the machine (i.e. 50% because it has Hyprethreading activated).
Don't know why is doing like this.
My executable is defined how limits cpus 8, thinking about Graham tournament, I only have 4 cores.
You can try with LLVM-clang in visual studio, compiles perfectly.
http://llvm.org/builds/
bob
Posts: 20943
Joined: Mon Feb 27, 2006 7:30 pm
Location: Birmingham, AL

Re: Crafty 25.0 Release

Post by bob »

cdani wrote:I can only make Crafty run on 8 cores :-(
I'm trying in a 2 x Xeon E5-2670, but it uses only 25% of the machine (i.e. 50% because it has Hyprethreading activated).
Don't know why is doing like this.
What happens you use mt=16? if it complains, it simply means it was compiled with -DCPUS=8. If you compile your own, change 8 to 16 or whatever you want to use.
Sean Evans
Posts: 1777
Joined: Thu Jun 05, 2008 10:58 pm
Location: Canada

Re: Crafty 25.0 Release

Post by Sean Evans »

Why does anyone really care about Crafty anymore? There are plenty of free engines and commercial engines that are far better than Crafty. Give it a rest!

Thank you,

Sean
styx
Posts: 338
Joined: Tue Mar 13, 2012 9:59 pm
Location: Germany

Re: Crafty 25.0 Release

Post by styx »

that is a flawed logic. let's say komodo is the strongest chess engine at the moment: following your logic everyone else can stop developing because there already is a stronger chess engine. this would be really boring. and the komodo teams motivation improving the engine would probably be not as high as it is, when stockfish is still in the race.

everyone has the right to develop whatever he/she wants. and as you can see: people do care for different reasons
supersharp77
Posts: 1262
Joined: Sat Jul 05, 2014 7:54 am
Location: Southwest USA

Re: Crafty 25.0 Release

Post by supersharp77 »

Frank Quisinsky wrote:Hi Bob,

could be different reasons!?

One of my:
Not a secret that I like 32bit compiles too. On older systems I like it to start older Winboard engines vs. newer, "more modern" engines. Most of older engines are 32bit only. It's nice to compare without to have all the playing strength additive / modern options, like x64, BMI2, AVX, POP, SSE3, SSE4, SSE42 other things.

How strong could be Ruffian 2.1 BMI2 x64?
I don't know!

But I can compare Ruffian 2.1 w32 with Crafty 25 w32 if I like.

For an example ...

Best
Frank

PS 1:
Could you compile Crafty 25 x64 ... maybe with BMI2 optimations (if possible)?

PS 2:
On my Dual Pentium III 733Mhz I am using Windows NT ...
Other example ... good enough if I am playing vs. engines.

PS 3:
Crafty is a cult engine. Should be running on each system. With other words, it should be possible to run Crafty on my washing machine processor ... of course with some tricks.

:-)
Thank You Frank Q! Could not have put it better myself......need to compare Crafy 25.0 to all the other billions of Crafty w32 models that have come before.......of course the engine creators would love to test w64 vs w32 compiles so they can say....wow see how much stronger my engine is? ( yep but apples to oranges comparison).....w32 should be tested vs w32 and w64 vs w64 engines.....in my opinion....AR :wink:

a "working" w32 Crafty 25.0 is a must..........