Skip to content

Commit

Permalink
patch application automatically when building with --benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
sohamm17 committed Jul 29, 2024
1 parent 7bf4b69 commit d4f265f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions run
Original file line number Diff line number Diff line change
Expand Up @@ -683,6 +683,12 @@ build() {
build_path="build/$1"
fi

local app_source_root_path
if [ $benchmark == true ]; then
app_source_root_path=$(get_app_source_root_dir $1)
run_command benchmarks/holoscan_flow_benchmarking/patch_application.sh ${app_source_root_path}
fi

echo "Building $1 application"
application="-DAPP_$1=1"

Expand All @@ -701,6 +707,11 @@ build() {
ret=$?
check_exit_code $ret "Error building application."

if [ $benchmark == true ]; then
app_source_root_path=$(get_app_source_root_dir $1)
run_command benchmarks/holoscan_flow_benchmarking/restore_application.sh ${app_source_root_path}
fi

echo "Holohub build done."
}

Expand Down

0 comments on commit d4f265f

Please sign in to comment.