Use logical_node_id for mapping rocprofiler agents to HSA agents (#708)

* Temp: Fixing node id

* source formatting (clang-format v11) (#709)

Co-authored-by: ammarwa <3832908+ammarwa@users.noreply.github.com>

* Using logical node id

* Update agent.cpp

* Update agent.cpp

* Python formatting

---------

Co-authored-by: Ammar ELWazir <aelwazir@rocprofiler1.amd.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: ammarwa <3832908+ammarwa@users.noreply.github.com>
Co-authored-by: Ammar ELWazir <aelwazir@rocprofiler2.amd.com>
Co-authored-by: Jonathan R. Madsen <jonathanrmadsen@gmail.com>
This commit is contained in:
Ammar ELWazir
2024-04-02 01:38:18 -05:00
committed by GitHub
orang tua 4200faf813
melakukan 62625d0aa1
4 mengubah file dengan 25 tambahan dan 9 penghapusan
@@ -244,7 +244,9 @@ TEST(rocprofiler_lib, agent)
EXPECT_EQ(std::string_view{agent->product_name},
std::string_view{hsa_agent->device_mkt_name})
<< msg;
EXPECT_EQ(agent->node_id, hsa_agent->internal_node_id) << msg;
// TODO(aelwazir): To be changed back to use node id once ROCR fixes the hsa_agents to use
// the real node id
EXPECT_EQ(agent->logical_node_id, hsa_agent->internal_node_id) << msg;
EXPECT_EQ(agent->location_id, hsa_agent->bdf_id) << msg;
EXPECT_EQ(agent->device_id, hsa_agent->chip_id) << msg;
EXPECT_EQ(agent->simd_count, hsa_agent->compute_unit * hsa_agent->simds_per_cu) << msg;