Minor updates for transpose, timemory submodule, roctracer, and omnitrace exe (#4)
* transpose usage message * timemory submodule update * roctracer updates - Changes to verbosity of roctracer::shutdown - protect_flush_activity prevents deadlock when error in callback * Removed linking to timemory-cxx in omnitrace - omnitrace exe does not link to `timemory-cxx` target
Este cometimento está contido em:
cometido por
GitHub
ascendente
f26b3b81d6
cometimento
5b2c27cccd
@@ -285,16 +285,20 @@ hsa_activity_callback(uint32_t op, activity_record_t* record, void* arg)
|
||||
|
||||
OMNITRACE_SCOPED_THREAD_STATE(ThreadState::Internal);
|
||||
|
||||
sampling::block_signals();
|
||||
static thread_local std::once_flag _once{};
|
||||
std::call_once(_once, []() {
|
||||
sampling::block_signals();
|
||||
threading::set_thread_name("omni.roctracer");
|
||||
});
|
||||
|
||||
auto&& _protect = comp::roctracer::protect_flush_activity();
|
||||
(void) _protect;
|
||||
|
||||
static const char* copy_op_name = "hsa_async_copy";
|
||||
static const char* dispatch_op_name = "hsa_dispatch";
|
||||
static const char* barrier_op_name = "hsa_barrier";
|
||||
const char** _name = nullptr;
|
||||
|
||||
static thread_local auto _once = (threading::set_thread_name("omni.roctracer"), true);
|
||||
(void) _once;
|
||||
|
||||
switch(op)
|
||||
{
|
||||
case HSA_OP_ID_DISPATCH: _name = &dispatch_op_name; break;
|
||||
@@ -629,10 +633,14 @@ hip_activity_callback(const char* begin, const char* end, void*)
|
||||
|
||||
OMNITRACE_SCOPED_THREAD_STATE(ThreadState::Internal);
|
||||
|
||||
sampling::block_signals();
|
||||
static thread_local std::once_flag _once{};
|
||||
std::call_once(_once, []() {
|
||||
sampling::block_signals();
|
||||
threading::set_thread_name("omni.roctracer");
|
||||
});
|
||||
|
||||
static thread_local auto _once = (threading::set_thread_name("omni.roctracer"), true);
|
||||
(void) _once;
|
||||
auto&& _protect = comp::roctracer::protect_flush_activity();
|
||||
(void) _protect;
|
||||
|
||||
using Device = critical_trace::Device;
|
||||
using Phase = critical_trace::Phase;
|
||||
|
||||
Criar uma nova questão referindo esta
Bloquear um utilizador