Misc cleanup and stale code removal (#1026)
* Remove custom allocators - remove unused lib/rocprofiler-sdk/allocator.* - remove unused lib/rocprofiler-sdk/context/allocator.hpp * Fix rocprofiler_strip_target (rocprofiler_utilities.cmake) * Remove old HSA_TOOLS_LIB support - remove OnLoad/OnUnload functions used by HSA_TOOLS_LIB env variable * Fix linter warnings + specific NOLINT exceptions - replace bare NOLINT with NOLINT(<warning-name>)
This commit is contained in:
committed by
GitHub
orang tua
b9b5f335d9
melakukan
5d54682468
@@ -860,34 +860,4 @@ rocprofiler_set_api_table(const char* name,
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
// #if 0
|
||||
bool
|
||||
OnLoad(HsaApiTable* table,
|
||||
uint64_t runtime_version,
|
||||
uint64_t failed_tool_count,
|
||||
const char* const* failed_tool_names)
|
||||
{
|
||||
rocprofiler::registration::init_logging();
|
||||
|
||||
(void) runtime_version;
|
||||
(void) failed_tool_count;
|
||||
(void) failed_tool_names;
|
||||
|
||||
fprintf(stderr, "[%s:%i] %s\n", __FILE__, __LINE__, __FUNCTION__);
|
||||
|
||||
void* table_v = static_cast<void*>(table);
|
||||
rocprofiler_set_api_table("hsa", runtime_version, 0, &table_v, 1);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
void
|
||||
OnUnload()
|
||||
{
|
||||
ROCP_INFO << "Unloading hsa-runtime...";
|
||||
::rocprofiler::registration::finalize();
|
||||
ROCP_INFO << "Finalization complete.";
|
||||
}
|
||||
// #endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user