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

It is hard to understand, which PAPI is used in the project #9

Open
gogagum opened this issue Mar 27, 2023 · 0 comments
Open

It is hard to understand, which PAPI is used in the project #9

gogagum opened this issue Mar 27, 2023 · 0 comments

Comments

@gogagum
Copy link

gogagum commented Mar 27, 2023

Installing the newest PAPI (7.0.1) breaks build. Error messages:

[build] <ygg-dir>/ygg/benchmark/common.hpp: In member function «void PapiMeasurements::initialize()»:
[build] <ygg-dir>/ygg/benchmark/common.hpp:187:44: error: «PAPI_num_counters» was not declared in this scope; did you mean «PAPI_num_hwctrs»?
[build]   187 |                         int num_counters = PAPI_num_counters();
[build]       |                                            ^~~~~~~~~~~~~~~~~
[build]       |                                            PAPI_num_hwctrs
[build] <ygg-dir>/ygg/benchmark/common.hpp: In member function «void PapiMeasurements::start()»:
[build] <ygg-dir>/ygg/benchmark/common.hpp:240:17: error: «PAPI_start_counters» was not declared in this scope
[build]   240 |                 PAPI_start_counters(this->selected_events.data(),
[build]       |                 ^~~~~~~~~~~~~~~~~~~
[build] <ygg-dir>/ygg/benchmark/common.hpp: In member function «void PapiMeasurements::stop()»:
[build] <ygg-dir>/ygg/benchmark/common.hpp:250:17: error: «PAPI_stop_counters» was not declared in this scope
[build]   250 |                 PAPI_stop_counters(this->event_counts.data(),
[build]       |                 ^~~~~~~~~~~~~~~~~~

These changes are caused by changes in PAPI. There is no information in README files, which exact PAPI version is used. The user has to guess the version.

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

No branches or pull requests

1 participant