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:
Jonathan R. Madsen
2024-08-20 01:07:32 -05:00
committed by GitHub
orang tua b9b5f335d9
melakukan 5d54682468
18 mengubah file dengan 41 tambahan dan 351 penghapusan
@@ -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
}