Go to the source code of this file.
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 18 of file case1.c.
19{
20 double c,
a = 0.999,
b = 1.001;
21 int n = 1000;
25 long long g1[2];
26
28
32
33
36
38 j++;
39
40 if ( j == 1 &&
44 j--;
45 }
46
49 j++;
50
51 if ( j == (
i + 1 ) &&
55 j--;
56 }
57
58 if ( j ) {
61 for (
i = 0;
i < n;
i++ ) {
63 }
65
68 }
69
71
72 return 0;
73}
add PAPI preset or native hardware event to an event set
Create a new empty PAPI EventSet.
initialize the PAPI library.
Query if PAPI event exists.
Start counting hardware events in an event set.
Stop counting hardware events in an event set.
static double a[MATRIX_SIZE][MATRIX_SIZE]
static double b[MATRIX_SIZE][MATRIX_SIZE]
static double c[MATRIX_SIZE][MATRIX_SIZE]
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)