From d8ecefda4efd549ccf0f8b6f57a214ff51543479 Mon Sep 17 00:00:00 2001 From: Ammar ELWazir Date: Fri, 8 Oct 2021 20:25:12 -0500 Subject: [PATCH] SWDEV-275232: Replaced the use of on_exit() on_exit() registered exit_handler function, but in the case of OpenMP applications the registered exit func exit_handler was called after the dlclose of the library. So we removed exit_handler from roctracer as it is already handled in both rocprofiler and rocprof script. Change-Id: I7c3d42e6ccc282e713b48b4a7faec4935e7a2600 (cherry picked from commit aa41554130193ac5101b254004c73f9db494b8eb) --- test/tool/tracer_tool.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/test/tool/tracer_tool.cpp b/test/tool/tracer_tool.cpp index e6631174..d111d60d 100644 --- a/test/tool/tracer_tool.cpp +++ b/test/tool/tracer_tool.cpp @@ -960,15 +960,10 @@ void tool_load() { ONLOAD_TRACE_END(); } -void exit_handler(int status, void* arg) { - ONLOAD_TRACE("status(" << status << ") arg(" << arg << ")"); -} - // HSA-runtime tool on-load method extern "C" PUBLIC_API bool OnLoad(HsaApiTable* table, uint64_t runtime_version, uint64_t failed_tool_count, const char* const* failed_tool_names) { ONLOAD_TRACE_BEG(); - on_exit(exit_handler, NULL); timer = new hsa_rt_utils::Timer(table->core_->hsa_system_get_info_fn);