Skip to content

Commit f19fe70

Browse files
committed
Consolidating executor runners in CMake - openvino
Continuing the process of consolidating the executor runners to top level CMakeLists.txt file. Completed this process for the openvino backend.
1 parent ceaf147 commit f19fe70

File tree

3 files changed

+5
-24
lines changed

3 files changed

+5
-24
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -725,6 +725,10 @@ 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+
728732
if(EXECUTORCH_ENABLE_EVENT_TRACER)
729733
list(APPEND _executor_runner_libs etdump flatccrt)
730734
endif()

backends/openvino/CMakeLists.txt

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -48,28 +48,5 @@ 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-
7451
# Install OpenVINO backend library to the lib directory
7552
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_OPENVINO_EXECUTOR_RUNNER=ON \
33+
-DEXECUTORCH_BUILD_EXECUTOR_RUNNER=ON \
3434
-B"${build_dir}"
3535

3636

0 commit comments

Comments
 (0)