minor changes

[ROCm/rocprofiler commit: d47ce7f51d]
This commit is contained in:
Evgeny
2017-12-20 18:59:05 -06:00
parent 24695e37be
commit 489095e9e6
2 changed files with 4 additions and 2 deletions
@@ -85,9 +85,10 @@ 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_);
#ifdef ROCP_LOAD_AQLPROF
if (status != HSA_STATUS_SUCCESS) status = LoadAqlProfileLib(&aqlprofile_api_);
#endif
CHECK_STATUS("aqlprofile API table load failed", status);