Page 1 of 1

Setting granularity level

PostPosted: Wed Feb 12, 2014 6:12 am
by solsys12
I was trying to set the granularity level to per process instead of per thread by
int retval = PAPI_set_granularity(2); and
even tried
retval = PAPI_set_cmp_granularity(PAPI_GRN_PROC,0);

can anyone please point out the error and if possible correct the function call.

Re: Setting granularity level

PostPosted: Fri Mar 28, 2014 7:39 am
by Armagetron
The documentation for PAPI_get_opt says that the granularity functions are not yet implemented. What you can try is to monitor each thread inside your application manually.