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

VITIS-13806 Fix helper scripts and return codes for xrt-smi #8716

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

rchane
Copy link
Collaborator

@rchane rchane commented Jan 24, 2025

Problem solved by the commit

https://jira.xilinx.com/browse/VITIS-13806

Bug / issue (if any) fixed, which PR introduced the bug, how it was discovered

The xrt-smi helper script wasn't trying to get the loader and returned 0 due to a faulty if check.
(e.g. bin is still in the path on Windows MCDM and Linux amdxdna, so we should still be finding the loader)

How problem was solved, alternative solutions (if any) and why they were rejected

Removed the faulty part of the if check. This should also preserve the original return behavior for edge platforms. Also removed xbutil helper script for Linux to deprecate xbutil usage

Risks (if any) associated the changes in the commit

N/A

What has been tested and how, request additional testing if necessary

Tested/built on amdxdna and MCDM.

$ xrt-smi configure --pmode performance
ERROR: Please specify a device using --device option
 Available devices:

$ echo $?
1

Documentation impact (if any)

N/A

@@ -35,7 +35,7 @@ XRT_LOADER_DIR="`dirname \"$0\"`"

# For edge platforms loader is not required as tools are in standard location(/usr).
# So calling unwrapped tool from this script itself.
if [[ $XRT_LOADER_DIR =~ "/usr" || $XRT_LOADER_DIR =~ "/bin" ]]; then
if [[ $XRT_LOADER_DIR =~ "/usr" ]]; then
Copy link
Collaborator

@stsoe stsoe Jan 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, doesn't this break what was fixed in #8426 ?

Copy link
Collaborator Author

@rchane rchane Jan 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you; fixing the regex...

@stsoe stsoe requested a review from rbramand-xilinx January 24, 2025 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants