Skip to content

Arm backend: Fix pte path in run.sh when using a model python file #5979

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

Closed
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
27 changes: 15 additions & 12 deletions examples/arm/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,13 @@ fi
function generate_pte_file() {
[[ $# -ne 2 ]] && { echo "[${FUNCNAME[0]}]" "Expecting model and model_compiler_flags flag, got, $*"; exit 1; }
local model=${1}
local model_short_name=$(basename -- "${model}" ".py")
local model_compiler_flags=${2}

local model_filename=${model}_arm_${target}.pte
local model_filename=${model_short_name}_arm_${target}.pte
if [[ "${model_compiler_flags}" == *"--delegate"* ]]; then
# Name aligned with default aot_arm_compiler output
model_filename=${model}_arm_delegate_${target}.pte
# Name aligned with default aot_arm_compiler output
model_filename=${model_short_name}_arm_delegate_${target}.pte
fi
cd $et_root_dir

Expand Down Expand Up @@ -233,18 +234,20 @@ function run_fvp() {
-C mps3_board.uart0.shutdown_on_eot=1 \
-a "${elf}" \
--timelimit 120 || true # seconds
echo "[${FUNCNAME[0]} Simulation complete, $?"
echo "[${FUNCNAME[0]}] Simulation complete, $?"
elif [[ ${target} == *"ethos-u85"* ]]; then
${fvp_model} \
-C mps4_board.subsystem.cpu0.CFGITCMSZ=11 \
-C mps4_board.subsystem.ethosu.num_macs=${num_macs} \
-C mps4_board.visualisation.disable-visualisation=1 \
-C vis_hdlcd.disable_visualisation=1 \
-C mps4_board.telnetterminal0.start_telnet=0 \
-C mps4_board.uart0.out_file='-' \
-C mps4_board.uart0.shutdown_on_eot=1 \
echo "Running ${elf} for ${target} run with FVP:${fvp_model} num_macs:${num_macs}"
${fvp_model} \
-C mps4_board.subsystem.cpu0.CFGITCMSZ=11 \
-C mps4_board.subsystem.ethosu.num_macs=${num_macs} \
-C mps4_board.visualisation.disable-visualisation=1 \
-C vis_hdlcd.disable_visualisation=1 \
-C mps4_board.telnetterminal0.start_telnet=0 \
-C mps4_board.uart0.out_file='-' \
-C mps4_board.uart0.shutdown_on_eot=1 \
-a "${elf}" \
--timelimit 120 || true # seconds
echo "[${FUNCNAME[0]}] Simulation complete, $?"
else
echo "Running ${elf} for ${target} is not supported"
exit 1
Expand Down
Loading