Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: optimizing loops question

Author: Omid David Tabibi

Date: 09:05:32 07/20/03

Go up one level in this thread


On July 20, 2003 at 11:49:22, Dieter Buerssner wrote:

>On July 20, 2003 at 11:44:12, Omid David Tabibi wrote:
>
>>On July 20, 2003 at 11:32:48, Tom Likens wrote:
>>
>>>On July 20, 2003 at 09:48:39, Omid David Tabibi wrote:
>>>
>>>[--snip--]
>>>
>>>>Use Intel VTune Performance Analyzer
>>>>http://www.intel.com/software/products/vtune/ , it has a trial period of one
>>>>month. Using the "function call" profiling, it provides you with a wealth of
>>>>information about the efficiency of your functions. I think the old rule of
>>>>80-20 applies also in computer chess: 80% of the time is spent in 20% of the
>>>>functions. Finding those 20% and optimizing them can be easier using a profiler.
>>>
>>>For some reason the new VTune 7.0 trial period is only 7 days (I've got
>>>six days left).  I really like VTune.  It is *very* powerful, but the
>>>learning curve can be steep.
>>
>>Well, I use only the function call feature of VTune, and it is quite simple to
>>use. I haven't tried other profiling options...
>
>If you are only (or mainly) interested in the times spent inside functions (and
>functions called inside those), you could try gprof in combination with gcc. I
>find it very easy to use, too. Basically I add -pg to the options for compiling
>and linking, run the executable, and then start gprof and look at the output.

Yes, I've tried it, however VTune presents the data in a gaphical view so that
you can easily spot the bottlenecks.

I assume that in addition to function time VTune provides wealth of other
information which can be of use in optimizing a chess engine. Maybe more
experienced VTune users coulod mention a few of the additional handy features.


>
>Regards,
>Dieter



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.