Skip to content
This repository has been archived by the owner on Jul 31, 2024. It is now read-only.

Commit

Permalink
Update PAPI backend
Browse files Browse the repository at this point in the history
- fix to available_events_info()
  • Loading branch information
jrmadsen committed May 30, 2024
1 parent 81c7a7e commit 915bfa4
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions source/timemory/backends/papi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -430,13 +430,12 @@ available_events_info()
string_t _rm = "papi_";
auto idx = _pysym.find(_rm);
if(idx != string_t::npos)
_pysym.substr(idx + _rm.length());
evts.push_back(hardware_counters::info(
_avail, hardware_counters::api::papi, i, PAPI_PRESET_MASK, _sym, _pysym,
info.short_descr, info.long_descr,
// get_timemory_papi_presets()[i].short_descr,
// get_timemory_papi_presets()[i].long_descr,
info.units));
_pysym = _pysym.substr(idx + _rm.length());
evts.emplace_back(_avail, hardware_counters::api::papi, i, PAPI_PRESET_MASK,
_sym, _pysym, info.short_descr, info.long_descr,
// get_timemory_papi_presets()[i].short_descr,
// get_timemory_papi_presets()[i].long_descr,
info.units);
}

auto numcmp = PAPI_num_components();
Expand Down

0 comments on commit 915bfa4

Please sign in to comment.