Add support for gfx90a

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

Change-Id: I9b51711ed4a1d2f1ed42ba9b83cb12136be228b8
This commit is contained in:
AMD authored and Laurent Morichetti committed 2021-06-16 16:35:42 -07:00
1 parent afad08b4c5
commit 4df3e0bd9a
3 files changed
+26 -5

No files matched your search

+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;