OpenVINO™ is an open source toolkit for optimizing and deploying AI inference
C++ aicomputer-visiondeep-learningdeploy-aidiffusion-modelsgenerative-aigood-first-issueinferencellm-inferencenatural-language-processingnlpopenvinooptimize-aiperformance-boostrecommendation-systemspeech-recognitionstable-diffusiontransformersyolo
[NPU] Use run-time ze_loader for npu plugin (#27659)
Xin Wang99d7cd4bc449
diff --git a/.github/workflows/linux_conditional_compilation.yml b/.github/workflows/linux_conditional_compilation.ymlindex 27f54da6ecd..ce78a9f3ae6 100644--- a/.github/workflows/linux_conditional_compilation.yml+++ b/.github/workflows/linux_conditional_compilation.yml@@ -212,7 +212,6 @@ jobs:tar -cvf - \tests/ov_cpu_func_tests \tests/libopenvino_template_extension.so \- tests/libze_loader.so* \tests/libhwloc* \tests/libtbb* \tests/functional_test_utils/layer_tests_summary/* \diff --git a/.github/workflows/windows_conditional_compilation.yml b/.github/workflows/windows_conditional_compilation.ymlindex 6a5846b514d..2c8ba236d85 100644--- a/.github/workflows/windows_conditional_compilation.yml+++ b/.github/workflows/windows_conditional_compilation.yml@@ -237,7 +237,7 @@ jobs:Compress-Archive @compress$compress = @{- Path = "${{ env.OPENVINO_REPO }}/bin/intel64/${{ env.CMAKE_BUILD_TYPE }}/ov_cpu_func_tests.exe", "${{ env.BUILD_DIR }}/bin/${{ env.CMAKE_BUILD_TYPE }}/ze_loader.dll", "${{ env.OPENVINO_REPO }}/bin/intel64/${{ env.CMAKE_BUILD_TYPE }}/openvino_template_extension.dll", "${{ env.OPENVINO_REPO }}/src/tests/test_utils/functional_test_utils/layer_tests_summary", "${{ env.INSTALL_DIR }}/runtime/3rdparty/tbb"+ Path = "${{ env.OPENVINO_REPO }}/bin/intel64/${{ env.CMAKE_BUILD_TYPE }}/ov_cpu_func_tests.exe", "${{ env.OPENVINO_REPO }}/bin/intel64/${{ env.CMAKE_BUILD_TYPE }}/openvino_template_extension.dll", "${{ env.OPENVINO_REPO }}/src/tests/test_utils/functional_test_utils/layer_tests_summary", "${{ env.INSTALL_DIR }}/runtime/3rdparty/tbb"CompressionLevel = "Optimal"DestinationPath = "${{ env.BUILD_DIR }}/openvino_tests.zip"}diff --git a/src/plugins/intel_npu/src/backend/CMakeLists.txt b/src/plugins/intel_npu/src/backend/CMakeLists.txtindex 251479aa19c..35767386055 100644--- a/src/plugins/intel_npu/src/backend/CMakeLists.txt+++ b/src/plugins/intel_npu/src/backend/CMakeLists.txt@@ -25,7 +25,6 @@ target_link_libraries(${TARGET_NAME}PRIVATEopenvino::npu_alopenvino::npu_common- LevelZero::LevelZero)#diff --git a/src/plugins/intel_npu/src/compiler_adapter/CMakeLists.txt b/src/plugins/intel_npu/src/compiler_adapter/CMakeLists.txtindex 830019f8553..b2eb5e8ee90 100644--- a/src/plugins/intel_npu/src/compiler_adapter/CMakeLists.txt+++ b/src/plugins/intel_npu/src/compiler_adapter/CMakeLists.txt@@ -25,7 +25,6 @@ target_link_libraries(${TARGET_NAME}PRIVATEopenvino::npu_alopenvino::npu_common- LevelZero::LevelZero)#diff --git a/src/plugins/intel_npu/src/utils/src/zero/CMakeLists.txt b/src/plugins/intel_npu/src/utils/src/zero/CMakeLists.txtindex 8eb9cb31db8..76512189541 100644--- a/src/plugins/intel_npu/src/utils/src/zero/CMakeLists.txt+++ b/src/plugins/intel_npu/src/utils/src/zero/CMakeLists.txt@@ -15,9 +15,13 @@ ov_add_clang_format_target(${TARGET_NAME}_clang FOR_TARGETS ${TARGET_NAME})add_library(openvino::npu_zero_utils ALIAS ${TARGET_NAME})set_target_properties(${TARGET_NAME} PROPERTIES EXPORT_NAME npu_zero_utils)+add_library(level-zero-headers INTERFACE)+set_property(TARGET level-zero-headers APPEND PROPERTY INTERFACE_INCLUDE_DIRECTORIES $<BUILD_INTERFACE:${OpenVINO_SOURCE_DIR}/thirdparty/level_zero/level-zero/include>)+add_library(LevelZero::Headers ALIAS level-zero-headers)+target_include_directories(${TARGET_NAME}PUBLIC- $<TARGET_PROPERTY:LevelZero::LevelZero,INTERFACE_INCLUDE_DIRECTORIES>+ $<TARGET_PROPERTY:LevelZero::Headers,INTERFACE_INCLUDE_DIRECTORIES>$<TARGET_PROPERTY:LevelZero::NPUExt,INTERFACE_INCLUDE_DIRECTORIES>$<BUILD_INTERFACE:${NPU_UTILS_SOURCE_DIR}/include>)@@ -35,16 +39,5 @@ ov_developer_package_export_targets(TARGET openvino::npu_zero_utilsov_developer_package_export_targets(TARGET level-zero-ext)ov_install_static_lib(level-zero-ext ${NPU_PLUGIN_COMPONENT})-if(TARGET ze_loader)- ov_developer_package_export_targets(TARGET ze_loader)- ov_install_static_lib(ze_loader ${NPU_PLUGIN_COMPONENT})-- # TODO: remove once https://github.com/oneapi-src/level-zero/pull/243 is merged- ov_developer_package_export_targets(TARGET utils)- ov_install_static_lib(utils ${NPU_PLUGIN_COMPONENT})-- # Support tests to run with ze_loader- install(TARGETS ze_loader- RUNTIME DESTINATION tests COMPONENT tests EXCLUDE_FROM_ALL- LIBRARY DESTINATION tests COMPONENT tests EXCLUDE_FROM_ALL)-endif()+ov_developer_package_export_targets(TARGET level-zero-headers)+ov_install_static_lib(level-zero-headers ${NPU_PLUGIN_COMPONENT})