adding xml inheritance

Change-Id: Iafbfb8a6fb1936cf1315c1f5215879e99187da77
This commit is contained in:
Evgeny
2019-07-16 01:52:25 -05:00
committed by Xianwei Zhang
parent f3d27ef21c
commit 46fd670818
3 changed files with 68 additions and 16 deletions
+5 -1
View File
@@ -184,7 +184,11 @@ class MetricsDict {
xml_->AddConst("top.const.metric", "SIMD_NUM", agent_info->simds_per_cu * agent_info->cu_num);
xml_->AddConst("top.const.metric", "SE_NUM", agent_info->se_num);
ImportMetrics(agent_info, "const");
ImportMetrics(agent_info, agent_info->gfxip);
if (std::string("gfx906") == agent_info->name) {
ImportMetrics(agent_info, agent_info->name);
} else {
ImportMetrics(agent_info, agent_info->gfxip);
}
ImportMetrics(agent_info, "global");
}
}