Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug fix in getting AIE clock frequency using xbutil advanced. #8203

Merged
merged 1 commit into from
Jun 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/runtime_src/core/tools/xbutil2/OO_AieClockFreq.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ OO_AieClockFreq::execute(const SubCmdOptions& _options) const
po::variables_map vm;
process_arguments(vm, _options);

// Exit if neither action or device specified
if(m_help || m_device.empty()) {
// Exit if action is specified
if(m_help) {
printHelp();
return;
}
Expand Down
4 changes: 2 additions & 2 deletions src/runtime_src/core/tools/xbutil2/OO_AieRegRead.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -413,8 +413,8 @@ OO_AieRegRead::execute(const SubCmdOptions& _options) const
po::variables_map vm;
process_arguments(vm, _options);

// Exit if neither action or device specified
if(m_help || m_device.empty()) {
// Exit if action is specified
if(m_help) {
printHelp();
return;
}
Expand Down
3 changes: 1 addition & 2 deletions src/runtime_src/core/tools/xbutil2/SubCmdAdvanced.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ SubCmdAdvanced::SubCmdAdvanced(bool _isHidden, bool _isDepricated, bool _isPreli
setIsPreliminary(_isPreliminary);

m_commonOptions.add_options()
("device,d", boost::program_options::value<decltype(m_device)>(&m_device), "The Bus:Device.Function (e.g., 0000:d8:00.0) device of interest")
("help", boost::program_options::bool_switch(&m_help), "Help to use this sub-command")
;

Expand Down Expand Up @@ -77,7 +76,7 @@ SubCmdAdvanced::execute(const SubCmdOptions& _options) const

// No suboption print help
if (!optionOption) {
printHelp(false, "", XBU::get_device_class(m_device, true));
printHelp();
return;
}

Expand Down
1 change: 0 additions & 1 deletion src/runtime_src/core/tools/xbutil2/SubCmdAdvanced.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ class SubCmdAdvanced : public SubCmd {

private:
bool m_help;
std::string m_device;
};

#endif
Expand Down
Loading