Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Speedups for BitBoard programs on 64-bit machines

Author: Robert Hyatt

Date: 07:49:28 06/09/02

Go up one level in this thread


On June 09, 2002 at 10:30:32, Uri Blass wrote:

>On June 09, 2002 at 09:32:06, Georg v. Zimmermann wrote:
>
>>this is done on
>>
>>source code -> optimization -> machine code
>>
>>level. No *source code* is changed.
>>
>>Georg v. Zimmermann
>
>I do not understand what I need to do.
>
>Bob hyatt explained that I need to compile twice when the first compile is
>before running some special program and the second compile is after running it.
>
>I have no idea how to do 2 things:
>
>1)what to write in the special program?


Nothing.  You just compile with profiling enabled, then run _your_ chess
program thru a set of positions you think represents what goes on in a real
chess game.



>2)how to use the special program to help the cmpiler?

After doing (1) above, you simply re-compile, but this time rather than
telling the compiler to produce profiling output when the program is run,
you tell it to use the profiling output already available to make the
executable even more efficient.  IE with the Intel 6.0 Compiler I use on
Linux, I do the following:

1.  Compile with -prof_gen

2.  run crafty on a set of chess positions including opening, middlegame,
endgame, tactical (win material) and tactical (deep forced mates).

3.  recompile, but remove the -prof_gen and add -prof_use which says to use
the profile info from step (2) to make the executable even faster.

The new executable will be significantly faster than the executable that is
produced by just compiling normally without either prof_gen or prof_use options
set...








>
>I need to see some simple example:for example how to do profile based
>optimization for tscp.
>
>
>Your reply does not help me because
>I have no idea where to find
>source code -> optimization -> machine code
>
>I have the following words in the screen of my computer(when I work on my
>program):
>file,edit,view,insert,project,build,tools,window,help


I think Eugene mentioned that visual C++ doesn't have this option yet.  You
can download Intel's C compiler and use it, or wait for the next visual C++
compiler version which will support profile-feedback compiling.




>
>I do not see source code->optimization->machine code to click on.
>
>If I choose build->profile then I get the announcment that the project is not up
>to date or was not build with profiling enabled.
>
>I do not know how to enable profiling and even if I find out how to do it
>I do not know how to use it.
>
>The only optimization that I have is optimize for speed.
>
>Uri



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.