Remove remaining roctracer references (#82)

Este commit está contenido en:
David Galiffi
2025-02-07 23:27:58 -05:00
cometido por GitHub
padre b3eee295dd
commit e437200e9e
Se han modificado 25 ficheros con 254 adiciones y 682 borrados
@@ -126,7 +126,6 @@ backtrace::filter_and_patch(const std::vector<entry_type>& _data)
if(_lbl.find("DYNINST_") != _npos) return 0;
if(_lbl.find("rocprofsys_") != _npos) return -1;
if(_lbl.find("rocprofiler_") != _npos) return -1;
if(_lbl.find("roctracer_") != _npos) return -1;
if(_lbl.find("perfetto::") != _npos) return -1;
if(_lbl.find("protozero::") == 0) return -1;
if(_lbl.find("gotcha_") != _npos) return -1;
@@ -121,7 +121,7 @@ stop_bundle(bundle_t& _bundle, int64_t _tid, Args&&... _args)
{
auto _wc = *_bundle.get<comp::wall_clock>();
_wc.stop();
// update roctracer_data
// update data
_bundle.store(std::plus<double>{}, _wc.get() * _wc.unit());
// stop all
_bundle.stop();
-51
Ver fichero
@@ -116,19 +116,6 @@ get_thread_pool_state()
} // namespace
} // namespace general
namespace roctracer
{
namespace
{
auto&
get_thread_pool_state()
{
static auto _v = State::PreInit;
return _v;
}
} // namespace
} // namespace roctracer
void
setup()
{
@@ -140,17 +127,6 @@ setup()
void
join()
{
if(roctracer::get_thread_pool_state() == State::Active)
{
ROCPROFSYS_DEBUG_F("waiting for all roctracer tasks to complete...\n");
for(size_t i = 0; i < thread_info::get_peak_num_threads(); ++i)
roctracer::get_task_group(i).join();
}
else
{
ROCPROFSYS_DEBUG_F("roctracer thread-pool is not active...\n");
}
if(general::get_thread_pool_state() == State::Active)
{
ROCPROFSYS_DEBUG_F("waiting for all general tasks to complete...\n");
@@ -162,22 +138,6 @@ join()
void
shutdown()
{
if(roctracer::get_thread_pool_state() == State::Active)
{
ROCPROFSYS_DEBUG_F("Waiting on completion of roctracer tasks...\n");
for(size_t i = 0; i < thread_info::get_peak_num_threads(); ++i)
{
roctracer::get_task_group(i).join();
roctracer::get_task_group(i).clear();
roctracer::get_task_group(i).set_pool(nullptr);
}
roctracer::get_thread_pool_state() = State::Finalized;
}
else
{
ROCPROFSYS_DEBUG_F("roctracer thread-pool is not active...\n");
}
if(general::get_thread_pool_state() == State::Active)
{
ROCPROFSYS_DEBUG_F("Waiting on completion of general tasks...\n");
@@ -219,16 +179,5 @@ general::get_task_group(int64_t _tid)
return *_v;
}
PTL::TaskGroup<void>&
roctracer::get_task_group(int64_t _tid)
{
struct local
{};
using thread_data_t = thread_data<PTL::TaskGroup<void>, local>;
static thread_local auto& _v = (roctracer::get_thread_pool_state() = State::Active,
thread_data_t::instance(construct_on_thread{ _tid },
&tasking::get_thread_pool()));
return *_v;
}
} // namespace tasking
} // namespace rocprofsys
-11
Ver fichero
@@ -56,16 +56,5 @@ PTL::TaskGroup<void>&
get_task_group(int64_t _tid = utility::get_thread_index());
}
//--------------------------------------------------------------------------------------//
//
// roctracer
//
//--------------------------------------------------------------------------------------//
namespace roctracer
{
PTL::TaskGroup<void>&
get_task_group(int64_t _tid = utility::get_thread_index());
} // namespace roctracer
} // namespace tasking
} // namespace rocprofsys
+1 -1
Ver fichero
@@ -39,7 +39,7 @@ namespace rocprofsys
// InternalTID: zero-based, process-local thread-ID from atomic increment
// from user-created threads and rocprof-sys-created threads.
// This value may vary based on threads created by different
// backends, e.g., roctracer will create threads
// backends.
//
// SystemTID: system thread-ID. Should be same value as what is seen
// in debugger, etc.