PAPI  5.3.2.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
mendes-alt.c File Reference
Include dependency graph for mendes-alt.c:

Go to the source code of this file.

Macros

#define MAX   10000
 
#define TIMES   1000
 
#define PAPI_MAX_EVENTS   2
 

Functions

void funcX ()
 
void funcA ()
 
 tests_quiet (argc, argv)
 
 for (i=0;i< MAX;i++)
 
 test_fail (__FILE__, __LINE__,"PAPI_library_init", retval)
 
 test_fail (__FILE__, __LINE__,"PAPI set event fail\n", retval)
 
 if (retval< PAPI_OK)
 
else if (!TESTS_QUIET)
 
 test_fail (__FILE__, __LINE__,"PAPI add PAPI_TOT_CYC fail\n", retval)
 
 test_fail (__FILE__, __LINE__,"PAPI start fail\n", retval)
 
 funcX (a, b, MAX)
 
 test_fail (__FILE__, __LINE__,"PAPI read fail \n", retval)
 
 funcA (a, b, MAX)
 
 test_pass (__FILE__, NULL, 0)
 
 exit (1)
 

Variables

long long PAPI_values1 [PAPI_MAX_EVENTS] = PAPI_values2[i] = 0
 
long long PAPI_values2 [PAPI_MAX_EVENTS]
 
long long PAPI_values3 [PAPI_MAX_EVENTS]
 
static int EventSet = PAPI_NULL
 
int TESTS_QUIET
 
int int argc
 
char * argv []
 
double a [MAX]
 
double b [MAX]
 
 retval = PAPI_library_init( PAPI_VER_CURRENT )
 
int n
 
double t [MAX]
 

Macro Definition Documentation

#define MAX   10000

Definition at line 9 of file mendes-alt.c.

#define PAPI_MAX_EVENTS   2

Definition at line 13 of file mendes-alt.c.

#define TIMES   1000

Definition at line 11 of file mendes-alt.c.

Function Documentation

exit ( )
for ( )

Definition at line 32 of file mendes-alt.c.

32  {
33  a[i] = 0.0;
34  b[i] = 0.;
35  }
static double a[MATRIX_SIZE][MATRIX_SIZE]
Definition: rapl_basic.c:37
int i
Definition: fileop.c:140
static double b[MATRIX_SIZE][MATRIX_SIZE]
Definition: rapl_basic.c:38
void funcA ( )
funcA ( a  ,
b  ,
MAX   
)
void funcX ( )
funcX ( a  ,
b  ,
MAX   
)
if ( )

Definition at line 73 of file mendes-alt.c.

73  {
75  if ( retval < PAPI_OK )
76  test_fail( __FILE__, __LINE__,
77  "PAPI add PAPI_FP_INS or PAPI_TOT_INS fail\n", retval );
78  else if ( !TESTS_QUIET ) {
79  printf( "PAPI_TOT_INS\n" );
80  }
81  } else if ( !TESTS_QUIET ) {
int PAPI_add_event(int EventSet, int EventCode)
Definition: papi.c:1604
#define PAPI_TOT_INS
Definition: fpapi.h:185
return PAPI_OK
Definition: linux-nvml.c:458
#define printf
Definition: papi_test.h:125
int TESTS_QUIET
Definition: test_utils.c:11
test_fail(__FILE__, __LINE__,"PAPI_library_init", retval)
int EventSet
ssize_t retval
Definition: libasync.c:338

Here is the call graph for this function:

else if ( TESTS_QUIET)

Definition at line 81 of file mendes-alt.c.

81  {
82  printf( "PAPI_FP_INS\n" );
83  }
#define printf
Definition: papi_test.h:125
test_fail ( __FILE__  ,
__LINE__  ,
"PAPI_library_init"  ,
retval   
)
test_fail ( __FILE__  ,
__LINE__  ,
"PAPI set event fail\n ,
retval   
)
test_fail ( __FILE__  ,
__LINE__  ,
"PAPI add PAPI_TOT_CYC fail\n ,
retval   
)
test_fail ( __FILE__  ,
__LINE__  ,
"PAPI start fail\n ,
retval   
)
test_fail ( __FILE__  ,
__LINE__  ,
"PAPI read fail \n ,
retval   
)
test_pass ( __FILE__  ,
NULL  ,
 
)

Here is the caller graph for this function:

tests_quiet ( argc  ,
argv   
)

Here is the caller graph for this function:

Variable Documentation

Initial value:
{
int i, retval
int i
Definition: fileop.c:140
ssize_t retval
Definition: libasync.c:338

Definition at line 25 of file mendes-alt.c.

int int argc

Definition at line 23 of file mendes-alt.c.

char* argv[]

Definition at line 24 of file mendes-alt.c.

Definition at line 25 of file mendes-alt.c.

int EventSet = PAPI_NULL
static

Definition at line 17 of file mendes-alt.c.

int n

Definition at line 164 of file mendes-alt.c.

PAPI_values1[i] = PAPI_values2[i] = 0

Definition at line 14 of file mendes-alt.c.

long long PAPI_values2[PAPI_MAX_EVENTS]

Definition at line 15 of file mendes-alt.c.

long long PAPI_values3[PAPI_MAX_EVENTS]

Definition at line 16 of file mendes-alt.c.

Definition at line 40 of file mendes-alt.c.

double t[MAX]
Initial value:
{
int i, k
int i
Definition: fileop.c:140
int k
Definition: iozone.c:19136

Definition at line 176 of file mendes-alt.c.

int TESTS_QUIET

Definition at line 11 of file test_utils.c.