Crafty 21.6 - My site has been updated.

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

Moderator: Ras

User avatar
Peter Skinner
Posts: 1763
Joined: Sun Feb 26, 2006 1:49 pm
Location: Edmonton, Alberta, Canada
Full name: Peter Skinner

Crafty 21.6 - My site has been updated.

Post by Peter Skinner »

Hello everyone,

I just uploaded some new files to my site:

http://www.webkikr.net

Crafty-21.6x86 (32 bit build)
Crafty-21.6x64 (64 bit build)
Crafty-21.6xp3 (Build for older systems. P3 and such)

I also uploaded new books that are compatible, and have all learning cleared so they don't influence rating lists.

Enjoy,

If there are any problems, feel free to leave me a pm.

Peter
I was kicked out of Chapters because I moved all the Bibles to the fiction section.
User avatar
Denis P. Mendoza
Posts: 415
Joined: Fri Dec 15, 2006 9:46 pm
Location: Philippines

Re: Crafty 21.6 - My site has been updated.

Post by Denis P. Mendoza »

Thanks for the compiles.

But since you have some experience compiling this new version on 64-bit, could you give tips how the original Crafty 21.6 src was compiled. My experience was compiling it on 32-bit with ICC 10 and MSVC 2005 was easy (with minor editing of chess.h and utility.c) except when I attempted on 64-bit. I only managed to build a 64-bit compile using a fixed src from Jim Ablett for single cpu. 64-bit SMP (Windows) compiles for this version is a hard one, considering that I'm new to this platform. A little help is highly appreciated. Thanks.
User avatar
Peter Skinner
Posts: 1763
Joined: Sun Feb 26, 2006 1:49 pm
Location: Edmonton, Alberta, Canada
Full name: Peter Skinner

Re: Crafty 21.6 - My site has been updated.

Post by Peter Skinner »

I use makefiles that I tailor to suit the build I am doing, or I just use the command like from MSVS 2005 SP1.

Here are the build command lines that I use:

64bit (Intel):

cl /nologo /w /favor:EM64T /Ox /Gr /GL /D_CONSOLE /DWIN64 /Zm500 /DNT_i386 /DHASHSTATS /DFAST /DEPD /DEGTB6 /MT /DSMP /DCPUS=8 /DNT_INTEREX /DVC_INLINE_ASM crafty.c egtb.cpp

64.bit (AMD):

cl /nologo /w /favor:AMD64 /Ox /Gr /GL /D_CONSOLE /DWIN64 /Zm500 /DNT_i386 /DHASHSTATS /DFAST /DEPD /DEGTB6 /MT /DSMP /DCPUS=8 /DNT_INTEREX /DVC_INLINE_ASM crafty.c egtb.cpp

64bit (blended):

cl /nologo /w /favor:blend /Ox /Gr /GL /D_CONSOLE /DWIN64 /Zm500 /DNT_i386 /DHASHSTATS /DFAST /DEPD /DEGTB6 /MT /DSMP /DCPUS=8 /DNT_INTEREX /DVC_INLINE_ASM crafty.c egtb.cpp

32bit build:

cl /nologo /w /Ox /arch:SSE2 /Gr /GL /D_CONSOLE /DWIN32 /Zm500 /DNT_i386 /DFAST /DEPD /DEGTB6 /DHASHSTATS /MT /DSMP /DCPUS=8 /DNT_INTEREX /DVC_INLINE_ASM crafty.c egtb.cpp

Older CPU Build:

cl /nologo /w /Ox /Gr /GL /D_CONSOLE /DWIN32 /Zm500 /DNT_i386 /DFAST /DEGTB6 /DHASHSTATS /MT /DSMP /DCPUS=8 /DNT_INTEREX /DVC_INLINE_ASM crafty.c egtb.cpp

There is now a link to my PGO makefiles on the website as well.

Just invoke them with:
nmake -f pgi.xp
nmake -f pgo.xp

