SWDEV-495725: Skipping metadata init for unsupported agents (#1194)
* SWDEV-495725: Skipping metadata init for unsupported agents * Update source/lib/output/metadata.cpp Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --------- Co-authored-by: mclin <mathew.clin@amd.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
gecommit door
GitHub
bovenliggende
89167f03a3
commit
576819a6ed
@@ -104,7 +104,7 @@ void metadata::init(inprocess)
|
||||
{
|
||||
if(itr.type == ROCPROFILER_AGENT_TYPE_CPU) continue;
|
||||
|
||||
ROCPROFILER_CHECK(rocprofiler_iterate_agent_supported_counters(
|
||||
auto status = rocprofiler_iterate_agent_supported_counters(
|
||||
itr.id,
|
||||
[](rocprofiler_agent_id_t id,
|
||||
rocprofiler_counter_id_t* counters,
|
||||
@@ -135,7 +135,16 @@ void metadata::init(inprocess)
|
||||
}
|
||||
return ROCPROFILER_STATUS_SUCCESS;
|
||||
},
|
||||
&agent_counter_info));
|
||||
&agent_counter_info);
|
||||
|
||||
if(status != ROCPROFILER_STATUS_ERROR_AGENT_ARCH_NOT_SUPPORTED)
|
||||
{
|
||||
ROCPROFILER_CHECK(status);
|
||||
}
|
||||
else
|
||||
{
|
||||
ROCP_WARNING << "Init failed for agent " << itr.node_id << " (" << itr.name << ")";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Verwijs in nieuw issue
Block a user