Go to the source code of this file.
|
| int | main (int argc, char **argv) |
| |
◆ REPITITIONS
◆ SLEEP_RUNS
◆ main()
| int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 30 of file papi_ld_ins.c.
37 long long count,high=0,low=0,
total=0,average=0;
52 printf(
"\nTesting PAPI_LD_INS\n\n");
62 if (!
quiet) printf(
"Could not add PAPI_LD_INS\n");
72 printf(
"Testing a sleep of 1 second (%d times):\n",
SLEEP_RUNS);
95 printf(
"\tAverage should be low, as no loads when sleeping\n");
96 printf(
"\tMeasured average: %lld\n",average);
100 if (!
quiet) printf(
"Average cycle count too high!\n");
109 printf(
"\nTesting with matrix matrix multiply\n");
126 printf(
"\tActual measured loads = %lld\n",
count);
133 printf(
"\tError=%.2f%%\n",error);
136 if ((error>10.0) || (error<-10.0)) {
138 if (!
quiet) printf(
"Error too high!\n");
149 if (!
quiet) printf(
"\nTesting for a linear cycle increase\n");
151 #define REPITITIONS 2 172 printf(
"\tError=%.2f%%\n",error);
175 if ((error>10.0) || (error<-10.0)) {
177 if (!
quiet) printf(
"Error too high!\n");
181 if (!
quiet) printf(
"\n");
int PAPI_stop(int EventSet, long long *values)
void test_pass(const char *filename)
static int expected[NUM_THREADS]
int PAPI_reset(int EventSet)
double naive_matrix_multiply(int quiet)
void test_skip(const char *file, int line, const char *call, int retval)
int PAPI_add_named_event(int EventSet, const char *EventName)
int PAPI_library_init(int version)
int PAPI_create_eventset(int *EventSet)
int tests_quiet(int argc, char **argv)
void test_fail(const char *file, int line, const char *call, int retval)
int PAPI_start(int EventSet)
long long naive_matrix_multiply_estimated_loads(int quiet)