Community
cancel
Showing results for 
Search instead for 
Did you mean: 
yuali
Beginner
88 Views

How Can I count the flops of my code using VTune?

Thank you!! ................Urgent needed!!
0 Kudos
5 Replies
bnshah
Beginner
88 Views

What processor are you trying to do this on?
yuali
Beginner
88 Views

I am sorry. I think I have made a mistake. I need to count the floating point operation in my code. I have a PC with Pentium III and a PC with Pentium IV. Thanks!
bnshah
Beginner
88 Views

On the Pentium 4 you can use the event x87 Instructions Retired. On the PIII you can use the event FP Operations Retired. However these will not give you a true meaning of FLOPs since they do not count floating point calculations using the SSE and SSE2 instructions (Pentium 4 only). Generally when calculating FLOPs you looking at you algorithm at a high level and see how many floating point operations there are per iteration. Than you multiply that by the total interations and divide by the execution time.
yuali
Beginner
88 Views

Thank you so much! I only need the number of floating point operations in my code. So I needn't divide by the excutive time, right?
bnshah
Beginner
88 Views

Correct
Reply