disabling destruction

Change-Id: I2a7d05a8f597b3bc8bd07bffe7181f9dcace1cbf
This commit is contained in:
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