Re-enable clang-tidy for core workflows + clang-tidy fixes (#197)

* Ensure the clang-tidy is updated + clang-tidy fixes

* update-ci workflow

* Enable clang-tidy checks

* Add extra logging to device counter collection samples

* Misc clang-tidy fixes

* Disable device counter collection samples for ThreadSanitizer

* Formatting

---------

Co-authored-by: Jonathan R. Madsen <jonathanrmadsen@gmail.com>

[ROCm/rocprofiler-sdk commit: 070b659a9a]
This commit is contained in:
Madsen, Jonathan
2025-02-11 10:58:47 -06:00
committed by GitHub
parent 6eb343aa4a
commit d7495f9f1a
18 changed files with 76 additions and 39 deletions
@@ -307,17 +307,20 @@ tool_init(rocprofiler_client_finalize_t, void* user_data)
void
tool_fini(void* user_data)
{
std::clog << "In tool fini\n" << std::flush;
exit_toggle().store(true);
while(exit_toggle().load() == true)
{};
std::clog << "In tool fini\n";
rocprofiler_stop_context(get_client_ctx());
ROCPROFILER_CALL(rocprofiler_flush_buffer(get_buffer()), "buffer flush");
auto* output_stream = static_cast<std::ostream*>(user_data);
*output_stream << std::flush;
if(output_stream != &std::cout && output_stream != &std::cerr) delete output_stream;
std::clog << "Completed tool fini\n" << std::flush;
}
} // namespace