aqlprofile: get version API

Change-Id: I3a85c088bfff3f54d8829e17cdafd7dfcdfb0c1d


[ROCm/ROCR-Runtime commit: 0fcd2fa56e]
This commit is contained in:
Evgeny
2018-04-27 20:20:47 -05:00
committed by Evgeny Shcherbakov
parent 43a9e81e4a
commit e3f55212ed
2 changed files with 17 additions and 0 deletions
@@ -477,6 +477,12 @@ hsa_status_t hsa_system_get_major_extension_table(uint16_t extension, uint16_t v
}
hsa_ven_amd_aqlprofile_1_00_pfn_t ext_table;
ext_table.hsa_ven_amd_aqlprofile_version_major =
(decltype(::hsa_ven_amd_aqlprofile_version_major)*)
os::GetExportAddress(lib, "hsa_ven_amd_aqlprofile_version_major");
ext_table.hsa_ven_amd_aqlprofile_version_minor =
(decltype(::hsa_ven_amd_aqlprofile_version_minor)*)
os::GetExportAddress(lib, "hsa_ven_amd_aqlprofile_version_minor");
ext_table.hsa_ven_amd_aqlprofile_error_string =
(decltype(::hsa_ven_amd_aqlprofile_error_string)*)
os::GetExportAddress(lib, "hsa_ven_amd_aqlprofile_error_string");