build compatibility
Change-Id: Ifde4b2e4e7cb48d5c06ccce5eb76b7b943c4114a
Этот коммит содержится в:
@@ -142,10 +142,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");
|
||||
#ifdef AQLPROF_NEW_API
|
||||
hsa_status_t 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
|
||||
hsa_signal_t dummy_signal{};
|
||||
|
||||
Ссылка в новой задаче
Block a user