Skip to content

Allow passing install_executorch.py args to backends/openvino/scripts/openvino_build.sh #11469

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
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
7 changes: 5 additions & 2 deletions backends/openvino/scripts/openvino_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ echo EXECUTORCH_ROOT=${EXECUTORCH_ROOT}
main() {
build_type=${1:-"--cpp_runtime"}

shift # Remove the first argument (build_type) from the list of arguments
args=("$@") # Capture all remaining arguments

# If the first arguments is --cpp_runtime (default), build libraries for C++ runtime
if [[ -z "$build_type" || "$build_type" == "--cpp_runtime" ]]; then
echo "Building C++ Runtime Libraries"
Expand Down Expand Up @@ -43,7 +46,7 @@ main() {

# Create and enter the build directory
cd "$EXECUTORCH_ROOT"
./install_executorch.sh --clean
./install_executorch.sh --clean "${args[@]}"

# Set parameters to configure the project with CMake
# Note: Add any additional configuration options you need here
Expand All @@ -52,7 +55,7 @@ main() {
export CMAKE_BUILD_ARGS="--target openvino_backend"

# Build the package
./install_executorch.sh
./install_executorch.sh "${args[@]}"

# Install torchao
pip install third-party/ao
Expand Down
Loading