[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:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user