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

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

yuali
Beginner
688 Views
Thank you!! ................Urgent needed!!
0 Kudos
5 Replies
bnshah
Beginner
688 Views
What processor are you trying to do this on?
0 Kudos
yuali
Beginner
688 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!
0 Kudos
bnshah
Beginner
688 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.
0 Kudos
yuali
Beginner
688 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?
0 Kudos
bnshah
Beginner
688 Views
Correct
0 Kudos
Reply