Crafty v24.0

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

Moderators: bob, hgm, Harvey Williamson

Forum rules
This textbox is used to restore diagrams posted with the [d] tag before the upgrade.
Norbert Raimund Leisner
Posts: 1602
Joined: Tue May 20, 2008 2:57 pm
Location: Augsburg - Germany

Crafty v24.0

Post by Norbert Raimund Leisner » Wed May 28, 2014 4:20 am

Hello,

http://www.kikrtech.com/ contains two x64 versions of Crafty 24.0,
but no win32 edition. The source code seems to be still from v23.8.

Any comments?

Best wishes,
Norbert

Modern Times
Posts: 2419
Joined: Thu Jun 07, 2012 9:02 pm

Re: Crafty v24.0

Post by Modern Times » Wed May 28, 2014 5:12 am

Norbert Raimund Leisner wrote:
Any comments?

Norbert
Yes. Neither of the exes in that package run on my AMD Phenom II X6. Previous Crafty versions have been fine.

Norbert Raimund Leisner
Posts: 1602
Joined: Tue May 20, 2008 2:57 pm
Location: Augsburg - Germany

Re: Crafty v24.0

Post by Norbert Raimund Leisner » Thu May 29, 2014 9:06 am

Can anybody of you build functioning Windows binaries for 32/64 bit-systems of Crafty 24.0 source code, please?

URL ~ http://www.cis.uab.edu/hyatt/crafty/source/

Norbert

Modern Times
Posts: 2419
Joined: Thu Jun 07, 2012 9:02 pm

Re: Crafty v24.0

Post by Modern Times » Thu May 29, 2014 9:28 am

Peter Skinner is onto it, see the thread in the programming section.

Jamal Bubker
Posts: 266
Joined: Mon May 24, 2010 2:32 pm

Re: Crafty v24.0

Post by Jamal Bubker » Fri May 30, 2014 9:14 pm

Thanks Norbert for reporting this new release and Thanks to Bob for having worked on this new release 8-)

User avatar
cdani
Posts: 2104
Joined: Sat Jan 18, 2014 9:24 am
Location: Andorra
Contact:

Re: Crafty v24.0

Post by cdani » Wed Jun 11, 2014 10:07 pm

Hi!

Norbert asked me to create a 32 bit compile of Crafty 24. Here it is:

http://www.andscacs.com/crafty24_32bits.rar

And here the vc++ solution I used to compile it:

http://www.andscacs.com/crafty24sln_32bits.rar

I have no big experience on compiling or optimizing, so sure can be improved.

bob
Posts: 20641
Joined: Mon Feb 27, 2006 6:30 pm
Location: Birmingham, AL

Re: Crafty v24.0

Post by bob » Thu Jun 12, 2014 1:33 am

cdani wrote:Hi!

Norbert asked me to create a 32 bit compile of Crafty 24. Here it is:

http://www.andscacs.com/crafty24_32bits.rar

And here the vc++ solution I used to compile it:

http://www.andscacs.com/crafty24sln_32bits.rar

I have no big experience on compiling or optimizing, so sure can be improved.
Did you have to make any source changes? Peter was having trouble getting a 32 bit compile without errors, yet 64 bit compiled as cleanly as always...

User avatar
cdani
Posts: 2104
Joined: Sat Jan 18, 2014 9:24 am
Location: Andorra
Contact:

Re: Crafty v24.0

Post by cdani » Thu Jun 12, 2014 5:36 am

bob wrote: Did you have to make any source changes? Peter was having trouble getting a 32 bit compile without errors, yet 64 bit compiled as cleanly as always...
I put the list here. May be some of them are not necessary of can be tweaked in a nicer way, but I don't know other way of doing them.

*#ifndef and #define on every top of .h

* modify two things on lock.h:

Code: Select all

extern void Pause();

Code: Select all

//#    include <windows.h>
#include <intrin.h>
#    pragma intrinsic (_InterlockedExchange&#41;
* create lock.c :

Code: Select all

#include "lock.h"

void Pause&#40;) &#123;
&#125;
* #include "meu.h" on every top of .h. Unnecessary if you compile from commandline and add a couple of /d.

* meu.h:
#ifndef MEU_INCLUDED
# define MEU_INCLUDED
#define WIN32
#define _DEBUG
#define _CONSOLE
#define NT_i386
#define CPUS 4
#endif

* Added standard inittypes.h. When compiling it said that don't found it.

I think that's all.

User avatar
cdani
Posts: 2104
Joined: Sat Jan 18, 2014 9:24 am
Location: Andorra
Contact:

Re: Crafty v24.0

Post by cdani » Thu Jun 12, 2014 6:48 am

And also I commented all the includes in crafty.c.
It's a bit rudimentary but it's the first way I found that it compiles.

Anyway the modified code it's in the solution file I linked.

Norbert Raimund Leisner
Posts: 1602
Joined: Tue May 20, 2008 2:57 pm
Location: Augsburg - Germany

Re: Crafty v24.0

Post by Norbert Raimund Leisner » Thu Jun 12, 2014 9:19 am

Hello Dani,

I had the intention to make a 40/20 min-match between Andscacs 0.64-32 and Crafty 24.0 win32 under WinBoard-GUI 4.7.3a
http://www.open-aurec.com/wbforum/viewt ... 19&t=51528

Both engines can be embedded into this interface of course, but before Crafty 24.0 executes its first move, a Windows XP message is visible:

crafty 24.exe-error in application

The command in "0x0045747b" allocates to the storage in "0x92c40be0". The procedure "read" could not be executed from the storage"

Click on "OK", to finish the program.


Astonishing:

Just a double mouse-click on the Crafty 24.0 executable file shows normally a window with an inscript like other Crafty versions before:
unable to open book file [books\bin]
book is disabled
unable to open book file [books\bin]
Initializing multiple threads
System is SMP, not NUMA
Crafty v24.0 <1 cpus>
White <1> _

Best wishes,
Norbert

Post Reply