Add logical_node_type_id field to rocprofiler_agent_t (#948)

* Add logical_node_type_id field to rocprofiler_agent_t

* Patch queue_controller
此提交包含在:
Jonathan R. Madsen
2024-06-24 23:18:58 -05:00
提交者 GitHub
父節點 62ec95eae6
當前提交 af2f85ca93
共有 4 個檔案被更改,包括 40 行新增 和 7 行删除
+3 -1
查看文件
@@ -103,9 +103,11 @@ TEST(rocprofiler_lib, agent_abi)
EXPECT_EQ(offsetof(rocprofiler_agent_t, model_name), 272) << msg;
EXPECT_EQ(offsetof(rocprofiler_agent_t, node_id), 280) << msg;
EXPECT_EQ(offsetof(rocprofiler_agent_t, logical_node_id), 284) << msg;
EXPECT_EQ(offsetof(rocprofiler_agent_t, logical_node_type_id), 288) << msg;
EXPECT_EQ(offsetof(rocprofiler_agent_t, reserved_padding0), 292) << msg;
// Add test for offset of new field above this. Do NOT change any existing values!
constexpr auto expected_rocp_agent_size = 288;
constexpr auto expected_rocp_agent_size = 296;
// If a new field is added, increase this value by the size of the new field(s)
EXPECT_EQ(sizeof(rocprofiler_agent_t), expected_rocp_agent_size)
<< "ABI break. If you added a new field, make sure that this is the only new check that "