PAPI for testing instructions

Open discussion of PAPI.

PAPI for testing instructions

Postby melodious » Sun Apr 03, 2011 6:50 pm

Hello everyone,

I have a question about using PAPI. I am wondering can PAPI measure the number of a specific instructions to be executed?
For example, a matrix multiplication assembly code (generated by the gcc flag -S) may contain both vectorized instruction (mulps) and scalar instruction (mulss), can PAPI measure the number of execution of such instructions?

Thanks in advance.
melodious
 
Posts: 1
Joined: Sun Apr 03, 2011 6:39 pm

Re: PAPI for testing instructions

Postby vweaver1 » Mon Apr 04, 2011 11:14 am

melodious wrote:I have a question about using PAPI. I am wondering can PAPI measure the number of a specific instructions to be executed?
For example, a matrix multiplication assembly code (generated by the gcc flag -S) may contain both vectorized instruction (mulps) and scalar instruction (mulss), can PAPI measure the number of execution of such instructions?


It might be possible to measure this using PAPI. It depends on what processor you are running on. You'll have to check the native events available on your processor to see if it supports measuring events of this type.

A better option though might be to use a binary-instrumentation tool such at Pin to gather this data.
vweaver1
 
Posts: 50
Joined: Wed Feb 17, 2010 4:02 pm


Return to General discussion

Who is online

Users browsing this forum: Yahoo [Bot] and 2 guests