Skip to content

Commit a902ddd

Browse files
committed
Rollback on openvino changes
1 parent f19fe70 commit a902ddd

File tree

3 files changed

+24
-5
lines changed

3 files changed

+24
-5
lines changed

CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -725,10 +725,6 @@ if(EXECUTORCH_BUILD_EXECUTOR_RUNNER)
725725
list(APPEND _executor_runner_libs xnnpack_backend)
726726
endif()
727727

728-
if(EXECUTORCH_BUILD_OPENVINO)
729-
list(APPEND _executor_runner_libs openvino_backend)
730-
endif()
731-
732728
if(EXECUTORCH_ENABLE_EVENT_TRACER)
733729
list(APPEND _executor_runner_libs etdump flatccrt)
734730
endif()

backends/openvino/CMakeLists.txt

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,28 @@ target_sources(openvino_backend PRIVATE ${CMAKE_CURRENT_LIST_DIR}/runtime/Openvi
4848

4949
target_link_options_shared_lib(openvino_backend)
5050

51+
if(EXECUTORCH_BUILD_OPENVINO_EXECUTOR_RUNNER)
52+
# Build executor runner binary for openvino backend
53+
list(APPEND openvino_executor_runner_libs openvino_backend executorch)
54+
55+
set(_openvino_executor_runner__srcs
56+
${EXECUTORCH_ROOT}/examples/portable/executor_runner/executor_runner.cpp
57+
${EXECUTORCH_ROOT}/extension/data_loader/file_data_loader.cpp
58+
${EXECUTORCH_ROOT}/extension/evalue_util/print_evalue.cpp
59+
${EXECUTORCH_ROOT}/extension/runner_util/inputs.cpp
60+
${EXECUTORCH_ROOT}/extension/runner_util/inputs_portable.cpp
61+
)
62+
add_executable(openvino_executor_runner ${_openvino_executor_runner__srcs})
63+
64+
list(APPEND openvino_executor_runner_libs)
65+
66+
target_link_libraries(
67+
openvino_executor_runner gflags portable_ops_lib ${openvino_executor_runner_libs}
68+
)
69+
target_compile_options(openvino_executor_runner PUBLIC ${_common_compile_options})
70+
endif()
71+
72+
73+
5174
# Install OpenVINO backend library to the lib directory
5275
install(TARGETS openvino_backend DESTINATION lib)

backends/openvino/scripts/openvino_build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ main() {
3030
-DEXECUTORCH_BUILD_EXTENSION_MODULE=ON \
3131
-DEXECUTORCH_BUILD_EXTENSION_RUNNER_UTIL=ON \
3232
-DEXECUTORCH_BUILD_EXTENSION_TENSOR=ON \
33-
-DEXECUTORCH_BUILD_EXECUTOR_RUNNER=ON \
33+
-DEXECUTORCH_BUILD_OPENVINO_EXECUTOR_RUNNER=ON \
3434
-B"${build_dir}"
3535

3636

0 commit comments

Comments
 (0)