SWDEV-405575: Added gfx941 and gfx942

Change-Id: I45a49cd64a76d3ae32c209497c70fe27b5be212b


[ROCm/rocprofiler commit: e1285e3fd4]
此提交包含在:
Giovanni LB authored and Giovanni Baraldi committed 2023-06-19 11:11:37 -04:00
1 父節點 62d3c0018c
當前提交 a7e8182a21
11 file changed
+52 -27

No files matched your search

+5 -7
查看文件
@@ -85,13 +85,11 @@ AgentInfo::AgentInfo(const hsa_agent_t agent, ::CoreApiTable* table) : handle_(a
rocprofiler::fatal("hsa_agent_get_info for PCI info failed");
}
// TODO: (sauverma) use hsa_agent_get_info_fn(HSA_AMD_AGENT_INFO_NUM_XCC)
// to get xcc_num once hsa headers are updated from rocr/hsa
std::string gpu_name = std::string(name_).substr(0, 6);
if (gpu_name == "gfx940")
xcc_num_ = 6;
else
xcc_num_ = 1;
// TODO(saurabh, giovanni): Remove this in 5.7
if (table->hsa_agent_get_info_fn(agent,
static_cast<hsa_agent_info_t>(HSA_AMD_AGENT_INFO_NUM_XCC), &xcc_num_) != HSA_STATUS_SUCCESS) {
xcc_num_ = 1;
}
}
uint64_t AgentInfo::getIndex() const { return index_; }