Update HIP tracing ABI (#1025)

* Update HIP ABI tracing

* Minor HIP abi.cpp updates

* Misc roctx updates (version.h + more)

* Common static thread-local template struct

- static_tl_object
- similar to static_object but with thread-local semantics

* rocprofiler-sdk/version.h updates

* Update for HIP_RUNTIME_API_TABLE_STEP_VERSION == {4,5,6}

* Fix roctx.cpp tweaks
This commit is contained in:
Jonathan R. Madsen
2024-09-13 17:10:35 -05:00
committed by GitHub
parent bc82eccf4f
commit 7861dcc6c6
12 changed files with 728 additions and 512 deletions
+6 -2
View File
@@ -29,6 +29,7 @@
#include <cstddef>
#include <functional>
#include <mutex>
#include <type_traits>
namespace rocprofiler
{
@@ -52,7 +53,10 @@ template <typename Tp>
constexpr size_t
static_buffer_size()
{
return sizeof(Tp);
constexpr auto type_sz = sizeof(Tp);
constexpr auto void_sz = sizeof(void*);
if constexpr(void_sz > type_sz) return void_sz;
return type_sz;
}
/**
@@ -100,7 +104,7 @@ template <typename Tp, typename ContextT>
constexpr bool
static_object<Tp, ContextT>::is_trivial_standard_layout()
{
return (std::is_standard_layout<Tp>::value && std::is_trivial<Tp>::value);
return (std::is_standard_layout<Tp>::value && std::is_trivially_destructible<Tp>::value);
}
template <typename Tp, typename ContextT>