153 if ( !strcmp( argv[1],
"TESTS_QUIET" ) ) {
156 sleep_time =
atoi( argv[1] );
157 if ( sleep_time <= 0 )
183 printf(
"\nAccuracy check of multiplexing routines.\n" );
184 printf(
"Comparing a multiplex measurement with separate measurements.\n\n" );
195 for (
i = 0;
i < nevents;
i++ ) {
197 (info.
count && (strcmp( info.
derived,
"NOT_DERIVED")==0))) {
211 test_skip( __FILE__, __LINE__,
"Not enough events to multiplex...", 0 );
214 if (!
quiet) printf(
"Using %d events\n\n", nevents );
219 "PAPI multiplex init fail\n",
retval );
226 t2 = 10000 * 20 * nevents;
228 test_skip( __FILE__, __LINE__,
"This test takes too much time",
242 "do_flops3 takes no time to run!\n",
retval);
247 iters = iters * ( int ) (
t2 /
t1 );
249 printf(
"Modified iteration count to %d\n\n", iters );
253 if (!
quiet) fprintf(stdout,
"y=%lf\n",
y);
270 test_fail( __FILE__, __LINE__,
"PAPI_assign_eventset_component",
275 test_skip(__FILE__, __LINE__,
"Multiplex not supported", 1);
284 if (!
quiet) printf(
"\nPAPI multiplexed measurements:\n" );
294 for ( j = 0; j < nevents; j++ ) {
int PAPI_stop(int EventSet, long long *values)
void test_pass(const char *filename)
double do_flops3(double x, int iters, int quiet)
int PAPI_remove_events(int EventSet, int *Events, int number)
char derived[PAPI_MIN_STR_LEN]
int PAPI_add_events(int EventSet, int *Events, int number)
int PAPI_get_event_info(int EventCode, PAPI_event_info_t *info)
void test_skip(const char *file, int line, const char *call, int retval)
char events[MAX_EVENTS][BUFSIZ]
void ref_measurements(int iters, int *eventset, int *events, int nevents, long long *refvalues)
int PAPI_library_init(int version)
void check_values(int eventset, int *events, int nevents, long long *values, long long *refvalues)
char symbol[PAPI_HUGE_STR_LEN]
char short_descr[PAPI_MIN_STR_LEN]
int PAPI_cleanup_eventset(int EventSet)
int PAPI_assign_eventset_component(int EventSet, int cidx)
int PAPI_create_eventset(int *EventSet)
int PAPI_multiplex_init(void)
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)
int PAPI_set_multiplex(int EventSet)
int PAPI_destroy_eventset(int *EventSet)
int PAPI_start(int EventSet)
static long long values[NUM_EVENTS]