I hope this helps.
I was kicked out of Chapters because I moved all the Bibles to the fiction section.
User avatar
Denis P. Mendoza
Posts: 415
Joined: Fri Dec 15, 2006 9:46 pm
Location: Philippines

Re: Crafty 21.6 - My site has been updated.

Post by Denis P. Mendoza »

I'm using Microsoft Visual Studio 2005
Version 8.0.50727.762 (SP.050727-7600).

I've been trying some prepocessor definitions and macros on my command lnes, some mentioned in your switches. But I have to try these combinations again (before complaining :D ).

I'll keep posted till I finally succeeded. Many thanks again.
User avatar
Denis P. Mendoza
Posts: 415
Joined: Fri Dec 15, 2006 9:46 pm
Location: Philippines

Re: Crafty 21.6 - My site has been updated.

Post by Denis P. Mendoza »

That was a quick one! I finally did it. There's no pgo yet, but it would come later.
------------------------------------------------------------------------------
To those interested, just exclude '#include "dgt.c"' from crafty.c and that's it - for this 64-bit AMD version.
The usual add/change from crafty (as informed by Jim Ablett) was:
add '#define inline __inline' to 'chess.h'
add 'typedef unsigned long DWORD_PTR;' to 'utility.c'
comment out 'dgt.c' from 'crafty.c'
I make use of this scheme when compiling 32-bit versions.
------------------------------------------------------------------------------

Thanks again Peter. I bet some threads related to this has been answered!
User avatar
Peter Skinner
Posts: 1763
Joined: Sun Feb 26, 2006 1:49 pm
Location: Edmonton, Alberta, Canada
Full name: Peter Skinner

Re: Crafty 21.6 - My site has been updated.

Post by Peter Skinner »

Denis P. Mendoza wrote:That was a quick one! I finally did it. There's no pgo yet, but it would come later.

To those interested, just exclude '#include "dgt.c"' from crafty.c and that's it - for this 64-bit AMD version.

Thanks again Peter. I bet some threads related to this has been answered!
Yes you have to remove the dgt.c from the Crafty source to build with MSVS 2005. That is a file meant for Linux anyways, so it is not important to Windows users.

Peter
I was kicked out of Chapters because I moved all the Bibles to the fiction section.
User avatar
Peter Skinner
Posts: 1763
Joined: Sun Feb 26, 2006 1:49 pm
Location: Edmonton, Alberta, Canada
Full name: Peter Skinner

Re: Crafty 21.6 - My site has been updated.

Post by Peter Skinner »

Denis P. Mendoza wrote: The usual add/change from crafty (as informed by Jim Ablett) was:
add '#define inline __inline' to 'chess.h'
add 'typedef unsigned long DWORD_PTR;' to 'utility.c'
These are changes to the source if you are using the Intel compiler. MSVC++ doesn't need them to compile win32 or win64 executables.

Just remove the dgt.c from crafty.c and you are good to go.
I was kicked out of Chapters because I moved all the Bibles to the fiction section.
User avatar
Denis P. Mendoza
Posts: 415
Joined: Fri Dec 15, 2006 9:46 pm
Location: Philippines

Re: Crafty 21.6 - My site has been updated.

Post by Denis P. Mendoza »

Peter Skinner wrote:
Denis P. Mendoza wrote: The usual add/change from crafty (as informed by Jim Ablett) was:
add '#define inline __inline' to 'chess.h'
add 'typedef unsigned long DWORD_PTR;' to 'utility.c'
These are changes to the source if you are using the Intel compiler. MSVC++ doesn't need them to compile win32 or win64 executables.

Just remove the dgt.c from crafty.c and you are good to go.

Thanks for the clarification. I was previously using these changes as ICC was my primary C/C++ compiler then. MSVC 2005 is just my latest pet after upgrading my old MSVC 6.

Thanks also for the pgo makefiles.