10int main(
int argc,
char **argv )
15 int world_size, world_rank;
20 MPI_Init( &argc, &argv );
21 MPI_Comm_size(MPI_COMM_WORLD, &world_size);
22 MPI_Comm_rank(MPI_COMM_WORLD, &world_rank);
24 region_name =
"do_flops";
28 for (
i = 1;
i <= 2; ++
i ) {
30 tid = omp_get_thread_num();
33 printf(
"\nRank %d, Thread %d: instrument flops\n", world_rank, tid);
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...
Return codes and api definitions.
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)