[rocprof-sys] Fix fork() handling for GPU profiling and AMD SMI (#1930)

- Fix fork() handling for GPU profiling and AMD SMI
- Add hipMallocConcurrency test for CI with GPU
This commit is contained in:
habajpai-amd
2025-11-24 19:51:27 +05:30
committed by GitHub
parent ebd55d2ce0
commit 1a3564a51a
10 changed files with 611 additions and 3 deletions
@@ -24,6 +24,7 @@
#include "api.hpp"
#include "core/utility.hpp"
#include "library/components/pthread_create_gotcha.hpp"
#include "library/runtime.hpp"
#include "library/thread_info.hpp"
#include <timemory/backends/threading.hpp>
@@ -44,9 +45,10 @@ thread_deleter<void>::operator()() const
{
auto _tid = _info->index_data->sequent_value;
component::pthread_create_gotcha::shutdown(_tid);
if(!is_child_process()) component::pthread_create_gotcha::shutdown(_tid);
set_thread_state(ThreadState::Completed);
if(get_state() < State::Finalized && _tid == 0) rocprofsys_finalize_hidden();
if(get_state() < State::Finalized && !is_child_process() && _tid == 0)
rocprofsys_finalize_hidden();
}
else
{