Skip to content

Commit

Permalink
Removing some extra code
Browse files Browse the repository at this point in the history
Signed-off-by: Akshay Tondak <[email protected]>
  • Loading branch information
Akshay Tondak authored and Akshay Tondak committed Oct 25, 2024
1 parent bcaa4a3 commit 6cabce2
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions src/runtime_src/core/tools/common/tests/TestNPUThroughput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,26 +47,6 @@ TestNPUThroughput::run(std::shared_ptr<xrt_core::device> dev)
return ptree;
}

// Determine The DPU Kernel Name
auto xkernels = xclbin.get_kernels();

auto itr = std::find_if(xkernels.begin(), xkernels.end(), [](xrt::xclbin::kernel& k) {
auto name = k.get_name();
return name.rfind("DPU",0) == 0; // Starts with "DPU"
});

xrt::xclbin::kernel xkernel;
if (itr!=xkernels.end())
xkernel = *itr;
else {
XBValidateUtils::logger(ptree, "Error", "No kernel with `DPU` found in the xclbin");
ptree.put("status", XBValidateUtils::test_token_failed);
return ptree;
}
auto kernelName = xkernel.get_name();
if(XBU::getVerbose())
XBValidateUtils::logger(ptree, "Details", boost::str(boost::format("Kernel name is '%s'") % kernelName));

auto working_dev = xrt::device(dev);
working_dev.register_xclbin(xclbin);

Expand Down

0 comments on commit 6cabce2

Please sign in to comment.