Skip to content

Commit

Permalink
o Mods to test code profcxx.C to guard against calling PAPI when not …
Browse files Browse the repository at this point in the history
…enabled.

o Mods to test code printwhileon.c to guard against calling MPI when not
  enabled.
  • Loading branch information
jmrosinski committed May 13, 2014
1 parent 6ffb60a commit b89ce46
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ctests/printwhileon.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ int main (int argc, char **argv)
ret = GPTLpr (iam);
#ifdef HAVE_MPI
ret = GPTLpr_summary (MPI_COMM_WORLD);
ret = MPI_Finalize ();
#else
ret = GPTLpr_summary ();
#endif
ret = MPI_Finalize ();
return 0;
}
3 changes: 2 additions & 1 deletion ctests/profcxx.C
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ int main ()
Y *y;
int ret;


#ifdef HAVE_PAPI
GPTLsetoption(GPTLmultiplex,1);
GPTLsetoption(PAPI_L2_DCH, 1);
GPTLsetoption(PAPI_L1_TCM, 1);
GPTLsetoption(PAPI_L3_TCM, 1);
#endif

ret = GPTLinitialize ();
ret = GPTLstart ("total");
Expand Down

0 comments on commit b89ce46

Please sign in to comment.