initializes the PAPI library

Open discussion of PAPI.

initializes the PAPI library

Postby Rabab Mohammad » Tue May 29, 2012 4:51 pm

How are you all?
I need your help
I have problem when I initialized the PAPI library. it causes error when I started to use this function PAPI_library_init. How I can solve this error?
I read about it is because "the event definition file and library are the same version". what dose that mean?
int main()
{
int i, maxthr, retval;
long long elapsed_us, elapsed_cyc;
char errstring[PAPI_MAX_STR_LEN];

retval = PAPI_library_init(PAPI_VER_CURRENT);
if (retval != PAPI_VER_CURRENT){
PAPI_perror(retval,errstring,PAPI_MAX_STR_LEN);
printf("%s:%d::PAPI_library_init failed. %d %s\n",
__FILE__,__LINE__,retval,errstring);
exit(1);
}

}
Thank you
Rabab Mohammad
 
Posts: 2
Joined: Tue May 29, 2012 3:42 pm

Re: initializes the PAPI library

Postby Rabab Mohammad » Sun Jun 03, 2012 5:20 pm

any help :(
Rabab Mohammad
 
Posts: 2
Joined: Tue May 29, 2012 3:42 pm


Return to General discussion

Who is online

Users browsing this forum: No registered users and 1 guest