Context Updates (#624)

* Improve error checks related to context create/start/stop/is_valid

* Bump version to 0.2.1

* Track number of kernels associated with correlation id

- add atomic kernel counter variable to context::correlation_id

* Update lib/rocprofiler-sdk/hsa/queue.cpp

- apply the +/- kernel count
This commit is contained in:
Jonathan R. Madsen
2024-03-14 04:40:58 -05:00
committed by GitHub
parent 7ab1a8015f
commit 0fdb21c050
5 changed files with 36 additions and 6 deletions
@@ -181,6 +181,18 @@ correlation_id::sub_ref_count()
return _ret;
}
uint32_t
correlation_id::add_kern_count()
{
return m_kern_count.fetch_add(1);
}
uint32_t
correlation_id::sub_kern_count()
{
return m_kern_count.fetch_sub(1);
}
correlation_id*
correlation_tracing_service::construct(uint32_t _init_ref_count)
{