Analyzers
Talk to fellow users of Intel Analyzer tools (Intel VTune™ Profiler, Intel Advisor)
5000 Discussions

Counting Individual Floating point operations

ah105
Beginner
352 Views

Hi,

I would like to count the instructionsof individual ALU and floating pointoperations (ADD, MULT, COMP, DIV, ...).

Platform: Linux Mandrake 10.2/ 2.6.11-6mdksmp/i686 Intel D 3.2GHz/VTune 9.0

For base optimization (-O2), i found that my application triggers the followingCPU events:

"x87 Instructions Retired" and"Packed Single-precision Floating-point Streaming SIMD Extension Instructions Retired".

I use vtl command line,

vtl activity -c sampling -o "-ec en='x87 Instructions Retired' -app $SCRIPT -moi $APPL run

I checked Vtune users guide and found some intersting events. example:

****************************************

DIV

Event Code: 0x13

Mask: 0x00

Category: Floating Point Events;

Definition: Divide operations executed.

Description: This event counts the number of divide operations executed. This includes integer divides, floating point divides and square-root operations executed.

******************************************

Can i use this event on my CPU. IF yes, how can i do it. Any work around!!??

A friends advised to look at PIN, what do you think?

http://www.intel.com/cd/ids/developer/asmo-na/eng/microprocessors/ia32/pentium4/optimization/183095.htm

Abed

0 Kudos
0 Replies
Reply