Skip to content

Commit

Permalink
PAPI: do not call PAPI_num_counters() in PAPI 6 or up
Browse files Browse the repository at this point in the history
the function has been removed as part of PAPI's HL API redesign
  • Loading branch information
rhaas80 committed May 19, 2020
1 parent f484c85 commit 1315285
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/stats.c
Expand Up @@ -186,6 +186,7 @@ void PAPI_init(CCTK_ARGUMENTS) {
printf("Using PAPI component %d\n", component);
}

#if PAPI_VERSION_MAJOR(PAPI_VER_CURRENT) < 6
outinfo("PAPI_num_counters");
int num_counters = ierr = PAPI_num_counters();
chkerr(ierr, "PAPI_num_counters");
Expand All @@ -194,6 +195,7 @@ void PAPI_init(CCTK_ARGUMENTS) {
if (verbose) {
printf("There are %d PAPI counters\n", num_counters);
}
#endif

// Translate user event names to an eventset

Expand Down

0 comments on commit 1315285

Please sign in to comment.