Change-Id: I2a7d05a8f597b3bc8bd07bffe7181f9dcace1cbf
Этот коммит содержится в:
Evgeny
2020-05-07 03:34:30 -05:00
родитель cee1be4739
Коммит 9950b97567
4 изменённых файлов: 78 добавлений и 4 удалений
+4 -1
Просмотреть файл
@@ -434,6 +434,7 @@ extern "C" {
// HSA-runtime tool on-load method
PUBLIC_API bool OnLoad(HsaApiTable* table, uint64_t runtime_version, uint64_t failed_tool_count,
const char* const* failed_tool_names) {
ONLOAD_TRACE_BEG();
rocprofiler::SaveHsaApi(table);
rocprofiler::ProxyQueue::InitFactory();
bool intercept_mode = false;
@@ -496,14 +497,16 @@ PUBLIC_API bool OnLoad(HsaApiTable* table, uint64_t runtime_version, uint64_t fa
rocprofiler::StandaloneIntercept();
}
ONLOAD_TRACE_END();
return true;
}
// HSA-runtime tool on-unload method
PUBLIC_API void OnUnload() {
rocprofiler::Tracker::Destroy();
ONLOAD_TRACE_BEG();
rocprofiler::UnloadTool();
rocprofiler::RestoreHsaApi();
ONLOAD_TRACE_END();
}
// Returns library vesrion