Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace function call removed in PAPI v6 with an equivalent one #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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