I would like to learn whether it is possible to use attach() function with any process such as an already running application on the system which is not created (forked) using the papi code.
I am trying to run an MPI code and then my papi code to collect counter values for the MPI application not the papi code itself.
Can you give me a small example for this.
