Skip to content

Commit

Permalink
Remove max tops (#8543)
Browse files Browse the repository at this point in the history
* remove max tops and preemption msg handling

Signed-off-by: AShivangi <[email protected]>

* remove tops only

Signed-off-by: AShivangi <[email protected]>

---------

Signed-off-by: AShivangi <[email protected]>
  • Loading branch information
AShivangi authored Oct 17, 2024
1 parent 4b44252 commit f603d05
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 40 deletions.
30 changes: 0 additions & 30 deletions src/runtime_src/core/common/info_platform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -326,35 +326,6 @@ enum_to_str(CLOCK_TYPE type)
}
}

void
add_tops_info(const xrt_core::device* device, ptree_type& pt)
{
ptree_type pt_tops_array;

try
{
auto res_info = xrt_core::device_query<xq::xrt_resource_raw>(device);
if (res_info.empty())
return;

for (auto &res : res_info)
{
if (res.type != xrt_core::query::xrt_resource_raw::resource_type::ipu_tops_max)
continue;

ptree_type pt_tops;
pt_tops.add("id", xq::xrt_resource_raw::get_name(res.type));
pt_tops.add("value", res.data_double);
pt_tops_array.push_back(std::make_pair("", pt_tops));
}
pt.put_child("tops", pt_tops_array);
}
catch (const xq::no_such_key &)
{
// ignoring if not available: Edge Case
}
}

void
add_electrical_info(const xrt_core::device* device, ptree_type& pt)
{
Expand Down Expand Up @@ -417,7 +388,6 @@ add_platform_info(const xrt_core::device* device, ptree_type& pt_platform_array)
ptree_type pt_platforms;

add_static_region_info(device, pt_platform);
add_tops_info(device, pt_platform);
add_status_info(device, pt_platform);

const auto device_class = xrt_core::device_query_default<xrt_core::query::device_class>(device, xrt_core::query::device_class::type::alveo);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,16 +62,6 @@ ReportRyzenPlatform::writeReport(const xrt_core::device* /*_pDevice*/,
}
}

const boost::property_tree::ptree& tops = pt_platform.get_child("tops", empty_ptree);
if (!tops.empty()) {
_output << "\nTOPs\n";
for (const auto& kt : tops) {
const boost::property_tree::ptree& pt_tops = kt.second;
std::string tops_name_type = pt_tops.get<std::string>("id");
_output << boost::format(" %-23s: %s Terabyte ops/second\n") % tops_name_type % pt_tops.get<std::string>("value");
}
}

auto watts = pt_platform.get<std::string>("electrical.power_consumption_watts", "N/A");
if (watts != "N/A")
_output << std::endl << boost::format("%-23s : %s Watts\n") % "Power" % watts;
Expand Down

0 comments on commit f603d05

Please sign in to comment.