ROCpd support [Part 2] (#109)
* Rocpd part 2, caching * Fix shadowed variables * backward compatibility * Fixed designated initializers * Fix timemory include * Remove benchmark & Fix build issues for rhel * Add missing bracket * Fix shadowing and pedantic * Fix pedantic pt2 * Fix duplicated SDK calls * Add decay in get_size_impl * Rename sample cache to trace cache * Add cache storage supported types * Resolving track naming in sampling module * fix sampling of flushing thread * fix sampling of flushing thread 2 * throw exception upon store while buffer storage is not running * Prevent fork crashing * Fix rebase issue * Applied suggestions from code review * Change flushing thread to use PTL * Fix agent creation order * Fix stream id ci throw * Remove force setup of rocprofiler-sdk * Code cleanup * Change initialization for agent * Add missing namespace * Fix the mismatch within the tool_agent->device_id * Switch from using handle to use agent type index * Fix pmc info comparator in metadata registry --------- Co-authored-by: Aleksandar <aleksandar.djordjevic@amd.com> Co-authored-by: Milan Radosavljevic <milan.radosavljevic@amd.com> Co-authored-by: Marjan Antic <marantic@amd.com>
This commit is contained in:
40 files changed
+3432
-1184
No files matched your search
@@ -43,7 +43,8 @@ enum class agent_type : uint8_t
|
||||
struct agent
|
||||
{
|
||||
agent_type type;
|
||||
uint64_t id;
|
||||
uint64_t handle;
|
||||
uint64_t device_id;
|
||||
uint32_t node_id;
|
||||
int32_t logical_node_id;
|
||||
int32_t logical_node_type_id;
|
||||
@@ -52,7 +53,7 @@ struct agent
|
||||
std::string vendor_name;
|
||||
std::string product_name;
|
||||
|
||||
size_t device_id{ 0 };
|
||||
size_t device_type_index{ 0 };
|
||||
size_t base_id{ 0 };
|
||||
#if ROCPROFSYS_USE_ROCM > 0
|
||||
amdsmi_processor_handle smi_handle = nullptr;
|
||||
|
||||
Reference in new issue
Block a user