Skip to content

Commit

Permalink
Cleaning up compiler warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
khuck committed Jul 22, 2022
1 parent 263b31c commit 4adb907
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/apex/profiler_listener.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1508,10 +1508,15 @@ if (rc != 0) cout << "PAPI error! " << name << ": " << PAPI_strerror(rc) << endl
CALL_PAPI_OK(PAPI_create_eventset(&EventSet));
if (name.compare("PAPI") == 0) {
CALL_PAPI_OK(PAPI_assign_eventset_component(EventSet, 0));
/* currently not safe to add an event set to a component until events are added to it.
* Then, when we add the events to the event set, it will automatically be added
* to the component. So don't do this now. */
#if 0
} else {
int index = component_index_map[name];
//std::cout << "Setting component index: " << index << std::endl;
//CALL_PAPI_OK(PAPI_assign_eventset_component(EventSet, index));
CALL_PAPI_OK(PAPI_assign_eventset_component(EventSet, index));
#endif
}
int code;
// iterate over the counter names in the vector
Expand Down

0 comments on commit 4adb907

Please sign in to comment.