13long long int epsilon_v[10] = {14LL, 11LL, 8LL, 13LL, 8LL, 10LL, 12LL, 11LL, 6LL, 8LL};
16int main(
int argc,
char **argv){
18 int discrepancies = 0;
19 long long counter_values[1] = {0};
21 if( (argc > 1) && !strcmp(argv[1],
"-verbose") )
30 test_fail( __FILE__, __LINE__,
"PAPI_start", ret );
39 test_fail( __FILE__, __LINE__,
"PAPI_accum", ret );
41 if(
be_verbose ) printf(
"Epsilon count in cclib_do_work(): %lld\n",counter_values[0]);
45 counter_values[0] = 0;
51 test_fail( __FILE__, __LINE__,
"PAPI_stop", ret );
57 test_fail( __FILE__, __LINE__,
"SDE counter values are wrong!", 0 );
69 test_fail( __FILE__, __LINE__,
"PAPI_library_init", ret );
73 test_fail( __FILE__, __LINE__,
"PAPI_create_eventset", ret );
77 test_fail( __FILE__, __LINE__,
"PAPI_add_named_event", ret );
void setup_PAPI(int *event_set)
long long int epsilon_v[10]
void cclib_do_more_work(void)
Accumulate and reset counters in an EventSet.
add PAPI preset or native hardware event by name to an EventSet
Create a new empty PAPI EventSet.
initialize the PAPI library.
Start counting hardware events in an event set.
Stop counting hardware events in an event set.
Return codes and api definitions.
void PAPI_NORETURN test_fail(const char *file, int line, const char *call, int retval)
void PAPI_NORETURN test_pass(const char *filename)