Skip to content

Commit

Permalink
documentation update
Browse files Browse the repository at this point in the history
patch application automatically when building with --benchmark
removed description from build_desc for benchmarking

Signed-off-by: sohams <sohams@nvidia.com>
  • Loading branch information
sohamm17 committed Jul 29, 2024
1 parent 4dee591 commit ebb3db0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
3 changes: 1 addition & 2 deletions benchmarks/holoscan_flow_benchmarking/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ This script saves the original `cpp` files in a `*.cpp.bak` file.
2. **Build the application**

```
$ ./run build <application name> <other options> \
--configure-args -DCMAKE_CXX_FLAGS=-I$PWD/benchmarks/holoscan_flow_benchmarking
$ ./run build <application name> <other options> --benchmark
```

Please make sure to test that the application runs correctly after building it, and before going to
Expand Down
11 changes: 11 additions & 0 deletions run
Original file line number Diff line number Diff line change
Expand Up @@ -681,6 +681,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 @@ -699,6 +705,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 ebb3db0

Please sign in to comment.