disabling destruction

Change-Id: I2a7d05a8f597b3bc8bd07bffe7181f9dcace1cbf
Tento commit je obsažen v:
Evgeny
2020-05-07 03:34:30 -05:00
rodič cee1be4739
revize 9950b97567
4 změnil soubory, kde provedl 78 přidání a 4 odebrání
+4 -1
Zobrazit soubor
@@ -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