Skip to content

Commit

Permalink
CR-1142217 Change cmd to use xrt_bin_dir instead of XILINX_XRT (#7090) (
Browse files Browse the repository at this point in the history
#7094)

(cherry picked from commit f623347)
  • Loading branch information
rchane authored Oct 7, 2022
1 parent c80d1ec commit 76727a7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/runtime_src/core/tools/common/xball
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ temp_log_file=$(mktemp -u --suffix=.xball.log)

# 4. Use python to read the JSON file to find the devices of interest
# This command invokes the python script found at the bottom of this file
python3 $0 "${temp_python_status}" "${temp_json_file}" "${device_filter}" "${xrt_app}" "$prog_args"
python3 $0 "${temp_python_status}" "${temp_json_file}" "${device_filter}" "${xrt_app}" "$prog_args" "${XRT_BIN_DIR}"

# 5. Get python exit code
python_exit_code=1 # Assume the it failed
Expand Down Expand Up @@ -155,6 +155,7 @@ temp_json_file = sys.argv[2]
device_filter = sys.argv[3]
xrt_app = sys.argv[4]
prog_args = sys.argv[5]
xrt_bin_dir = sys.argv[6]
# Read in the JSON file produced earlier
with open(temp_json_file) as f:
Expand Down Expand Up @@ -197,7 +198,7 @@ for device in working_devices:
print("\n")
print("=====================================================================")
print("%d / %d [%s] : %s" % (device_count, len(working_devices), device["bdf"], device["vbnv"]))
cmd = os.environ['XILINX_XRT'] + "/bin/" + xrt_app + " --device " + device["bdf"] + " " + prog_args
cmd = xrt_bin_dir + "/" + xrt_app + " --device " + device["bdf"] + " " + prog_args
print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
print("Command: %s\n" % cmd)
exit_code = os.system(cmd)
Expand Down

0 comments on commit 76727a7

Please sign in to comment.