SWDEV-302380: [ROCm QA][Mainline][Navi21] 6 tests are failing in rocprofiler-stg2

This is an attempt to support basic and derived counters for navi21.  This code will not work correctly unless we add navi counters to metrics.xml and gfx_metrics.xml

Change-Id: Ied06a81345a6fbb02fa0fde1889d94bbe64e9a03
This commit is contained in:
Kiumars Sabeti
2022-02-08 00:59:47 +00:00
committed by Kiumars Sabeti
parent 5fd1c7e8e3
commit b53fd84ade
3 changed files with 143 additions and 107 deletions
Regular → Executable
+5 -2
View File
@@ -198,8 +198,11 @@ class MetricsDict {
agent_name_ = 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);
std::string("gfx90a") == agent_info->name ||
std::string("gfx1032") == agent_info->name ||
std::string("gfx1031") == agent_info->name ||
std::string("gfx1030") == agent_info->name){
ImportMetrics(agent_info, agent_info->name);
} else {
agent_name_ = agent_info->gfxip;
ImportMetrics(agent_info, agent_info->gfxip);