Skip to content

Conversation

@MonterraByte
Copy link

Fixes #1.

According to the documentation, the now missing PAPI_num_counters function returns the "number of hardware counters supported by the current CPU component".

This PR replaces the call to that with a call to PAPI_num_cmp_hwctrs (which still exists in the current version). This should be equivalent, as, according to the documentation:

PAPI_num_cmp_hwctrs() returns the number of counters present in the specified component.
By convention, component 0 is always the cpu.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build fails with PAPI v6

1 participant