Add Google logging initializer to OMPT start tool to prevent benign warning. (#337)
This commit is contained in:
@@ -245,6 +245,7 @@ ompt_start_tool(unsigned int omp_version, const char* runtime_version) ROCPROFIL
|
||||
ompt_start_tool_result_t*
|
||||
ompt_start_tool(unsigned int omp_version, const char* runtime_version)
|
||||
{
|
||||
::rocprofiler::registration::init_logging();
|
||||
::rocprofiler::registration::initialize();
|
||||
return rocprofiler_ompt_start_tool(omp_version, runtime_version);
|
||||
}
|
||||
|
||||
@@ -670,6 +670,8 @@ set_fini_status(int v)
|
||||
void
|
||||
initialize()
|
||||
{
|
||||
init_logging();
|
||||
|
||||
ROCP_INFO << "rocprofiler initialize called...";
|
||||
|
||||
if(get_init_status() != 0)
|
||||
@@ -688,7 +690,6 @@ initialize()
|
||||
common::destroy_static_tl_objects();
|
||||
common::destroy_static_objects();
|
||||
});
|
||||
init_logging();
|
||||
invoke_client_configures();
|
||||
invoke_client_initializers();
|
||||
if(get_num_clients() > 0) internal_threading::initialize();
|
||||
|
||||
Reference in New Issue
Block a user