108{
111
112
114
118 }
119
121
123
124#if defined(_AIX) || defined(__linux__)
130 else
132 }
133#if defined(_AIX)
134#pragma ibm parallel_loop
135#endif
136
137#elif defined(sgi) && defined(mips)
142 }
143#pragma parallel
144#pragma local(i)
145#pragma pfor
146#elif defined(sun) && defined(sparc)
150 }
151#pragma MP taskloop private(i)
152#else
154 printf("This test only runs on AIX/IRIX/SOLOARIS\n");
155 }
156 test_skip(__FILE__, __LINE__,
"Architecture not included in this test file yet.", 0);
157#endif
158 for (
i = 1;
i < 3;
i++ ) {
160 }
161
163
165
167 printf(
"Master real usec : \t%lld\n",
elapsed_us );
168 printf(
"Master real cycles : \t%lld\n",
elapsed_cyc );
169 }
170
171
172
174
175 return 0;
176}
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.
Initialize thread support in the PAPI library.
int tests_quiet(int argc, char **argv)
void PAPI_NORETURN test_fail(const char *file, int line, const char *call, int retval)
void PAPI_NORETURN test_pass(const char *filename)
void PAPI_NORETURN test_skip(const char *file, int line, const char *call, int retval)
void Thread(int t, int n)