SWDEV-476852 - Check added for agent architecture counters support. (#1022)
* check added for agent arch support
* formatting issue
[ROCm/rocprofiler-sdk commit: bc82eccf4f]
This commit is contained in:
committad av
GitHub
förälder
5db64b5425
incheckning
b9d2b3f495
@@ -125,6 +125,8 @@ rocprofiler_iterate_agent_supported_counters(rocprofiler_agent_id_t
|
||||
if(!agent) return ROCPROFILER_STATUS_ERROR_AGENT_NOT_FOUND;
|
||||
|
||||
auto metrics = rocprofiler::counters::getMetricsForAgent(agent->name);
|
||||
if(metrics.empty()) return ROCPROFILER_STATUS_ERROR_AGENT_ARCH_NOT_SUPPORTED;
|
||||
|
||||
std::vector<rocprofiler_counter_id_t> ids;
|
||||
ids.reserve(metrics.size());
|
||||
for(const auto& metric : metrics)
|
||||
|
||||
Referens i nytt ärende
Block a user