minor change for read packets support

Change-Id: I6ca1087b29d00c60f7deedb4dbd25992e8a3e726


[ROCm/rocprofiler commit: 4d677562e6]
Цей коміт міститься в:
Evgeny
2019-06-19 15:09:27 -05:00
джерело 2c091d01d0
коміт 82ee832bef
+4 -3
Переглянути файл
@@ -140,13 +140,14 @@ class Profile {
if (status != HSA_STATUS_SUCCESS) AQL_EXC_RAISING(status, "aqlprofile_start");
status = api->hsa_ven_amd_aqlprofile_stop(&profile_, &stop);
if (status != HSA_STATUS_SUCCESS) AQL_EXC_RAISING(status, "aqlprofile_stop");
hsa_status_t rd_status = HSA_STATUS_ERROR;
#ifdef AQLPROF_NEW_API
hsa_status_t rd_status = api->hsa_ven_amd_aqlprofile_read(&profile_, &read);
if (profile_.type == HSA_VEN_AMD_AQLPROFILE_EVENT_TYPE_PMC) {
rd_status = api->hsa_ven_amd_aqlprofile_read(&profile_, &read);
}
#if 0 // Read API returns error if disabled
if (rd_status != HSA_STATUS_SUCCESS) AQL_EXC_RAISING(status, "aqlprofile_read");
#endif
#else
hsa_status_t rd_status = HSA_STATUS_ERROR;
#endif
// Set completion signal