adding agent to device callback data

Change-Id: I7d631e4faae685ce23704ac65308bf2aae0c157a


[ROCm/rocprofiler commit: 4edc6c98cf]
Este commit está contenido en:
Evgeny
2018-10-03 18:06:57 -05:00
padre 63087b968d
commit 988274443a
Se han modificado 3 ficheros con 3 adiciones y 0 borrados
@@ -169,6 +169,7 @@ class HsaInterceptor {
hsa_agent_t agent = *agent_p;
rocprofiler_hsa_callback_data_t data{};
data.device.id = util::HsaRsrcFactory::Instance().GetAgentInfo(agent)->dev_index;
data.device.agent = agent;
data.device.ptr = ptr;
HSA_RT(hsa_agent_get_info(agent, HSA_AGENT_INFO_DEVICE, &data.device.type));