11{
14 char* region_name;
15 int world_size, world_rank;
16
17
19
20 MPI_Init( &argc, &argv );
21 MPI_Comm_size(MPI_COMM_WORLD, &world_size);
22 MPI_Comm_rank(MPI_COMM_WORLD, &world_rank);
23
24 region_name = "do_flops";
25
26 #pragma omp parallel
27 #pragma omp for
28 for (
i = 1;
i <= 2; ++
i ) {
29 int tid;
30 tid = omp_get_thread_num();
31
33 printf("\nRank %d, Thread %d: instrument flops\n", world_rank, tid);
34 }
35
39 }
40
42
46 }
47
48 }
49
50 MPI_Finalize();
52
53 return 0;
54}
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)