minor changes

Este commit está contenido en:
Evgeny
2018-01-04 20:11:30 -06:00
padre 556ada8372
commit c00a0feb36
Se han modificado 5 ficheros con 40 adiciones y 27 borrados
+1 -2
Ver fichero
@@ -79,8 +79,7 @@ bool TestHsa::Initialize(int arg_cnt, char** arg_list) {
setup_timer_idx_ = hsa_timer_.CreateTimer();
dispatch_timer_idx_ = hsa_timer_.CreateTimer();
hsa_rsrc_ = HsaInstantiate(agent_id_);
if (hsa_rsrc_ == NULL) {
if (HsaInstantiate(agent_id_) == NULL) {
TEST_ASSERT(false);
return false;
}
+4 -1
Ver fichero
@@ -120,8 +120,11 @@ HsaRsrcFactory::HsaRsrcFactory() {
// Get AqlProfile API table
aqlprofile_api_ = {0};
#ifdef ROCP_LD_AQLPROFILE
status = LoadAqlProfileLib(&aqlprofile_api_);
#else
status = hsa_system_get_extension_table(HSA_EXTENSION_AMD_AQLPROFILE, 1, 0, &aqlprofile_api_);
if (status != HSA_STATUS_SUCCESS) status = LoadAqlProfileLib(&aqlprofile_api_);
#endif
CHECK_STATUS("aqlprofile API table load failed", status);
}