PAPI 7.1.0.0
Loading...
Searching...
No Matches
papi_clockres.c File Reference
Include dependency graph for papi_clockres.c:

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 31 of file papi_clockres.c.

32{
33 (void) argc;
34 (void) argv;
35
36 int retval;
37
39 if (retval != PAPI_VER_CURRENT ) {
40 fprintf(stderr,"Error with PAPI init!\n");
41 return 1;
42 }
43
45 if (retval != PAPI_OK ) {
46 fprintf(stderr,"Error with PAPI_set_debug!\n");
47 return 1;
48 }
49
50 printf( "Printing Clock latency and resolution.\n" );
51 printf( "-----------------------------------------------\n" );
52
53 retval=clockcore( 0 );
54 if (retval<0) {
55 fprintf(stderr,"Error reading clock!\n");
56 return retval;
57 }
58
59 return 0;
60}
initialize the PAPI library.
Set the current debug level for error output from PAPI.
int clockcore(int quiet)
Definition: clockcore.c:111
#define PAPI_VER_CURRENT
Definition: f90papi.h:54
#define PAPI_OK
Definition: f90papi.h:73
#define PAPI_VERB_ECONT
Definition: f90papi.h:164
FILE * stderr
int retval
Definition: zero_fork.c:53
Here is the call graph for this function: