Add support for gfx90a

Merge gfx90a support from the 'amd-npi' branch.

Change-Id: I9b51711ed4a1d2f1ed42ba9b83cb12136be228b8
This commit is contained in:
AMD
2021-06-16 18:33:58 -05:00
committed by Laurent Morichetti
parent afad08b4c5
commit 4df3e0bd9a
3 changed files with 26 additions and 5 deletions
+3 -3
View File
@@ -196,9 +196,9 @@ class MetricsDict {
xml_->AddConst("top.const.metric", "SE_NUM", agent_info->se_num);
ImportMetrics(agent_info, "const");
agent_name_ = agent_info->name;
if (std::string("gfx906") == agent_info->name) {
ImportMetrics(agent_info, agent_info->name);
} else if (std::string("gfx908") == agent_info->name) {
if (std::string("gfx906") == agent_info->name ||
std::string("gfx908") == agent_info->name ||
std::string("gfx90a") == agent_info->name) {
ImportMetrics(agent_info, agent_info->name);
} else {
agent_name_ = agent_info->gfxip;