SWDEV-427921: Fixing rocprof v1 counter collection for PAPI on MI300

Change-Id: I8589fe78fca481ed326e584ea1d01c0f90de655e
Tento commit je obsažen v:
Saurabh Verma
2023-10-18 18:14:32 -05:00
odevzdal Ammar Elwazir
rodič ab066543b1
revize 1e1692e6c0
3 změnil soubory, kde provedl 16 přidání a 3 odebrání
+5
Zobrazit soubor
@@ -390,6 +390,11 @@ const AgentInfo* HsaRsrcFactory::AddAgentInfo(const hsa_agent_t agent) {
agent_info->sgpr_block_size = 8;
agent_info->vgpr_block_size = 4;
if (hsa_api_.hsa_agent_get_info(agent, static_cast<hsa_agent_info_t>(HSA_AMD_AGENT_INFO_NUM_XCC),
&agent_info->xcc_num) != HSA_STATUS_SUCCESS) {
agent_info->xcc_num = 1;
};
// Set GPU index
uint32_t driver_node_id;
status = hsa_api_.hsa_agent_get_info(
+1
Zobrazit soubor
@@ -172,6 +172,7 @@ struct AgentInfo {
uint32_t sgpr_block_size;
uint32_t vgpr_block_size;
static const uint32_t lds_block_size = 128 * 4;
uint32_t xcc_num;
};
// HSA timer class