Analyzers
Support for Analyzers (Intel VTune™ Profiler, Intel Advisor, Intel Inspector)
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.
4680 Discussions

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

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