Community
cancel
Showing results for 
Search instead for 
Did you mean: 
SB17
Beginner
129 Views

how to get report about load/store and flop operations of source code

Jump to solution

Hello

There is a need to understand how many load / store operations and how many flop contains the source code. Is it possible to get such statistics by the Intel compiler ?

0 Kudos
1 Solution
TimP
Black Belt
129 Views

What's relatively easy to get is opt-report4 (for current releases; closest thing previously was opt-report6).  This will give you some of that for vectorized loops.

A compiler has no chance of getting you total counts which depend on adding up loop counts and intervening code.

As experts have said again recently, if you want that, your own assessment is probably best.  

There are some counters accessible by VTune et al. for certain CPU models, but that may not be what you're looking for.

Questions include do you count AVX2 fma as 1 or 2 flops, how do you count parallel and scalar simd instructions, .... for which you won't find much unanimity.

View solution in original post

2 Replies
TimP
Black Belt
130 Views

What's relatively easy to get is opt-report4 (for current releases; closest thing previously was opt-report6).  This will give you some of that for vectorized loops.

A compiler has no chance of getting you total counts which depend on adding up loop counts and intervening code.

As experts have said again recently, if you want that, your own assessment is probably best.  

There are some counters accessible by VTune et al. for certain CPU models, but that may not be what you're looking for.

Questions include do you count AVX2 fma as 1 or 2 flops, how do you count parallel and scalar simd instructions, .... for which you won't find much unanimity.

View solution in original post

SB17
Beginner
129 Views

You answer create many right question :)

Turns out that static analysis based on compilator is too imprecise

Thanks for your reply

 

Reply