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] UD2026.28 Engineering Drop ww23 (#36225)
Maksim Doronin9246c6a2e6fd
diff --git a/src/plugins/intel_npu/cmake/download_compiler_libs.cmake b/src/plugins/intel_npu/cmake/download_compiler_libs.cmakeindex 17f702ce3ac..b2d6ab694b2 100644--- a/src/plugins/intel_npu/cmake/download_compiler_libs.cmake+++ b/src/plugins/intel_npu/cmake/download_compiler_libs.cmake@@ -4,14 +4,12 @@# This script resolves the prebuilt NPU Plugin Compiler dependency by downloading and extracting the appropriate# archive based on the current platform. The expected location of the archive and naming convention is as follows:-# vcl version: 7.7.0-# release: releases/unified/2026/20# storage location: https://storage.openvinotoolkit.org/dependencies/thirdparty# WINDOWS:-# windows2022: npu_compiler_vcl_windows_2022-7_7_0-a282305.zip+# windows2022: npu_compiler_vcl_windows_2022-<compiler_version>-<compiler_commit_sha>.zip# LINUX:-# ubuntu22.04: npu_compiler_vcl_ubuntu_22_04-7_7_0-a282305.tar.gz-# ubuntu24.04: npu_compiler_vcl_ubuntu_24_04-7_7_0-a282305.tar.gz+# ubuntu22.04: npu_compiler_vcl_ubuntu_22_04-<compiler_version>-<compiler_commit_sha>.tar.gz+# ubuntu24.04: npu_compiler_vcl_ubuntu_24_04-<compiler_version>-<compiler_commit_sha>.tar.gz## This script replicates cmake/dependencies.cmake common OV dependency resolution logic including:# THIRDPARTY_SERVER_PATH environment variable or cmake options support that allows@@ -48,13 +46,13 @@ endfunction()if(ENABLE_INTEL_NPU_COMPILER)message(STATUS "Resolving prebuilt NPU Plugin Compiler dependencies...")- set(PLUGIN_COMPILER_VERSION_MAJOR 7)- set(PLUGIN_COMPILER_VERSION_MINOR 7)+ set(PLUGIN_COMPILER_VERSION_MAJOR 8)+ set(PLUGIN_COMPILER_VERSION_MINOR 2)set(PLUGIN_COMPILER_VERSION_PATCH 0)- set(PLUGIN_COMPILER_COMMIT_SHA a282305)- set(PLUGIN_COMPILER_WINDOWS_2022_CHECKSUM aa94213af3deed2aaab216c7d39e0787cff002156428a432d1395f94cf23ca6f)- set(PLUGIN_COMPILER_UBUNTU_22_04_CHECKSUM 789572fb15dc580484fac1b2f542842f5eb2834234410d059f0977ca14bbeb6a)- set(PLUGIN_COMPILER_UBUNTU_24_04_CHECKSUM faece2ee29de4905301c80d872177527c4011e98639bbed6445b70e5ce543d5f)+ set(PLUGIN_COMPILER_COMMIT_SHA 4fd12bb)+ set(PLUGIN_COMPILER_WINDOWS_2022_CHECKSUM e43aa2fdd9b51d08901ca14f32048a9b3d6e26aeb6ddd68059966dda599196ee)+ set(PLUGIN_COMPILER_UBUNTU_22_04_CHECKSUM ea8cbeb32d56962ccea808fa177f95fafb39ec83acbb6f19c545ed7f007b4bdb)+ set(PLUGIN_COMPILER_UBUNTU_24_04_CHECKSUM ec943662b847ec7659fab52eb2c4e32c105a5fd59e1d4bccfe738aca57a92825)set(PLUGIN_COMPILER_VERSION_UNDERSCORE "${PLUGIN_COMPILER_VERSION_MAJOR}_${PLUGIN_COMPILER_VERSION_MINOR}_${PLUGIN_COMPILER_VERSION_PATCH}")message(STATUS "The prebuilt compiler version is ${PLUGIN_COMPILER_VERSION_MAJOR}.${PLUGIN_COMPILER_VERSION_MINOR}.${PLUGIN_COMPILER_VERSION_PATCH}.${PLUGIN_COMPILER_COMMIT_SHA}")@@ -68,8 +66,10 @@ if(ENABLE_INTEL_NPU_COMPILER)set(PLUGIN_COMPILER_PACKAGE_EXT "zip")set(PLUGIN_COMPILER_ARCHIVE_TYPE "ARCHIVE_WIN")set(PLUGIN_COMPILER_LIB_NAME "openvino_intel_npu_compiler.dll")+ set(PLUGIN_COMPILER_PDB_NAME "openvino_intel_npu_compiler.pdb")set(PLUGIN_COMPILER_LOADER_LIB_NAME "openvino_intel_npu_compiler_loader.dll")- elseif(UNIX AND NOT APPLE)+ set(PLUGIN_COMPILER_LOADER_PDB_NAME "openvino_intel_npu_compiler_loader.pdb")+ elseif(UNIX AND NOT APPLE AND NOT ANDROID)# Get the OS name and OS versionexecute_process(COMMAND lsb_release -is OUTPUT_VARIABLE OS_NAME OUTPUT_STRIP_TRAILING_WHITESPACE)execute_process(COMMAND lsb_release -rs OUTPUT_VARIABLE OS_VERSION OUTPUT_STRIP_TRAILING_WHITESPACE)@@ -113,6 +113,7 @@ if(ENABLE_INTEL_NPU_COMPILER)print_build_manifest("${NPU_PLUGIN_COMPILER}/build_manifest.json")set(PLUGIN_COMPILER_LIB_PATH "${NPU_PLUGIN_COMPILER}/lib")+ set(PLUGIN_COMPILER_PDB_PATH "${NPU_PLUGIN_COMPILER}/pdb")if(USE_BUILD_TYPE_SUBFOLDER)set(PLUGIN_COMPILER_LIB_DESTINATION ${CMAKE_LIBRARY_OUTPUT_DIRECTORY})@@ -129,6 +130,17 @@ if(ENABLE_INTEL_NPU_COMPILER)install(FILES ${PLUGIN_COMPILER_LIB} DESTINATION ${OV_CPACK_PLUGINSDIR} COMPONENT ${NPU_PLUGIN_COMPONENT})install(FILES ${PLUGIN_COMPILER_LOADER_LIB} DESTINATION ${OV_CPACK_PLUGINSDIR} COMPONENT ${NPU_PLUGIN_COMPONENT})++ if(WIN32)+ set(PLUGIN_COMPILER_PDB "${PLUGIN_COMPILER_PDB_PATH}/${PLUGIN_COMPILER_PDB_NAME}")+ set(PLUGIN_COMPILER_LOADER_PDB "${PLUGIN_COMPILER_PDB_PATH}/${PLUGIN_COMPILER_LOADER_PDB_NAME}")+ file(COPY "${PLUGIN_COMPILER_PDB}" DESTINATION "${PLUGIN_COMPILER_LIB_DESTINATION}")+ file(COPY "${PLUGIN_COMPILER_LOADER_PDB}" DESTINATION "${PLUGIN_COMPILER_LIB_DESTINATION}")+ message(STATUS "Copying prebuilt Plugin compiler PDB files from ${PLUGIN_COMPILER_PDB_PATH} to ${PLUGIN_COMPILER_LIB_DESTINATION}")++ install(FILES ${PLUGIN_COMPILER_PDB} DESTINATION ${OV_CPACK_PLUGINSDIR} COMPONENT pdb EXCLUDE_FROM_ALL)+ install(FILES ${PLUGIN_COMPILER_LOADER_PDB} DESTINATION ${OV_CPACK_PLUGINSDIR} COMPONENT pdb EXCLUDE_FROM_ALL)+ endif()else()message(FATAL_ERROR "Failed to download prebuilt NPU Plugin Compiler libraries. Can not use plugin compiler libraries!")endif()diff --git a/src/plugins/intel_npu/tests/functional/behavior/dynamic_host_pipeline/infer_with_host_compile.cpp b/src/plugins/intel_npu/tests/functional/behavior/dynamic_host_pipeline/infer_with_host_compile.cppindex 4a1796b61fe..1edd68bb34c 100644--- a/src/plugins/intel_npu/tests/functional/behavior/dynamic_host_pipeline/infer_with_host_compile.cpp+++ b/src/plugins/intel_npu/tests/functional/behavior/dynamic_host_pipeline/infer_with_host_compile.cpp@@ -15,11 +15,7 @@ const std::vector<ov::AnyMap> configs = {{{"NPU_COMPILER_TYPE", "PLUGIN"},{"NPU_COMPILATION_MODE", "HostCompile"},{"NPU_CREATE_EXECUTOR", "0"},- // After HostCompile default params were changed to a more performant configuration, these tests fail- // under the new defaults and need investigation before they can be re-enabled with the new configuration- // Untill then set old defaults explicitly to keep the tests running.- // Track: E#218923- {"NPU_COMPILATION_MODE_PARAMS", "dynamic-dim-alignment=false enable-auto-unrolling=false"}}};+ }};INSTANTIATE_TEST_SUITE_P(smoke_BehaviorTests,InferWithHostCompileTests,diff --git a/src/plugins/intel_npu/tests/functional/behavior/dynamic_host_pipeline/infer_with_host_compile.hpp b/src/plugins/intel_npu/tests/functional/behavior/dynamic_host_pipeline/infer_with_host_compile.hppindex 9a8c879b59a..d326fc26f99 100644--- a/src/plugins/intel_npu/tests/functional/behavior/dynamic_host_pipeline/infer_with_host_compile.hpp+++ b/src/plugins/intel_npu/tests/functional/behavior/dynamic_host_pipeline/infer_with_host_compile.hpp@@ -22,8 +22,8 @@ namespace test {namespace behavior {inline std::shared_ptr<ov::Model> createMaxPoolModel() {- auto input = std::make_shared<ov::op::v0::Parameter>(ov::element::f32,- ov::PartialShape{1, 16, 720, ov::Dimension(10, 1280)});+ auto input = std::make_shared<ov::op::v0::Parameter>(ov::element::f16,+ ov::PartialShape{1, 16, ov::Dimension(10, 720), ov::Dimension(10, 1280)});input->set_friendly_name("input1");auto maxpool = std::make_shared<ov::op::v1::MaxPool>(input,@@ -37,8 +37,18 @@ inline std::shared_ptr<ov::Model> createMaxPoolModel() {auto result = std::make_shared<ov::op::v0::Result>(maxpool);result->set_friendly_name("output");+ auto model = std::make_shared<Model>(ResultVector{result}, ParameterVector{input}, "MaxPool");- return std::make_shared<Model>(ResultVector{result}, ParameterVector{input}, "MaxPool");+ // making input and output to be NHWC+ auto preProc = ov::preprocess::PrePostProcessor(model);+ preProc.input(0).tensor().set_layout("NHWC");+ preProc.input(0).model().set_layout("NCHW");+ preProc.output(0).tensor().set_layout("NHWC");+ preProc.output(0).model().set_layout("NCHW");++ model = preProc.build();++ return model;}using InferWithHostCompileParams = std::tuple<std::string, // Device name@@ -300,7 +310,7 @@ TEST_P(InferWithHostCompileTests, CompileAndInferWithDecreasedSize) {auto& testContext = setupResult.context;// Start with the largest shape in the dynamic range.- ov::Shape shape = {1, 16, 720, 1280};+ ov::Shape shape = {1, 720, 1280, 16};ov::Tensor inTensor = ov::test::utils::create_and_fill_tensor(model->input().get_element_type(), shape, 100, 0);setInputInferAndCompare(model,testContext.reqDynamic,@@ -333,7 +343,7 @@ TEST_P(InferWithHostCompileTests, CompileAndInferWithDecreasedSize) {<< logCapture.str();logCapture.clear();- ov::Shape shape2 = {1, 16, 720, 720};+ ov::Shape shape2 = {1, 720, 720, 16};ov::Tensor inTensor3 = ov::test::utils::create_and_fill_tensor(model->input().get_element_type(), shape2, 100, 0);setInputInferAndCompare(model,testContext.reqDynamic,@@ -371,7 +381,7 @@ TEST_P(InferWithHostCompileTests, CompileAndInferWithIncreasedSize) {auto& testContext = setupResult.context;// Start with a smaller valid dynamic shape.- ov::Shape shape = {1, 16, 720, 720};+ ov::Shape shape = {1, 720, 720, 16};ov::Tensor inTensor = ov::test::utils::create_and_fill_tensor(model->input().get_element_type(), shape, 100, 0);setInputInferAndCompare(model,testContext.reqDynamic,@@ -404,7 +414,7 @@ TEST_P(InferWithHostCompileTests, CompileAndInferWithIncreasedSize) {<< logCapture.str();logCapture.clear();- ov::Shape shape2 = {1, 16, 720, 1280};+ ov::Shape shape2 = {1, 720, 1280, 16};ov::Tensor inTensor3 = ov::test::utils::create_and_fill_tensor(model->input().get_element_type(), shape2, 100, 0);setInputInferAndCompare(model,testContext.reqDynamic,@@ -440,7 +450,7 @@ TEST_P(InferWithHostCompileTests, CompileAndInferWithZeroTensor) {auto& testContext = setupResult.context;// Start from a regular host tensor.- ov::Shape shape = {1, 16, 720, 1280};+ ov::Shape shape = {1, 720, 1280, 16};ov::Tensor inTensor = ov::test::utils::create_and_fill_tensor(model->input().get_element_type(), shape, 100, 0);setInputInferAndCompare(model,testContext.reqDynamic,diff --git a/src/plugins/intel_npu/tests/functional/shared_tests_instances/npu_skip_func_tests.xml b/src/plugins/intel_npu/tests/functional/shared_tests_instances/npu_skip_func_tests.xmlindex c7b441d266f..c81cf10cdbe 100644--- a/src/plugins/intel_npu/tests/functional/shared_tests_instances/npu_skip_func_tests.xml+++ b/src/plugins/intel_npu/tests/functional/shared_tests_instances/npu_skip_func_tests.xml@@ -936,4 +936,15 @@ Example:</filters></skip_config>+ <!-- E#218923 -->+ <skip_config>+ <message>The tests crash when compiling model on NPU5010</message>+ <enable_rules>+ <device>5010</device>+ </enable_rules>+ <filters>+ <filter>.*InferWithHostCompileTests.*</filter>+ </filters>+ </skip_config>+</skip_configs>