Skip to content

Commit

Permalink
CR-1214559 xrt-smi validate --verbose cannot find benchmark_1502_00…
Browse files Browse the repository at this point in the history
….json and prints "Details: Threshold is 0.0 us" (#8482)

* CR-1214559

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

* fix build error

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

* fix dev id

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

---------

Signed-off-by: AShivangi <[email protected]>
  • Loading branch information
AShivangi authored Oct 2, 2024
1 parent 6ba2335 commit e41a5bc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/runtime_src/core/tools/common/TestRunner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,11 @@ TestRunner::set_threshold(const std::shared_ptr<xrt_core::device>& dev,
{
//find the benchmark.json
const auto pcie_id = xrt_core::device_query<xq::pcie_id>(dev);

//phoenix is not supported
if(xq::pcie_id::device_to_string(pcie_id).find("1502") != std::string::npos)
return;

auto benchmark_fname = boost::str(boost::format("benchmark_%s_%s.json")
% xq::pcie_id::device_to_string(pcie_id) % xq::pcie_id::revision_to_string(pcie_id));
auto json_config = findPlatformFile(benchmark_fname, ptTest);
Expand Down

0 comments on commit e41a5bc

Please sign in to comment.