Page 1 of 1

PAPI to monitor a C program

PostPosted: Wed Feb 12, 2014 5:20 am
by solsys12
I wrote a C program (lets say A) and used the papi_attach() to attach the counters to an already C code( say B).
Now the program B can be anything ranging from a simple multiplication program to a multithreaded programs to write in files. The program A correctly measures for single threaded program B, but shows incorrect result for parallel write program.
The question is, can program A be used to monitor an already running program B which can use fork() or multiple threads, correctly???

Re: PAPI to monitor a C program

PostPosted: Thu May 28, 2015 9:06 pm
by MrDalek
Where you ever able to get this to work?