10{
13 char* region_name;
14 int world_size, world_rank;
15
16
18
19 MPI_Init( &argc, &argv );
20 MPI_Comm_size(MPI_COMM_WORLD, &world_size);
21 MPI_Comm_rank(MPI_COMM_WORLD, &world_rank);
22
23 region_name = "do_flops";
24
26 printf("\nRank %d: instrument flops\n", world_rank);
27 }
28
32 }
33
35
39 }
40
41 MPI_Finalize();
43
44 return 0;
45}
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)