Go to the source code of this file.
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 20 of file case2.c.
21{
22 double c,
a = 0.999,
b = 1.001;
23 int n = 1000;
27 long long g1[3];
28
30
34
37
39 j++;
40
41 if ( j == 1 &&
45 }
46
49 j++;
50
51 if ( j == (
i + 1 ) &&
55 }
56
59 j++;
60
61 if ( j == (
i + 1 ) &&
65 }
66
67 if ( j ) {
70
71 for (
i = 0;
i < n;
i++ ) {
73 }
77 }
78
80
81 return 0;
82}
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)