Go to the source code of this file.
|
| void | Thread (int t, int n) |
| |
| int | main (int argc, char **argv) |
| |
◆ main()
| int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 107 of file zero_smp.c.
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 );
void test_pass(const char *filename)
void test_skip(const char *file, int line, const char *call, int retval)
void Thread(int t, int n)
int PAPI_thread_init(unsigned long int(*id_fn)(void))
int PAPI_library_init(int version)
long long PAPI_get_real_usec(void)
int tests_quiet(int argc, char **argv)
void test_fail(const char *file, int line, const char *call, int retval)
long long PAPI_get_real_cyc(void)
◆ Thread()
| void Thread |
( |
int |
t, |
|
|
int |
n |
|
) |
| |
Definition at line 50 of file zero_smp.c.
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 );
char event_name[2][PAPI_MAX_STR_LEN]
int PAPI_stop(int EventSet, long long *values)
int add_two_events(int *num_events, int *papi_event, int *mask)
void free_test_space(long long **values, int num_tests)
int PAPI_event_code_to_name(int EventCode, char *out)
long long PAPI_get_real_usec(void)
int PAPI_unregister_thread(void)
void test_fail(const char *file, int line, const char *call, int retval)
long long PAPI_get_real_cyc(void)
int PAPI_start(int EventSet)
static long long values[NUM_EVENTS]
long long ** allocate_test_space(int num_tests, int num_events)
int remove_test_events(int *EventSet, int mask)