[rocprofiler-sdk] Fix hip compiler table initialization after finalization (#1174)
* [rocprofiler-sdk] Fix hip compiler table initialization after finalization - Resolves tickets - https://ontrack-internal.amd.com/browse/SWDEV-557219 - https://ontrack-internal.amd.com/browse/SWDEV-505503 * Tweak log message * Remove unsupported hip limit enums - hipLimitDevRuntimeSyncDepth - hipLimitDevRuntimePendingLaunchCount * Update conftest.py Co-authored-by: Mark Meserve <mark.meserve@amd.com> * Update README.md Co-authored-by: Mark Meserve <mark.meserve@amd.com> * Update hip_host.cpp --------- Co-authored-by: Mark Meserve <mark.meserve@amd.com>
Este commit está contenido en:
cometido por
GitHub
padre
fa772be675
commit
18d956eb9c
@@ -982,6 +982,19 @@ rocprofiler_set_api_table(const char* name,
|
||||
ROCP_INFO << __FUNCTION__ << "(\"" << name << "\", " << lib_version << ", " << lib_instance
|
||||
<< ", ..., " << num_tables << ")";
|
||||
|
||||
// if finalized/finalizing, ignore
|
||||
if(rocprofiler::registration::get_fini_status() != 0)
|
||||
{
|
||||
ROCP_WARNING << fmt::format(
|
||||
R"(rocprofiler-sdk has been finalized, ignoring {}(name="{}", lib_version={}, lib_instance={}, ..., num_tables={}) ...)",
|
||||
__FUNCTION__,
|
||||
name,
|
||||
lib_version,
|
||||
lib_instance,
|
||||
num_tables);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static auto _once = std::once_flag{};
|
||||
std::call_once(_once, rocprofiler::registration::initialize);
|
||||
|
||||
|
||||
Referencia en una nueva incidencia
Block a user