Crafty 24.1

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

Moderators: hgm, Rebel, chrisw

User avatar
cdani
Posts: 2204
Joined: Sat Jan 18, 2014 10:24 am
Location: Andorra

Crafty 24.1

Post by cdani »

Hi!
Norbert asked me to do a 32 bits compile of Crafty 24.1. Here it is:

http://www.andscacs.com/crafty/crafty24.1.rar

And here the vc solution I created with the sources:

http://www.andscacs.com/crafty/crafty24.1_sln.rar

In the first file there are 3 versions:
crafty24.1 -> 32 bits with popcnt
crafty24.1n -> 32 bits without popcnt
crafty24.1_x64 -> 64 bits with popcnt

The 3st file is because someone did not find a 64 bits compile that worked for his system, and my version worked for it.

The changes I have done to be able to compile it are mostly the same I have done for the other version:

*#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:

Code: Select all

#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.

size_t -> unsigned long long

* New change:
pthread_t NumaStartThread(void *func, void *args);
->
void * NumaStartThread(void *func, void *args);

Anything just tell me.
User avatar
Sylwy
Posts: 4467
Joined: Fri Apr 21, 2006 4:19 pm
Location: IASI - the historical capital of MOLDOVA
Full name: SilvianR

Re: Merci, Daniel !

Post by Sylwy »

Works well on my system ! :lol:

Aux grands hommes, la patrie reconnaissante !

S :wink: R