Make dimension error message print the counter name (#658)
* temp * source formatting (clang-format v11) (#659) Co-authored-by: bwelton <1683479+bwelton@users.noreply.github.com> --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: bwelton <1683479+bwelton@users.noreply.github.com>
This commit is contained in:
@@ -206,7 +206,16 @@ counter_callback_info::setup_profile_config(const hsa::AgentCache& age
|
||||
return ROCPROFILER_STATUS_ERROR_AST_NOT_FOUND;
|
||||
}
|
||||
config.asts.push_back(*counter_ast);
|
||||
config.asts.back().set_dimensions();
|
||||
|
||||
try
|
||||
{
|
||||
config.asts.back().set_dimensions();
|
||||
} catch(std::runtime_error& e)
|
||||
{
|
||||
LOG(ERROR) << metric.name() << " has improper dimensions"
|
||||
<< " " << e.what();
|
||||
return ROCPROFILER_STATUS_ERROR_AST_NOT_FOUND;
|
||||
}
|
||||
}
|
||||
|
||||
profile->pkt_generator = std::make_unique<rocprofiler::aql::AQLPacketConstruct>(
|
||||
|
||||
مرجع در شماره جدید
Block a user