Go to the source code of this file.
◆ main()
| int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 9 of file omp_hl.c.
10{
13 char* region_name;
14
15
17
18 region_name = "do_flops";
19
20 #pragma omp parallel
21 #pragma omp for
22 for (
i = 1;
i <= 4; ++
i ) {
23 int tid;
24 tid = omp_get_thread_num();
25
27 printf("\nThread %d: instrument flops\n", tid);
28 }
29
33 }
34
36
40 }
41
42 }
43
44 region_name = "do_flops_2";
45 #pragma omp parallel
46 #pragma omp for
47 for (
i = 1;
i <= 4; ++
i ) {
48 int tid;
49 tid = omp_get_thread_num();
50
52 printf("\nThread %d: instrument flops_2\n", tid);
53 }
54
58 }
59
61
65 }
66 }
67
69
70 return 0;
71}
Read performance events at the beginning of a region.
Read performance events at the end of a region and store the difference to the corresponding beginnin...
int tests_quiet(int argc, char **argv)
void PAPI_NORETURN test_hl_pass(const char *filename)
void PAPI_NORETURN test_fail(const char *file, int line, const char *call, int retval)