diff --git a/CMakeLists.txt b/CMakeLists.txt index 549f7c40a2a6e8..6eb46b24d6cf61 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -82,13 +82,10 @@ if(NOT OV_GLIBC_VERSION VERSION_EQUAL 0.0) endif() # remove file with exported targets to force its regeneration -file(REMOVE "${CMAKE_BINARY_DIR}/ngraphTargets.cmake") -file(REMOVE "${CMAKE_BINARY_DIR}/InferenceEngineTargets.cmake") file(REMOVE "${CMAKE_BINARY_DIR}/OpenVINOTargets.cmake") # remove exported developer targets files to force its regeneration macro(ov_clean_developer_package_targets) - file(REMOVE "${CMAKE_BINARY_DIR}/inference_engine_developer_package_targets.cmake") file(REMOVE "${CMAKE_BINARY_DIR}/openvino_developer_package_targets.cmake") unset(_OPENVINO_DEVELOPER_PACKAGE_TARGETS CACHE) unset(openvino_installed_targets CACHE) diff --git a/cmake/developer_package/frontends/frontends.cmake b/cmake/developer_package/frontends/frontends.cmake index 0b14cabe54a05e..3930a6a71c9dd1 100644 --- a/cmake/developer_package/frontends/frontends.cmake +++ b/cmake/developer_package/frontends/frontends.cmake @@ -73,7 +73,7 @@ function(ov_generate_frontends_hpp) endif() endforeach() - # add dependency on header file generation for all inference_engine source files + # add dependency on header file generation for all openvino_frontend_common_obj runtime source files set_source_files_properties(${all_sources} PROPERTIES OBJECT_DEPENDS ${ov_frontends_hpp}) endfunction() diff --git a/cmake/developer_package/plugins/plugins.cmake b/cmake/developer_package/plugins/plugins.cmake index a8ee3e47d25497..fa12e4b5505d54 100644 --- a/cmake/developer_package/plugins/plugins.cmake +++ b/cmake/developer_package/plugins/plugins.cmake @@ -323,8 +323,8 @@ function(ov_generate_plugins_hpp) # add plugins to libraries including ov_plugins.hpp ov_target_link_plugins(openvino) - if(TARGET inference_engine_s) - ov_target_link_plugins(inference_engine_s) + if(TARGET openvino_runtime_s) + ov_target_link_plugins(openvino_runtime_s) endif() if(OV_GENERATOR_MULTI_CONFIG AND CMAKE_VERSION VERSION_GREATER_EQUAL 3.20) @@ -352,7 +352,7 @@ function(ov_generate_plugins_hpp) VERBATIM) # for some reason dependency on source files does not work - # so, we have to use explicit target and make it dependency for inference_engine_obj + # so, we have to use explicit target and make it dependency for openvino_runtime_obj add_custom_target(_ov_plugins_hpp DEPENDS ${ov_plugins_hpp}) - add_dependencies(inference_engine_obj _ov_plugins_hpp) + add_dependencies(openvino_runtime_obj _ov_plugins_hpp) endfunction() diff --git a/cmake/extra_modules.cmake b/cmake/extra_modules.cmake index dae1cb0b2e045e..7936aae3917ae0 100644 --- a/cmake/extra_modules.cmake +++ b/cmake/extra_modules.cmake @@ -177,9 +177,9 @@ endfunction() # since it's generated after modules are configured ov_generate_dev_package_config() -# extra modules must be registered after inference_engine library +# extra modules must be registered after openvino_runtime library # and all other OpenVINO Core libraries are creared -# because '_ov_register_extra_modules' creates fake InferenceEngineDeveloperPackageConfig.cmake +# because '_ov_register_extra_modules' creates fake OpenVINODeveloperPackageConfig.cmake # with all imported developer targets _ov_register_extra_modules() diff --git a/cmake/packaging/debian.cmake b/cmake/packaging/debian.cmake index 9db940fae07fa0..49b913ffe11306 100644 --- a/cmake/packaging/debian.cmake +++ b/cmake/packaging/debian.cmake @@ -307,8 +307,6 @@ macro(ov_cpack_settings) ov_debian_add_lintian_suppression(${python_component} # usr/lib/python3/dist-packages/requirements.txt "unknown-file-in-python-module-directory" - # usr/lib/python3/dist-packages/openvino/inference_engine/__init__.py - "executable-not-elf-or-script" # all directories "non-standard-dir-perm" # usr/bin/benchmark_app diff --git a/src/cmake/openvino.cmake b/src/cmake/openvino.cmake index 3a6de4492b4be9..e093302dd55129 100644 --- a/src/cmake/openvino.cmake +++ b/src/cmake/openvino.cmake @@ -22,10 +22,10 @@ add_library(${TARGET_NAME} $ $ $ - $ - $ - $ - $ + $ + $ + $ + $ $<$:$>) add_library(openvino::runtime ALIAS ${TARGET_NAME}) diff --git a/src/cmake/ov_parallel.cmake b/src/cmake/ov_parallel.cmake index 0dc8a7671883d8..3ed4507cb63238 100644 --- a/src/cmake/ov_parallel.cmake +++ b/src/cmake/ov_parallel.cmake @@ -274,7 +274,7 @@ function(ov_set_threading_interface_for TARGET_NAME) set(LINK_TYPE "PRIVATE") set(COMPILE_DEF_TYPE "PRIVATE") elseif(target_type STREQUAL "STATIC_LIBRARY") - # Affected libraries: inference_engine_s + # Affected libraries: openvino_runtime_s # they don't have TBB in public headers => PRIVATE set(LINK_TYPE "PRIVATE") set(COMPILE_DEF_TYPE "PUBLIC") diff --git a/src/common/low_precision_transformations/CMakeLists.txt b/src/common/low_precision_transformations/CMakeLists.txt index 35ce97b5d85b75..215cb74de0f1c0 100644 --- a/src/common/low_precision_transformations/CMakeLists.txt +++ b/src/common/low_precision_transformations/CMakeLists.txt @@ -2,7 +2,7 @@ # SPDX-License-Identifier: Apache-2.0 # -set (TARGET_NAME "inference_engine_lp_transformations") +set (TARGET_NAME "openvino_lp_transformations") set(PUBLIC_HEADERS_DIR "${CMAKE_CURRENT_SOURCE_DIR}/include") @@ -27,8 +27,7 @@ ov_build_target_faster(${TARGET_NAME}_obj UNITY) target_link_libraries(${TARGET_NAME}_obj PRIVATE openvino::itt openvino::core::dev) -target_include_directories(${TARGET_NAME}_obj PRIVATE $ - $>) +target_include_directories(${TARGET_NAME}_obj PRIVATE $) add_cpplint_target(${TARGET_NAME}_cpplint FOR_TARGETS ${TARGET_NAME}_obj) @@ -38,15 +37,6 @@ if(NOT BUILD_SHARED_LIBS) target_compile_definitions(${TARGET_NAME}_obj PUBLIC OPENVINO_STATIC_LIBRARY) endif() -# INTERFACE library for BW compatibility - -add_library(${TARGET_NAME} INTERFACE) -target_link_libraries(${TARGET_NAME} INTERFACE openvino::runtime) - -target_include_directories(${TARGET_NAME} INTERFACE - $ - $>) - # LTO set_target_properties(${TARGET_NAME}_obj PROPERTIES INTERPROCEDURAL_OPTIMIZATION_RELEASE ${ENABLE_LTO}) diff --git a/src/common/transformations/CMakeLists.txt b/src/common/transformations/CMakeLists.txt index 10ed5fa6eea413..c4c4ccaa9bb94c 100644 --- a/src/common/transformations/CMakeLists.txt +++ b/src/common/transformations/CMakeLists.txt @@ -2,7 +2,7 @@ # SPDX-License-Identifier: Apache-2.0 # -set(TARGET_NAME "inference_engine_transformations") +set(TARGET_NAME "openvino_transformations") set(PUBLIC_HEADERS_DIR "${CMAKE_CURRENT_SOURCE_DIR}/include") diff --git a/src/common/transformations/tests/CMakeLists.txt b/src/common/transformations/tests/CMakeLists.txt index 7091f5162fea8d..8aab671225f732 100644 --- a/src/common/transformations/tests/CMakeLists.txt +++ b/src/common/transformations/tests/CMakeLists.txt @@ -19,8 +19,6 @@ ov_add_test_target( sharedTestClasses ov_lpt_models ADD_CLANG_FORMAT - INCLUDES - $/src LABELS OV UNIT TRANSFORMATIONS ) diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index 8bf5976ef0fd9e..680bf15a5b037d 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -27,10 +27,10 @@ if(ON) set_property(SOURCE ${MIXED_SRC} APPEND PROPERTY INCLUDE_DIRECTORIES - $/src - $/dev_api - $/include - $/include/ie) + $/src + $/dev_api + $/include + $/include/ie) endif() # Create named folders for the sources within the .vcproj @@ -98,23 +98,23 @@ target_link_libraries(openvino_core_obj PRIVATE openvino::reference openvino::ut ov_mark_target_as_cc(openvino_core_obj) -# ngraph is public API => need to mark this library as important for ABI free +# openvino_core is public API => need to mark this library as important for ABI free ov_abi_free_target(openvino_core_obj) ov_ncc_naming_style(FOR_TARGET openvino_core_obj SOURCE_DIRECTORIES "${CMAKE_CURRENT_SOURCE_DIR}/include") -ov_add_clang_format_target(ngraph_clang FOR_SOURCES ${LIBRARY_SRC} ${PUBLIC_HEADERS} ${DEV_HEADERS}) +ov_add_clang_format_target(openvino_core_clang FOR_SOURCES ${LIBRARY_SRC} ${PUBLIC_HEADERS} ${DEV_HEADERS}) if(NOT BUILD_SHARED_LIBS) target_compile_definitions(openvino_core_obj PUBLIC OPENVINO_STATIC_LIBRARY) endif() if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") - # ngraph is linked against openvino::reference, openvino::shape_inference static libraries - # which include ngraph headers with dllimport attribute. Linker complains about it + # openvino_core is linked against openvino::reference, openvino::shape_inference static libraries + # which include openvino_core headers with dllimport attribute. Linker complains about it # but no way to fix this: linking with no attribute defaults to dllexport and we have - # multiple defitions for ngraph symbols. + # multiple defitions for openvino_core symbols. # # The possible way is to use object libraries for openvino::reference # but it's not convinient since these libraries are exported from build tree @@ -128,7 +128,8 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") target_link_options(openvino_core_obj ${link_type} "/IGNORE:4217,4286") endif() -# some sources are located in ngraph, while headers are in inference_engine_transformations +# TODO: try to remove this and move smart reshape to transformations +# some sources are located in openvino_core, while headers are in openvino_transformations file(GLOB_RECURSE smart_reshape_srcs ${CMAKE_CURRENT_SOURCE_DIR}/src/pass/smart_reshape/*.cpp) file(GLOB_RECURSE rt_info_srcs ${CMAKE_CURRENT_SOURCE_DIR}/src/pass/rt_info/*.cpp) set_source_files_properties("${CMAKE_CURRENT_SOURCE_DIR}/src/pass/convert_precision.cpp" @@ -139,18 +140,11 @@ set_source_files_properties("${CMAKE_CURRENT_SOURCE_DIR}/src/pass/convert_precis "${CMAKE_CURRENT_SOURCE_DIR}/src/preprocess/preprocess_steps_impl.cpp" "${CMAKE_CURRENT_SOURCE_DIR}/src/model.cpp" # for SmartReshape ${smart_reshape_srcs} ${rt_info_srcs} - PROPERTIES INCLUDE_DIRECTORIES $) + PROPERTIES INCLUDE_DIRECTORIES $) # Defines macro in C++ to load backend plugin target_include_directories(openvino_core_obj PUBLIC $ - PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/src) - -add_library(ngraph INTERFACE) -target_link_libraries(ngraph INTERFACE openvino::runtime) -# Add an alias so that library can be used inside the build tree, e.g. when testing -add_library(openvino::core ALIAS ngraph) - -target_include_directories(ngraph INTERFACE $) + PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/src) #----------------------------------------------------------------------------------------------- # Installation logic... diff --git a/src/core/tests/CMakeLists.txt b/src/core/tests/CMakeLists.txt index 47a82454ebd25d..c3f2120e98e2f8 100644 --- a/src/core/tests/CMakeLists.txt +++ b/src/core/tests/CMakeLists.txt @@ -13,7 +13,7 @@ add_definitions(-DSERIALIZED_ZOO=\"${TEST_MODEL_ZOO}/core/models\") # For type relaxed types set_source_files_properties(${CMAKE_CURRENT_SOURCE_DIR}/threading.cpp - PROPERTIES INCLUDE_DIRECTORIES $) + PROPERTIES INCLUDE_DIRECTORIES $) if(SUGGEST_OVERRIDE_SUPPORTED) set_source_files_properties(ov_tensor_test.cpp diff --git a/src/frontends/common/CMakeLists.txt b/src/frontends/common/CMakeLists.txt index 9c3d45f949c5bb..80fe85b7df8c9f 100644 --- a/src/frontends/common/CMakeLists.txt +++ b/src/frontends/common/CMakeLists.txt @@ -73,7 +73,7 @@ ov_abi_free_target(${TARGET_NAME}_obj) ov_ncc_naming_style(FOR_TARGET ${TARGET_NAME}_obj SOURCE_DIRECTORIES "${FRONTEND_INCLUDE_DIR}" ADDITIONAL_INCLUDE_DIRECTORIES - $) + $) # Installation rules header files diff --git a/src/inference/CMakeLists.txt b/src/inference/CMakeLists.txt index 6e99274ff05961..cc7422a456101f 100644 --- a/src/inference/CMakeLists.txt +++ b/src/inference/CMakeLists.txt @@ -2,10 +2,10 @@ # SPDX-License-Identifier: Apache-2.0 # -set (TARGET_NAME "inference_engine") +set (TARGET_NAME "openvino_runtime") if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") - # TODO: Add IMPLEMENT_OPENVINO_API to inference_engine_obj + # TODO: Add IMPLEMENT_OPENVINO_API to openvino_runtime_obj ov_add_compiler_flags(/wd4273) endif() @@ -100,18 +100,17 @@ ov_build_target_faster(${TARGET_NAME}_obj target_compile_definitions(${TARGET_NAME}_obj PRIVATE IMPLEMENT_INFERENCE_ENGINE_API - $<$:PROXY_PLUGIN_ENABLED> - $) + $<$:PROXY_PLUGIN_ENABLED>) target_include_directories(${TARGET_NAME}_obj SYSTEM PRIVATE - $ $ - $<$:$> $<$:$>) target_include_directories(${TARGET_NAME}_obj PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/src" - "${CMAKE_CURRENT_SOURCE_DIR}/dev_api" + $ + "${CMAKE_CURRENT_SOURCE_DIR}/include/ie" # TODO: remove in 2024.0 + $<$:$> # for ov_plugins.hpp $,$>,${CMAKE_CURRENT_BINARY_DIR}/$,${CMAKE_CURRENT_BINARY_DIR}>) @@ -137,7 +136,7 @@ ov_add_clang_format_target(${TARGET_NAME}_clang FOR_SOURCES ${OV_STATIC_DEPENDEN ov_ncc_naming_style(FOR_TARGET ${TARGET_NAME}_obj SOURCE_DIRECTORIES "${CMAKE_CURRENT_SOURCE_DIR}/include/openvino" - ADDITIONAL_INCLUDE_DIRECTORIES $) + ADDITIONAL_INCLUDE_DIRECTORIES $) # Static library used for unit tests which are always built diff --git a/src/inference/tests/functional/CMakeLists.txt b/src/inference/tests/functional/CMakeLists.txt index 7a5f43ed6a7f97..c35a5b1b1398ad 100644 --- a/src/inference/tests/functional/CMakeLists.txt +++ b/src/inference/tests/functional/CMakeLists.txt @@ -50,7 +50,7 @@ ov_add_test_target( DEFINES ${COMPILE_DEFINITIONS} INCLUDES - $/src + $/src $<$:$> ${CMAKE_CURRENT_SOURCE_DIR} ADD_CLANG_FORMAT diff --git a/src/plugins/intel_cpu/CMakeLists.txt b/src/plugins/intel_cpu/CMakeLists.txt index 7a269e6449288e..df9bddd23bc22e 100644 --- a/src/plugins/intel_cpu/CMakeLists.txt +++ b/src/plugins/intel_cpu/CMakeLists.txt @@ -207,8 +207,7 @@ if(BUILD_SHARED_LIBS) ov_set_threading_interface_for(${TARGET_NAME}_obj) target_compile_definitions(${TARGET_NAME}_obj PRIVATE - USE_STATIC_IE IMPLEMENT_INFERENCE_ENGINE_PLUGIN IMPLEMENT_INFERENCE_EXTENSION_API - $) + USE_STATIC_IE IMPLEMENT_INFERENCE_ENGINE_PLUGIN IMPLEMENT_INFERENCE_EXTENSION_API) set_target_properties(${TARGET_NAME}_obj PROPERTIES EXCLUDE_FROM_ALL ON) diff --git a/src/plugins/intel_cpu/tests/unit/CMakeLists.txt b/src/plugins/intel_cpu/tests/unit/CMakeLists.txt index 6bb37da132021a..a5247b8209ffd7 100644 --- a/src/plugins/intel_cpu/tests/unit/CMakeLists.txt +++ b/src/plugins/intel_cpu/tests/unit/CMakeLists.txt @@ -54,14 +54,12 @@ ov_add_test_target( gmock dnnl openvino::shape_inference - inference_engine_s + openvino_runtime_s unit_test_utils ov_models ov_snippets_models snippets_test_utils ${MLAS_LIBRARY} - inference_engine_transformations - inference_engine_lp_transformations ADD_CPPLINT LABELS OV UNIT CPU diff --git a/src/plugins/intel_gpu/tests/unit/CMakeLists.txt b/src/plugins/intel_gpu/tests/unit/CMakeLists.txt index 458280bbeae252..b2e745081a32c1 100644 --- a/src/plugins/intel_gpu/tests/unit/CMakeLists.txt +++ b/src/plugins/intel_gpu/tests/unit/CMakeLists.txt @@ -62,14 +62,12 @@ endif() set_target_properties(${TARGET_NAME} PROPERTIES INTERPROCEDURAL_OPTIMIZATION_RELEASE ${ENABLE_LTO}) target_link_libraries(${TARGET_NAME} PRIVATE openvino_intel_gpu_graph - inference_engine OpenCL::OpenCL gtest gtest_main gflags common_test_utils openvino::reference - inference_engine_transformations gmock) target_include_directories(${TARGET_NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} diff --git a/src/tests/test_utils/common_test_utils/CMakeLists.txt b/src/tests/test_utils/common_test_utils/CMakeLists.txt index 7514aa476adae3..10caf4fb836540 100644 --- a/src/tests/test_utils/common_test_utils/CMakeLists.txt +++ b/src/tests/test_utils/common_test_utils/CMakeLists.txt @@ -51,7 +51,7 @@ function(add_common_utils ADD_TARGET_NAME) # USE_STATIC_IE is passed if(ARGN) - target_link_libraries(${ADD_TARGET_NAME} PRIVATE inference_engine_s) + target_link_libraries(${ADD_TARGET_NAME} PRIVATE openvino_runtime_s) endif() ov_build_target_faster(${ADD_TARGET_NAME} diff --git a/src/tests/test_utils/unit_test_utils/CMakeLists.txt b/src/tests/test_utils/unit_test_utils/CMakeLists.txt index dd2bb77aa52224..7075b0d10d9c8b 100644 --- a/src/tests/test_utils/unit_test_utils/CMakeLists.txt +++ b/src/tests/test_utils/unit_test_utils/CMakeLists.txt @@ -18,7 +18,7 @@ ov_add_target( LINK_LIBRARIES PUBLIC common_test_utils_s - inference_engine_s + openvino_runtime_s gmock DEPENDENCIES mock_engine