Skip to content

Commit

Permalink
CR-1219475 and CR-1220306 (#8645)
Browse files Browse the repository at this point in the history
Signed-off-by: AShivangi <[email protected]>
  • Loading branch information
AShivangi authored Dec 10, 2024
1 parent 42e5fb6 commit a81ded1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,11 @@ TestTemporalSharingOvd::run(std::shared_ptr<xrt_core::device> dev) {
// End of Run 2

if(XBU::getVerbose()){
XBValidateUtils::logger(ptree, "Details", boost::str(boost::format("Spatially shared contexts latency: '%.1f' ms") % (latencySpatial * 1000)));
XBValidateUtils::logger(ptree, "Details", boost::str(boost::format("Temporally shared contexts latency: '%.1f' ms") % (latencyTemporal * 1000)));
XBValidateUtils::logger(ptree, "Details", boost::str(boost::format("Spatially shared contexts latency: %.1f ms") % (latencySpatial * 1000)));
XBValidateUtils::logger(ptree, "Details", boost::str(boost::format("Temporally shared contexts latency: %.1f ms") % (latencyTemporal * 1000)));
}
auto overhead = (latencyTemporal - latencySpatial);
XBValidateUtils::logger(ptree, "Details", boost::str(boost::format("Overhead: '%.1f' ms") % (overhead * 1000)));
XBValidateUtils::logger(ptree, "Details", boost::str(boost::format("Overhead: %.1f ms") % (overhead * 1000)));

// Set the test status to passed
ptree.put("status", XBValidateUtils::test_token_passed);
Expand Down
8 changes: 1 addition & 7 deletions src/runtime_src/core/tools/xbutil2/OO_Performance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ OO_Performance::OO_Performance( const std::string &_longName, bool _isHidden )
;

m_optionsHidden.add_options()
("mode", boost::program_options::value<decltype(m_action)>(&m_action)->required(), "Action to perform: default, powersaver, balanced, performance, turbo")
("mode", boost::program_options::value<decltype(m_action)>(&m_action)->required(), "Action to perform: default, powersaver, balanced, performance") //to-do: add turbo mode back to help!
;

m_positionalOptions.
Expand All @@ -38,12 +38,6 @@ OO_Performance::OO_Performance( const std::string &_longName, bool _isHidden )
void
OO_Performance::execute(const SubCmdOptions& _options) const
{
XBUtilities::verbose("SubCommand option: Power Mode");

XBUtilities::verbose("Option(s):");
for (auto & aString : _options)
XBUtilities::verbose(std::string(" ") + aString);

// Honor help option first
if (std::find(_options.begin(), _options.end(), "--help") != _options.end()) {
printHelp();
Expand Down

0 comments on commit a81ded1

Please sign in to comment.