Collecting performance counters of parallel programs by PAPI

Open discussion of PAPI.

Collecting performance counters of parallel programs by PAPI

Postby khaleghzadeh » Fri Jun 26, 2015 10:25 am

Hi all,

As you know, PAPI can be attached to a thread by PAPI_attach option. There is a question about this option. I would be thankful if someone answer me. Consider a PThread application consists of one main thread and two worker threads (Thread-0 and Thread-1) both run on core-0. If I define an Eventset collecting L1 misses of Thread-0 (the eventset has been attached to Thread-0), could you tell me the Eventset only collects L1 misses originate only form Thread-0 or it counts L1 misses from both Thread-0 and Thread-1?

Thanks
khaleghzadeh
 
Posts: 2
Joined: Fri Jun 26, 2015 10:06 am

Re: Collecting performance counters of parallel programs by

Postby s_ragate » Fri Jun 26, 2015 1:31 pm

I think, when you attach papi eventset to a thread, the eventset counts should be specific to that thread IF AND ONLY IF it is a bound or kernel thread. More information on using PAPI for parallel program can be found in the following link,

http://icl.cs.utk.edu/projects/papi/wiki/Threads

Hope this answers your question.
s_ragate
 
Posts: 7
Joined: Fri Apr 10, 2015 1:55 pm


Return to General discussion (read-only)

Who is online

Users browsing this forum: No registered users and 4 guests

cron