Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/components/rocp_sdk/sdk_class.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -840,7 +840,7 @@ build_event_info_from_name(std::string event_name, event_instance_info_t *ev_ins
// All qualifiers must have the form "qual_name=qual_value".
pos=qual.find('=');
if( pos == qual.npos){
return PAPI_EINVAL;
return PAPI_ENOEVNT;
}

std::string qual_name = qual.substr(0, pos-0);
Expand All @@ -859,7 +859,7 @@ build_event_info_from_name(std::string event_name, event_instance_info_t *ev_ins
if( qual_name.compare(dim.name) == 0 ){
// Make sure that the qualifier value is within the proper range.
if( qual_val >= dim.instance_size ){
return PAPI_EINVAL;
return PAPI_ENOEVNT;
}
dim_instances.emplace_back( std::make_pair(dim.id, qual_val) );
// Mark which qualifiers we have found based on the order in which they appear in
Expand Down
Loading