-
Notifications
You must be signed in to change notification settings - Fork 472
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
CR 1217061 : xrt-smi advanced --help prints Alveo help #8545
Conversation
Signed-off-by: Akshay Tondak <[email protected]>
Signed-off-by: Akshay Tondak <[email protected]>
Can one of the admins verify this patch? |
Signed-off-by: Akshay Tondak <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You tried out all possible combinations for this? Passing in invalid values as well?
Signed-off-by: Akshay Tondak <[email protected]>
Passing an invalid value yields unrecognized arguments error :
|
@@ -46,6 +46,7 @@ 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") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need this device. "xrt-smi advanced --device <>" Is not a valid command. We have devices inside the suboptions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can print device specific help only when m_device is populated.
SubCmdProgram class also has a m_device which works on the OptionOption mechanism, similar to advanced.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, please make sure that all possible option combos work after this change!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only clocks and preemption are used as valida reports right now. Generating preemption exits silently and clocks works fine :
Z:\Repos\XRT-MCDM-FORK\XRT-MCDM\build\WRelease\xilinx\xrt>xrt-smi advanced --report preemption
Z:\Repos\XRT-MCDM-FORK\XRT-MCDM\build\WRelease\xilinx\xrt>xrt-smi advanced --report clocks
Clocks
H Clock : 800 MHz
MP-NPU Clock : 400 MHz
Why is unrecognized option showing both aie and alveo? |
Apologies, this is outdated.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Output seems good after changes!
Signed-off-by: Akshay Tondak <[email protected]>
* CR-1217061 revert Signed-off-by: Akshay Tondak <[email protected]> * CR-1217061 fix Signed-off-by: Akshay Tondak <[email protected]> * Adding missing line Signed-off-by: Akshay Tondak <[email protected]> * Adding missing code Signed-off-by: Akshay Tondak <[email protected]> * Taking care of empty error handling Signed-off-by: Akshay Tondak <[email protected]> --------- Signed-off-by: Akshay Tondak <[email protected]> Co-authored-by: Akshay Tondak <[email protected]>
Problem solved by the commit
xrt-smi advanced --help prints Alveo help which is incorrect
Bug / issue (if any) fixed, which PR introduced the bug, how it was discovered
https://jira.xilinx.com/browse/CR-1217061
Discovered through internal testing
How problem was solved, alternative solutions (if any) and why they were rejected
The problem was solved by setting m_device member and using to print specific help.
--report had multiple other bugs which are resolved with this :
Risks (if any) associated the changes in the commit
None
What has been tested and how, request additional testing if necessary
Tested on kracken board :
Before fix
After fix
Documentation impact (if any)
None