Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: need help in compiling Crafty

Author: Peter Skinner

Date: 10:38:57 02/18/05

Go up one level in this thread


On February 18, 2005 at 13:34:35, Eugene Nalimov wrote:

>On February 18, 2005 at 13:30:09, Peter Skinner wrote:
>
>>On February 18, 2005 at 12:43:20, Eugene Nalimov wrote:
>>
>>>2 remarks:
>>>
>>>(1) You mentioned /GL -- that is link-time code genration, not POGO. Did you
>>>really compiled with POGO, e.g. built instrumented version, trained it, and then
>>>built optimized one?
>>>
>>>(2) Output that you provided says "System is SMP, not NUMA". When I start Carfty
>>>of Windows Server on AMD64 it correctly recognizes it as NUMA. I am not sure who
>>>is guilty here -- Windows XP or BIOS settings. If later than there should be a
>>>way to turn NUMA support on.
>>>
>>>Thanks,
>>>Eugene
>>
>>In the help file it states you first have to use the /GL switch to enable the
>>possiblility of POGO compiles.
>>
>>If I read it right, you have to use the /GL switch first to compile the .c nodes
>>to objects, then use /LTCG:PGINSTRUMENT to generate the exe with the pgi file,
>>then train it, and then recompile using the trained info.
>
>Yes, exactly so. But you can also use /GL by itself -- usually it provides nice
>speedup over "plain" /O2 (or /Ox).
>
>Thanks,
>Eugene

Interesting that I right...

Then the question of why I can not get it to work. This is what I am doing:

I first compile the .c nodes using this:

cl /G6 /GL /Gs /GA /GF /GT /Gr /MT /arch:SSE /DSMP /DCPUS=4 /DNT_INTEREX
/DNT_i386 /DWIN32 /D_CONSOLE /DWINDOWS /DFAST /DEGTB6 /DEPD /DFUTILITY
/DVC_INLINE_ASM crafty.c egtb.cpp -c

Then I use:

cl /G6 /LTCG:PGINSTRUMENT /Gs /GA /GF /GT /Gr /MT /arch:SSE /DSMP /DCPUS=4
/DNT_INTEREX /DNT_i386 /DWIN32 /D_CONSOLE /DWINDOWS /DFAST /DEGTB6 /DEPD
/DFUTILITY /DVC_INLINE_ASM crafty.obj egtb.obj

Here is where I get stuck. There is no empty pgi file generated.

Where exactly am I going wrong?

Peter



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.