Skip to content

Commit

Permalink
Fix xbutil/xrt-smi wrapper script to find loader
Browse files Browse the repository at this point in the history
Signed-off-by: rbramand <[email protected]>
  • Loading branch information
rbramand committed Sep 17, 2024
1 parent 3d6257e commit 39f9042
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/runtime_src/core/tools/xbutil2/xbutil
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,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" ]]; then
if [[ $XRT_LOADER_DIR =~ "/usr" || $XRT_LOADER_DIR =~ "/bin" ]]; then
"${XRT_LOADER_DIR}/unwrapped/${XRT_PROG}" "${XRTWRAP_PROG_ARGS[@]}"
exit 0
fi
Expand Down
2 changes: 1 addition & 1 deletion src/runtime_src/core/tools/xbutil2/xrt-smi
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]]; then
if [[ $XRT_LOADER_DIR =~ "/usr" || $XRT_LOADER_DIR =~ "/bin" ]]; then
"${XRT_LOADER_DIR}/unwrapped/${XRT_PROG}" "${XRTWRAP_PROG_ARGS[@]}"
exit 0
fi
Expand Down

0 comments on commit 39f9042

Please sign in to comment.