|
1 | 1 | # Copyright (c) Meta Platforms, Inc. and affiliates. |
2 | | -# Copyright 2024-2025 Arm Limited and/or its affiliates. |
3 | 2 | # All rights reserved. |
| 3 | +# Copyright 2024-2025 Arm Limited and/or its affiliates. |
4 | 4 | # |
5 | 5 | # This source code is licensed under the BSD-style license found in the |
6 | 6 | # LICENSE file in the root directory of this source tree. |
@@ -161,7 +161,7 @@ if(OPTIMIZE_SIZE) |
161 | 161 | set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -Os") |
162 | 162 | else() |
163 | 163 | # -O2: Moderate opt. |
164 | | - set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O2") |
| 164 | + set(CMAKE_CXX_FLAGS_RELEASE "-O2 ${CMAKE_CXX_FLAGS_RELEASE}") |
165 | 165 | endif() |
166 | 166 |
|
167 | 167 | option(EXECUTORCH_BUILD_ANDROID_JNI "Build Android JNI" OFF) |
@@ -204,6 +204,8 @@ option(EXECUTORCH_BUILD_MPS "Build the MPS backend" OFF) |
204 | 204 |
|
205 | 205 | option(EXECUTORCH_BUILD_NEURON "Build the backends/mediatek directory" OFF) |
206 | 206 |
|
| 207 | +option(EXECUTORCH_BUILD_OPENVINO "Build the Openvino backend" OFF) |
| 208 | + |
207 | 209 | option(EXECUTORCH_BUILD_PYBIND "Build the Python Bindings" OFF) |
208 | 210 |
|
209 | 211 | option(EXECUTORCH_BUILD_QNN "Build the Qualcomm backend" OFF) |
@@ -715,6 +717,10 @@ if(EXECUTORCH_BUILD_NEURON) |
715 | 717 | add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/backends/mediatek) |
716 | 718 | endif() |
717 | 719 |
|
| 720 | +if(EXECUTORCH_BUILD_OPENVINO) |
| 721 | + add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/backends/openvino) |
| 722 | +endif() |
| 723 | + |
718 | 724 | if(EXECUTORCH_BUILD_QNN) |
719 | 725 | add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/backends/qualcomm) |
720 | 726 | endif() |
@@ -751,7 +757,7 @@ if(EXECUTORCH_BUILD_EXTENSION_FLAT_TENSOR) |
751 | 757 | endif() |
752 | 758 |
|
753 | 759 | if(EXECUTORCH_BUILD_EXTENSION_LLM) |
754 | | - add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/extension/llm/tokenizer) |
| 760 | + add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/extension/llm/tokenizers) |
755 | 761 | endif() |
756 | 762 |
|
757 | 763 | if(EXECUTORCH_BUILD_EXTENSION_MODULE) |
@@ -817,6 +823,10 @@ if(EXECUTORCH_BUILD_PYBIND) |
817 | 823 | list(APPEND _dep_libs mpsdelegate) |
818 | 824 | endif() |
819 | 825 |
|
| 826 | + if(EXECUTORCH_BUILD_OPENVINO) |
| 827 | + list(APPEND _dep_libs openvino_backend) |
| 828 | + endif() |
| 829 | + |
820 | 830 | if(EXECUTORCH_BUILD_XNNPACK) |
821 | 831 | # need to explicitly specify XNNPACK and microkernels-prod |
822 | 832 | # here otherwise uses XNNPACK and microkernel-prod symbols from libtorch_cpu |
|
0 commit comments