40#if defined(sun) && defined(sparc)
42#elif defined(mips) && defined(sgi) && defined(unix)
44#elif defined(_AIX) || defined(__linux__)
92 printf(
"Thread %#x %-12s : \t%lld\n", t,
event_name,
94 printf(
"Thread %#x PAPI_TOT_CYC : \t%lld\n", t,
100 printf(
"Thread %#x Real usec : \t%lld\n", t,
elapsed_us );
101 printf(
"Thread %#x Real cycles : \t%lld\n", t,
elapsed_cyc );
124#if defined(_AIX) || defined(__linux__)
134#pragma ibm parallel_loop
137#elif defined(sgi) && defined(mips)
146#elif defined(sun) && defined(sparc)
151#pragma MP taskloop private(i)
154 printf(
"This test only runs on AIX/IRIX/SOLOARIS\n");
156 test_skip(__FILE__, __LINE__,
"Architecture not included in this test file yet.", 0);
158 for (
i = 1;
i < 3;
i++ ) {
167 printf(
"Master real usec : \t%lld\n",
elapsed_us );
168 printf(
"Master real cycles : \t%lld\n",
elapsed_cyc );
Convert a numeric hardware event code to a name.
get real time counter value in clock cycles Returns the total real time passed since some arbitrary s...
get real time counter value in microseconds
initialize the PAPI library.
Start counting hardware events in an event set.
Stop counting hardware events in an event set.
Initialize thread support in the PAPI library.
Notify PAPI that a thread has 'disappeared'.
char event_name[2][PAPI_MAX_STR_LEN]
static long long values[NUM_EVENTS]
Return codes and api definitions.
int tests_quiet(int argc, char **argv)
void free_test_space(long long **values, int num_tests)
void PAPI_NORETURN test_fail(const char *file, int line, const char *call, int retval)
long long ** allocate_test_space(int num_tests, int num_events)
void PAPI_NORETURN test_pass(const char *filename)
int add_two_events(int *num_events, int *papi_event, int *mask)
void PAPI_NORETURN test_skip(const char *file, int line, const char *call, int retval)
int remove_test_events(int *EventSet, int mask)
void Thread(int t, int n)