jagode00 wrote:It sounds like you only initialize PAPI for the main thread before forking a child thread. Did I understand you correctly? If so then it makes sense that you only see misses for the parent thread. When the main thread creates a child thread then the child does not inherit any PAPI information from the calling thread. Have a look at the ctests/fork.c example.
heike
main(){
int status, events[], num_events;
printf("Main thread");
if (fork()==0){
printf("child");
initi_PAPI();
PAPI_start_counters(events, num_events);
//start benchmarks
execve(bench, argv, envp);
}else{
wait(&status)
PAPI_read_counters(values, num_events);
}
PAPI_shutdown();
}
Return to Classic PAPI (read-only)
Users browsing this forum: No registered users and 1 guest