58{
66
68 printf( "Thread %#x started\n", omp_get_thread_num( ) );
69 }
70
71
72
73
74
78 test_fail(__FILE__,__LINE__,
"No events",0);
79 }
80
84
86
88
90
94
96
100
102
104
106
108 printf( "Thread %#x %-12s : \t%lld\n", omp_get_thread_num( ),
110 printf( "Thread %#x PAPI_TOT_CYC: \t%lld\n", omp_get_thread_num( ),
112 printf( "Thread %#x Real usec : \t%lld\n", omp_get_thread_num( ),
114 printf( "Thread %#x Real cycles : \t%lld\n", omp_get_thread_num( ),
116 }
117
118
119
121
124 printf( "Thread %#x finished\n", omp_get_thread_num( ) );
125 }
126}
Convert a numeric hardware event code to a name.
Start counting hardware events in an event set.
Stop counting hardware events in an event set.
Notify PAPI that a thread has 'disappeared'.
char event_name[2][PAPI_MAX_STR_LEN]
static long long values[NUM_EVENTS]
void free_test_space(long long **values, int num_tests)
long long ** allocate_test_space(int num_tests, int num_events)
int add_two_events(int *num_events, int *papi_event, int *mask)
int remove_test_events(int *EventSet, int mask)