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] Rename VM runtime prebuilt library for tests (#36518)
Shaojie Zhu724e46a168d8
diff --git a/src/plugins/intel_npu/cmake/download_compiler_libs.cmake b/src/plugins/intel_npu/cmake/download_compiler_libs.cmakeindex 271e11915ea..3ef6eecf53f 100644--- a/src/plugins/intel_npu/cmake/download_compiler_libs.cmake+++ b/src/plugins/intel_npu/cmake/download_compiler_libs.cmake@@ -70,7 +70,9 @@ if(ENABLE_INTEL_NPU_COMPILER)set(PLUGIN_COMPILER_LOADER_LIB_NAME "openvino_intel_npu_compiler_loader.dll")set(PLUGIN_COMPILER_LOADER_PDB_NAME "openvino_intel_npu_compiler_loader.pdb")set(PLUGIN_COMPILER_VM_RT_LIB_NAME "npu_interpreter_runtime.dll")+ set(PLUGIN_COMPILER_VM_RT_RENAMED_LIB_NAME "openvino_intel_npu_vm_runtime.dll")set(PLUGIN_COMPILER_VM_RT_PDB_NAME "npu_interpreter_runtime.pdb")+ set(PLUGIN_COMPILER_VM_RT_RENAMED_PDB_NAME "openvino_intel_npu_vm_runtime.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)@@ -87,6 +89,7 @@ if(ENABLE_INTEL_NPU_COMPILER)set(PLUGIN_COMPILER_LIB_NAME "libopenvino_intel_npu_compiler.so")set(PLUGIN_COMPILER_LOADER_LIB_NAME "libopenvino_intel_npu_compiler_loader.so")set(PLUGIN_COMPILER_VM_RT_LIB_NAME "libnpu_interpreter_runtime.so")+ set(PLUGIN_COMPILER_VM_RT_RENAMED_LIB_NAME "libopenvino_intel_npu_vm_runtime.so")else()message(STATUS "${OS_NAME} ${OS_VERSION} Linux distribution is not supported, skip downloading prebuilt Plugin Compiler libraries. Can not use plugin compiler libraries!")return()@@ -127,23 +130,28 @@ if(ENABLE_INTEL_NPU_COMPILER)set(PLUGIN_COMPILER_LIB "${PLUGIN_COMPILER_LIB_PATH}/${PLUGIN_COMPILER_LIB_NAME}")set(PLUGIN_COMPILER_LOADER_LIB "${PLUGIN_COMPILER_LIB_PATH}/${PLUGIN_COMPILER_LOADER_LIB_NAME}")set(PLUGIN_COMPILER_VM_RT_LIB "${PLUGIN_COMPILER_LIB_PATH}/${PLUGIN_COMPILER_VM_RT_LIB_NAME}")+ set(PLUGIN_COMPILER_VM_RT_RENAMED_LIB "${PLUGIN_COMPILER_LIB_DESTINATION}/${PLUGIN_COMPILER_VM_RT_RENAMED_LIB_NAME}")file(COPY "${PLUGIN_COMPILER_LIB}" DESTINATION "${PLUGIN_COMPILER_LIB_DESTINATION}")file(COPY "${PLUGIN_COMPILER_LOADER_LIB}" DESTINATION "${PLUGIN_COMPILER_LIB_DESTINATION}")- file(COPY "${PLUGIN_COMPILER_VM_RT_LIB}" DESTINATION "${PLUGIN_COMPILER_LIB_DESTINATION}")+ configure_file("${PLUGIN_COMPILER_VM_RT_LIB}" "${PLUGIN_COMPILER_VM_RT_RENAMED_LIB}" COPYONLY)message(STATUS "Copying prebuilt Plugin compiler library ${PLUGIN_COMPILER_LIB} to ${PLUGIN_COMPILER_LIB_DESTINATION}")message(STATUS "Copying prebuilt Plugin compiler loader library ${PLUGIN_COMPILER_LOADER_LIB} to ${PLUGIN_COMPILER_LIB_DESTINATION}")- message(STATUS "Copying prebuilt Plugin compiler VM runtime library ${PLUGIN_COMPILER_VM_RT_LIB} to ${PLUGIN_COMPILER_LIB_DESTINATION}")+ message(STATUS "Copying prebuilt Plugin compiler VM runtime library ${PLUGIN_COMPILER_VM_RT_LIB} to ${PLUGIN_COMPILER_VM_RT_RENAMED_LIB}")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(ENABLE_INTEL_NPU_INTERNAL)+ install(FILES ${PLUGIN_COMPILER_VM_RT_RENAMED_LIB} DESTINATION ${OV_CPACK_PLUGINSDIR} COMPONENT ${NPU_INTERNAL_COMPONENT} ${OV_CPACK_COMP_NPU_INTERNAL_EXCLUDE_ALL})+ endif()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}")set(PLUGIN_COMPILER_VM_RT_PDB "${PLUGIN_COMPILER_PDB_PATH}/${PLUGIN_COMPILER_VM_RT_PDB_NAME}")+ set(PLUGIN_COMPILER_VM_RT_RENAMED_PDB "${PLUGIN_COMPILER_LIB_DESTINATION}/${PLUGIN_COMPILER_VM_RT_RENAMED_PDB_NAME}")file(COPY "${PLUGIN_COMPILER_PDB}" DESTINATION "${PLUGIN_COMPILER_LIB_DESTINATION}")file(COPY "${PLUGIN_COMPILER_LOADER_PDB}" DESTINATION "${PLUGIN_COMPILER_LIB_DESTINATION}")- file(COPY "${PLUGIN_COMPILER_VM_RT_PDB}" DESTINATION "${PLUGIN_COMPILER_LIB_DESTINATION}")+ configure_file("${PLUGIN_COMPILER_VM_RT_PDB}" "${PLUGIN_COMPILER_VM_RT_RENAMED_PDB}" COPYONLY)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)diff --git a/src/plugins/intel_npu/src/utils/include/intel_npu/utils/vm/npu_vm_runtime_api.hpp b/src/plugins/intel_npu/src/utils/include/intel_npu/utils/vm/npu_vm_runtime_api.hppindex 046a1570c77..da0c7d610b9 100644--- a/src/plugins/intel_npu/src/utils/include/intel_npu/utils/vm/npu_vm_runtime_api.hpp+++ b/src/plugins/intel_npu/src/utils/include/intel_npu/utils/vm/npu_vm_runtime_api.hpp@@ -32,7 +32,7 @@ namespace intel_npu {class NPUVMRuntimeApi {public:- NPUVMRuntimeApi(std::string_view libName = "npu_mlir_runtime");+ NPUVMRuntimeApi(std::string_view libName = "openvino_intel_npu_mlir_runtime");NPUVMRuntimeApi(const NPUVMRuntimeApi& other) = delete;NPUVMRuntimeApi(NPUVMRuntimeApi&& other) = delete;void operator=(const NPUVMRuntimeApi&) = delete;@@ -46,7 +46,8 @@ public:static void initialize(std::string_view libName);// Inspects the blob header to select the appropriate runtime library and calls initialize().- // Selects "npu_interpreter_runtime" for NPUByte blobs, "npu_mlir_runtime" otherwise.+ // Selects "openvino_intel_npu_vm_runtime" for NPUByte blobs, "openvino_intel_npu_mlir_runtime" otherwise.+ // Falls back to legacy runtime library names if the new names are not available.static void initializeFromBlob(const void* data, size_t size);static const std::shared_ptr<NPUVMRuntimeApi>& getInstance();diff --git a/src/plugins/intel_npu/src/utils/src/vm/npu_vm_runtime_api.cpp b/src/plugins/intel_npu/src/utils/src/vm/npu_vm_runtime_api.cppindex 222f995c399..b0c1382cebc 100644--- a/src/plugins/intel_npu/src/utils/src/vm/npu_vm_runtime_api.cpp+++ b/src/plugins/intel_npu/src/utils/src/vm/npu_vm_runtime_api.cpp@@ -12,17 +12,37 @@namespace intel_npu {namespace {-std::string g_libName{"npu_mlir_runtime"};+constexpr std::string_view NEW_MLIR_RUNTIME_NAME = "openvino_intel_npu_mlir_runtime";+constexpr std::string_view OLD_MLIR_RUNTIME_NAME = "npu_mlir_runtime";+constexpr std::string_view NEW_VM_RUNTIME_NAME = "openvino_intel_npu_vm_runtime";+constexpr std::string_view OLD_VM_RUNTIME_NAME = "npu_interpreter_runtime";++std::string g_libName{NEW_MLIR_RUNTIME_NAME};bool g_instanceCreated{false};} // namespaceNPUVMRuntimeApi::NPUVMRuntimeApi(std::string_view libName) {- const std::string baseName = libName.empty() ? "npu_mlir_runtime" : std::string(libName);+ const std::string_view baseName = libName.empty() ? NEW_MLIR_RUNTIME_NAME : libName;try {- auto libPath = ov::util::make_plugin_library_name(ov::util::get_ov_lib_path(), baseName + OV_BUILD_POSTFIX);+ auto libPath =+ ov::util::make_plugin_library_name(ov::util::get_ov_lib_path(), std::string(baseName) + OV_BUILD_POSTFIX);this->lib = ov::util::load_shared_object(libPath);} catch (const std::runtime_error& error) {- OPENVINO_THROW(error.what());+ // Temporary compatibility for packages built before the runtime library rename.+ const std::string_view fallbackName = baseName == NEW_MLIR_RUNTIME_NAME ? OLD_MLIR_RUNTIME_NAME+ : baseName == NEW_VM_RUNTIME_NAME ? OLD_VM_RUNTIME_NAME+ : std::string_view{};+ if (fallbackName.empty()) {+ OPENVINO_THROW(error.what());+ }++ try {+ auto fallbackLibPath = ov::util::make_plugin_library_name(ov::util::get_ov_lib_path(),+ std::string(fallbackName) + OV_BUILD_POSTFIX);+ this->lib = ov::util::load_shared_object(fallbackLibPath);+ } catch (const std::runtime_error& fallbackError) {+ OPENVINO_THROW(error.what(), "; fallback failed: ", fallbackError.what());+ }}try {@@ -51,12 +71,12 @@ void NPUVMRuntimeApi::initializeFromBlob(const void* data, size_t size) {const size_t headerSize = std::min(size, size_t{20});const std::string_view header(static_cast<const char*>(data), headerSize);const std::string_view libName =- (header.find("NPUByte\x00") != std::string_view::npos) ? "npu_interpreter_runtime" : "npu_mlir_runtime";+ (header.find("NPUByte\x00") != std::string_view::npos) ? NEW_VM_RUNTIME_NAME : NEW_MLIR_RUNTIME_NAME;initialize(libName);}void NPUVMRuntimeApi::initialize(std::string_view libName) {- const std::string resolvedName = libName.empty() ? "npu_mlir_runtime" : std::string(libName);+ const std::string resolvedName{libName.empty() ? NEW_MLIR_RUNTIME_NAME : libName};if (g_instanceCreated) {if (g_libName != resolvedName) {OPENVINO_THROW("NPUVMRuntimeApi is already initialized with '",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 1edd68bb34c..5bfe26d06c5 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@@ -12,12 +12,23 @@const std::vector<std::string> devices = {"NPU.4000", "NPU.5010"};const std::vector<ov::AnyMap> configs = {- {{"NPU_COMPILER_TYPE", "PLUGIN"},- {"NPU_COMPILATION_MODE", "HostCompile"},- {"NPU_CREATE_EXECUTOR", "0"},- }};+ {+ {"NPU_COMPILER_TYPE", "PLUGIN"},+ {"NPU_COMPILATION_MODE", "HostCompile_Interpreter"},+ {"NPU_CREATE_EXECUTOR", "0"},+ },+ {+ {"NPU_COMPILER_TYPE", "PLUGIN"},+ {"NPU_COMPILATION_MODE", "HostCompile_Interpreter"},+ },+};++// Ensure the added test model's input and output shapes are identical and accept concrete NHWC shapes for reuse shape in tests.+const std::vector<std::string> modelNames = {"CustomNet", "MaxPool"};INSTANTIATE_TEST_SUITE_P(smoke_BehaviorTests,InferWithHostCompileTests,- ::testing::Combine(::testing::ValuesIn(devices), ::testing::ValuesIn(configs)),+ ::testing::Combine(::testing::ValuesIn(devices),+ ::testing::ValuesIn(configs),+ ::testing::ValuesIn(modelNames)),ov::test::utils::appendPlatformTypeTestName<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 d326fc26f99..4e286b6c103 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@@ -4,10 +4,15 @@#pragma once+#include <algorithm>+#include <cstring>#include <common_test_utils/ov_tensor_utils.hpp>+#include <functional>#include <iostream>#include <sstream>#include <string>+#include <string_view>+#include <tuple>#include <vector>#include "openvino/openvino.hpp"@@ -38,6 +43,92 @@ 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");+ // 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;+}++inline std::shared_ptr<ov::Model> createCustomNetModel() {+ auto input = std::make_shared<ov::op::v0::Parameter>(ov::element::f16,+ ov::PartialShape{1, 16, ov::Dimension(1, 1080), ov::Dimension(10, 1920)});+ input->set_friendly_name("Parameter_59");++ auto make_conv_add = [](const ov::Output<ov::Node>& data,+ const std::string& convName,+ const std::string& addName,+ float weightValue,+ float biasValue) -> ov::Output<ov::Node> {+ const std::vector<float> weightValues(16 * 16, weightValue);+ const std::vector<float> biasValues(16, biasValue);++ auto weights = ov::op::v0::Constant::create(ov::element::f16, ov::Shape{16, 16, 1, 1}, weightValues);+ auto conv = std::make_shared<ov::op::v1::Convolution>(data,+ weights,+ ov::Strides{1, 1},+ ov::CoordinateDiff{0, 0},+ ov::CoordinateDiff{0, 0},+ ov::Strides{1, 1},+ ov::op::PadType::EXPLICIT);+ conv->set_friendly_name(convName);++ auto bias = ov::op::v0::Constant::create(ov::element::f16, ov::Shape{1, 16, 1, 1}, biasValues);+ auto add = std::make_shared<ov::op::v1::Add>(conv, bias);+ add->set_friendly_name(addName);+ return add;+ };++ auto x = make_conv_add(input, "Convolution_61", "Add_63", 0.01f, 0.001f);+ x = make_conv_add(x, "Convolution_65", "Add_67", 0.011f, 0.001f);++ auto relu68 = std::make_shared<ov::op::v0::Relu>(x);+ relu68->set_friendly_name("Relu_68");+ x = relu68;++ x = make_conv_add(x, "Convolution_70", "Add_72", 0.012f, 0.001f);+ auto relu73 = std::make_shared<ov::op::v0::Relu>(x);+ relu73->set_friendly_name("Relu_73");+ x = relu73;++ x = make_conv_add(x, "Convolution_75", "Add_77", 0.013f, 0.001f);+ auto relu78 = std::make_shared<ov::op::v0::Relu>(x);+ relu78->set_friendly_name("Relu_78");+ x = relu78;++ x = make_conv_add(x, "Convolution_82", "Add_84", 0.014f, 0.001f);+ auto relu85 = std::make_shared<ov::op::v0::Relu>(x);+ relu85->set_friendly_name("Relu_85");+ x = relu85;++ x = make_conv_add(x, "Convolution_87", "Add_89", 0.015f, 0.001f);+ auto relu90 = std::make_shared<ov::op::v0::Relu>(x);+ relu90->set_friendly_name("Relu_90");+ x = relu90;++ x = make_conv_add(x, "Convolution_92", "Add_94", 0.016f, 0.001f);+ auto relu95 = std::make_shared<ov::op::v0::Relu>(x);+ relu95->set_friendly_name("Relu_95");+ x = relu95;++ auto multiplyScale = ov::op::v0::Constant::create(ov::element::f16, ov::Shape{1, 16, 1, 1}, {0.5f});+ auto multiply97 = std::make_shared<ov::op::v1::Multiply>(x, multiplyScale);+ multiply97->set_friendly_name("Multiply_97");++ auto add98 = std::make_shared<ov::op::v1::Add>(multiply97, multiply97);+ add98->set_friendly_name("Add_98");++ x = make_conv_add(add98, "Convolution_100", "Add_102", 0.017f, 0.001f);++ auto result = std::make_shared<ov::op::v0::Result>(x);+ result->set_friendly_name("Result_104");++ auto model = std::make_shared<ov::Model>(ov::ResultVector{result}, ov::ParameterVector{input}, "CustomNet");// making input and output to be NHWCauto preProc = ov::preprocess::PrePostProcessor(model);@@ -52,7 +143,8 @@ inline std::shared_ptr<ov::Model> createMaxPoolModel() {}using InferWithHostCompileParams = std::tuple<std::string, // Device name- ov::AnyMap // Config+ ov::AnyMap, // Config+ std::string // Model name>;// These tests are required by the NPU plugin to verify the support of dynamic shape during@@ -97,7 +189,8 @@ public:static std::string getTestCaseName(testing::TestParamInfo<InferWithHostCompileParams> obj) {std::string target_device;ov::AnyMap configuration;- std::tie(target_device, configuration) = obj.param;+ std::string modelName;+ std::tie(target_device, configuration, modelName) = obj.param;std::replace(target_device.begin(), target_device.end(), ':', '.');std::ostringstream result;result << "targetDevice=" << target_device << "_";@@ -108,6 +201,7 @@ public:result << "_";}}+ result << "model=" << modelName;return result.str();}@@ -115,7 +209,7 @@ public:// Skip test according to plugin specific disabledTestPatterns() (if any)SKIP_IF_CURRENT_TEST_IS_DISABLED()- std::tie(target_device, configuration) = this->GetParam();+ std::tie(target_device, configuration, selectedModelName) = this->GetParam();std::vector<std::string> deviceNames =core->get_property("NPU", ov::available_devices.name()).as<std::vector<std::string>>();@@ -151,11 +245,14 @@ public:static bool logContains(const ScopedLogCapture& logCapture, const std::string& expectedEntry);+ static std::shared_ptr<ov::Model> createModelByName(const std::string& modelName);+RuntimeCompareSetupResult prepareRuntimeCompareContext(const std::shared_ptr<ov::Model>& model);protected:std::shared_ptr<ov::Core> core = utils::PluginCache::get().core();ov::AnyMap configuration;+ std::string selectedModelName;bool isTargetDevice = false;ov::log::Level originalLogLevel = ov::log::Level::ERR;};@@ -217,6 +314,17 @@ bool InferWithHostCompileTests::logContains(const ScopedLogCapture& logCapture,return logCapture.str().find(expectedEntry) != std::string::npos;}+std::shared_ptr<ov::Model> InferWithHostCompileTests::createModelByName(const std::string& modelName) {+ if (modelName == "CustomNet") {+ return createCustomNetModel();+ }+ if (modelName == "MaxPool") {+ return createMaxPoolModel();+ }++ OPENVINO_THROW("Unknown model name for InferWithHostCompileTests: ", modelName);+}+InferWithHostCompileTests::RuntimeCompareSetupResult InferWithHostCompileTests::prepareRuntimeCompareContext(const std::shared_ptr<ov::Model>& model) {RuntimeCompareSetupResult result;@@ -241,19 +349,18 @@ InferWithHostCompileTests::RuntimeCompareSetupResult InferWithHostCompileTests::try {result.context.reqDynamic = result.context.compiledModel.create_infer_request();} catch (const ov::Exception& e) {- if (std::string(e.what()).find("Cannot load library") == std::string::npos) {- result.status = RuntimeCompareStatus::fail;- result.message =- std::string("Expected exception message to contain 'Cannot load library', but got: ") + e.what();- return result;- }-- result.status = RuntimeCompareStatus::skip;- result.message = "Cannot load library, skip test.";+ result.status = RuntimeCompareStatus::fail;+ result.message = std::string("Failed to create dynamic infer request: ") + e.what();return result;}- result.context.reqReference = result.context.referenceCompiledModel.create_infer_request();+ try {+ result.context.reqReference = result.context.referenceCompiledModel.create_infer_request();+ } catch (const ov::Exception& e) {+ result.status = RuntimeCompareStatus::fail;+ result.message = std::string("Failed to create reference infer request: ") + e.what();+ return result;+ }return result;}@@ -263,27 +370,19 @@ TEST_P(InferWithHostCompileTests, CompileAndImportAndInfer) {if (!isTargetDevice) {GTEST_SKIP() << "Skip test for current device";}- auto model = createMaxPoolModel();+ auto model = createModelByName(selectedModelName);ov::CompiledModel compiledModel;- // Compilation shall pass since load of npu_mlir_runtime is deffered with NPU_CREATE_EXECUTOR=0+OV_ASSERT_NO_THROW(compiledModel = core->compile_model(model, target_device, configuration));std::stringstream modelStream;OV_ASSERT_NO_THROW(compiledModel.export_model(modelStream));ov::InferRequest reqDynamic;- try {- ov::CompiledModel importedModel = core->import_model(modelStream, target_device);- reqDynamic = importedModel.create_infer_request();- } catch (const ov::Exception& e) {- if (std::string(e.what()).find("Cannot load library") == std::string::npos) {- FAIL() << "Expected exception message to contain 'Cannot load library', but got: " << e.what();- } else {- GTEST_SKIP() << "Cannot load library, skip test.";- }- }-+ ov::CompiledModel importedModel;+ OV_ASSERT_NO_THROW(importedModel = core->import_model(modelStream, target_device));+ OV_ASSERT_NO_THROW(reqDynamic = importedModel.create_infer_request());OV_ASSERT_NO_THROW(reqDynamic.infer());}@@ -296,7 +395,7 @@ TEST_P(InferWithHostCompileTests, CompileAndInferWithDecreasedSize) {GTEST_SKIP() << "Skip test for current device";}- auto model = createMaxPoolModel();+ auto model = createModelByName(selectedModelName);ScopedLogCapture logCapture;core->set_property("NPU", ov::log::level(ov::log::Level::DEBUG));@@ -366,7 +465,7 @@ TEST_P(InferWithHostCompileTests, CompileAndInferWithIncreasedSize) {GTEST_SKIP() << "Skip test for current device";}- auto model = createMaxPoolModel();+ auto model = createModelByName(selectedModelName);ScopedLogCapture logCapture;core->set_property("NPU", ov::log::level(ov::log::Level::DEBUG));@@ -436,7 +535,7 @@ TEST_P(InferWithHostCompileTests, CompileAndInferWithZeroTensor) {GTEST_SKIP() << "Skip test for current device";}- auto model = createMaxPoolModel();+ auto model = createModelByName(selectedModelName);ScopedLogCapture logCapture;core->set_property("NPU", ov::log::level(ov::log::Level::DEBUG));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 c81cf10cdbe..0cc1c40ba22 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@@ -938,12 +938,13 @@ Example:<!-- E#218923 --><skip_config>- <message>The tests crash when compiling model on NPU5010</message>+ <message>The tests crash when compiling MaxPool model on NPU4000 and NPU5010</message><enable_rules>+ <device>4000</device><device>5010</device></enable_rules><filters>- <filter>.*InferWithHostCompileTests.*</filter>+ <filter>.*InferWithHostCompileTests.*model=MaxPool.*</filter></filters></skip_config>