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] Support for CID runtime requirements (#36273)
Alexandru Enacheca498d09be7a
diff --git a/src/plugins/intel_npu/docs/npu-properties-howto.md b/src/plugins/intel_npu/docs/npu-properties-howto.mdindex 4f990ca4f01..a8075b2f327 100644--- a/src/plugins/intel_npu/docs/npu-properties-howto.md+++ b/src/plugins/intel_npu/docs/npu-properties-howto.md@@ -1,4 +1,4 @@-# NPU Properties+# NPU PropertiesWhat is a property from NPU Plugin's POV and Step-by-step guide on how to add onePractical manual for NPU plugin propertiesdiff --git a/src/plugins/intel_npu/src/common/include/intel_npu/common/igraph.hpp b/src/plugins/intel_npu/src/common/include/intel_npu/common/igraph.hppindex 0714ca5bce1..d4c87a38a5e 100644--- a/src/plugins/intel_npu/src/common/include/intel_npu/common/igraph.hpp+++ b/src/plugins/intel_npu/src/common/include/intel_npu/common/igraph.hpp@@ -75,6 +75,17 @@ public:virtual std::optional<bool> is_profiling_blob() const = 0;+ /**+ * @brief Returns the compatibility descriptor of this graph, if any.+ * @details The descriptor is determined when the graph is created (imported from blob metadata,+ * returned by the VCL/plugin compiler, or fetched from the driver on the+ * compiler-in-driver path when L0 API version >= 1.16) and is immutable thereafter.+ * The descriptor format is defined by the compiler and is opaque to the plugin.+ * @return A view of the descriptor string if available, or std::nullopt if:+ * - The graph was compiled without generating a descriptor+ * - The driver does not support zeDeviceGetRuntimeRequirements (L0 < 1.16)+ * - This is a WeightlessGraph (not supported)+ */virtual std::optional<std::string_view> get_compatibility_descriptor() const;protected:diff --git a/src/plugins/intel_npu/src/compiler_adapter/include/driver_compiler_adapter.hpp b/src/plugins/intel_npu/src/compiler_adapter/include/driver_compiler_adapter.hppindex 6b6c064ba4d..a4d7b473d64 100644--- a/src/plugins/intel_npu/src/compiler_adapter/include/driver_compiler_adapter.hpp+++ b/src/plugins/intel_npu/src/compiler_adapter/include/driver_compiler_adapter.hpp@@ -6,6 +6,9 @@#pragma once+#include <optional>+#include <string>+#include "intel_npu/common/icompiler_adapter.hpp"#include "intel_npu/config/config.hpp"#include "intel_npu/utils/logger/logger.hpp"@@ -38,6 +41,11 @@ private:const ze_graph_compiler_version_info_t& compilerVersion,const std::string& optionName) const;+ // Fetches the runtime requirements of a compiled graph from the+ // driver via zeDeviceGetRuntimeRequirements. Returns std::nullopt when the driver does not+ // implement the extension, the handle is null, or the query fails.+ std::optional<std::string> get_compatibility_descriptor(ze_graph_handle_t graphHandle) const;+std::shared_ptr<ZeroInitStructsHolder> _zeroInitStruct;std::shared_ptr<ZeGraphExtWrappers> _zeGraphExt;diff --git a/src/plugins/intel_npu/src/compiler_adapter/include/weightless_graph.hpp b/src/plugins/intel_npu/src/compiler_adapter/include/weightless_graph.hppindex 1b39c3927d0..3c2f7c7d6d9 100644--- a/src/plugins/intel_npu/src/compiler_adapter/include/weightless_graph.hpp+++ b/src/plugins/intel_npu/src/compiler_adapter/include/weightless_graph.hpp@@ -45,6 +45,8 @@ public:*/void initialize_impl(const FilteredConfig& config) override;+ std::optional<std::string_view> get_compatibility_descriptor() const override;+// TODO: public for multi-threaded executionstruct InputData {std::vector<std::shared_ptr<ov::ITensor>> tensors;diff --git a/src/plugins/intel_npu/src/compiler_adapter/include/ze_graph_ext_wrappers.hpp b/src/plugins/intel_npu/src/compiler_adapter/include/ze_graph_ext_wrappers.hppindex 1106107d345..78c50b9f24d 100644--- a/src/plugins/intel_npu/src/compiler_adapter/include/ze_graph_ext_wrappers.hpp+++ b/src/plugins/intel_npu/src/compiler_adapter/include/ze_graph_ext_wrappers.hpp@@ -90,6 +90,13 @@ public:void evict_memory(const GraphDescriptor& graphDescriptor) const;+ /**+ * @brief Fetches the compatibility descriptor of a compiled graph.+ * @return The descriptor string if the driver supports the feature and the graph carries one,+ * or `std::nullopt` otherwise.+ */+ std::optional<std::string> getCompatibilityDescriptor(ze_graph_handle_t graphHandle) const;+private:void getMetadata(ze_graph_handle_t graphHandle,uint32_t indexUsedByDriver,diff --git a/src/plugins/intel_npu/src/compiler_adapter/src/driver_compiler_adapter.cpp b/src/plugins/intel_npu/src/compiler_adapter/src/driver_compiler_adapter.cppindex b88be161b4c..294aafa5126 100644--- a/src/plugins/intel_npu/src/compiler_adapter/src/driver_compiler_adapter.cpp+++ b/src/plugins/intel_npu/src/compiler_adapter/src/driver_compiler_adapter.cpp@@ -5,7 +5,6 @@#include "driver_compiler_adapter.hpp"#include <functional>-#include <string_view>#include "graph.hpp"#include "intel_npu/common/filtered_config.hpp"@@ -98,7 +97,7 @@ std::shared_ptr<IGraph> DriverCompilerAdapter::compile(const std::shared_ptr<constd::move(networkMeta),/* blob = */ std::nullopt,updatedConfig,- /* compatibilityDescriptor = */ std::nullopt);+ get_compatibility_descriptor(graphDesc._handle));}std::shared_ptr<IGraph> DriverCompilerAdapter::compileWS(std::shared_ptr<ov::Model>&& model,@@ -316,4 +315,8 @@ bool DriverCompilerAdapter::isCompilerOptionSupported(const FilteredConfig& conf(compilerVersion.minor >= minorCompilerOptSupportValue));}+std::optional<std::string> DriverCompilerAdapter::get_compatibility_descriptor(ze_graph_handle_t graphHandle) const {+ return _zeGraphExt->getCompatibilityDescriptor(graphHandle);+}+} // namespace intel_npudiff --git a/src/plugins/intel_npu/src/compiler_adapter/src/weightless_graph.cpp b/src/plugins/intel_npu/src/compiler_adapter/src/weightless_graph.cppindex 1e46fc409b2..95420f30e27 100644--- a/src/plugins/intel_npu/src/compiler_adapter/src/weightless_graph.cpp+++ b/src/plugins/intel_npu/src/compiler_adapter/src/weightless_graph.cpp@@ -343,6 +343,11 @@ void WeightlessGraph::initialize_impl(const FilteredConfig& config) {set_weights_inputs();}+std::optional<std::string_view> WeightlessGraph::get_compatibility_descriptor() const {+ _logger.warning("Compatibility descriptor is not supported for WeightlessGraph");+ return std::nullopt;+}+WeightlessGraph::InputData WeightlessGraph::allocate_inputs(const size_t initIndex,std::unordered_map<size_t, std::shared_ptr<ov::op::v0::Constant>>& constants) {diff --git a/src/plugins/intel_npu/src/compiler_adapter/src/ze_graph_ext_wrappers.cpp b/src/plugins/intel_npu/src/compiler_adapter/src/ze_graph_ext_wrappers.cppindex 34048558709..283ef5a5cdd 100644--- a/src/plugins/intel_npu/src/compiler_adapter/src/ze_graph_ext_wrappers.cpp+++ b/src/plugins/intel_npu/src/compiler_adapter/src/ze_graph_ext_wrappers.cpp@@ -559,6 +559,42 @@ void ZeGraphExtWrappers::getMetadata(ze_graph_handle_t graphHandle,}}+std::optional<std::string> ZeGraphExtWrappers::getCompatibilityDescriptor(ze_graph_handle_t graphHandle) const {+ if (_zeroInitStruct->getZeDrvApiVersion() < ZE_MAKE_VERSION(1, 16)) {+ return std::nullopt;+ }++ ze_runtime_requirements_graph_desc_t requirementsDesc = {};+ requirementsDesc.stype = ZE_STRUCTURE_TYPE_RUNTIME_REQUIREMENTS_GRAPH_DESC;+ requirementsDesc.pNext = nullptr;+ requirementsDesc.requirementsSrc = graphHandle;++ size_t size = 0;+ ze_result_t result =+ zeDeviceGetRuntimeRequirements(_zeroInitStruct->getDevice(), &requirementsDesc, &size, nullptr);+ if (result != ZE_RESULT_SUCCESS) {+ _logger.warning("zeDeviceGetRuntimeRequirements (size query) returned error: 0x%x",+ static_cast<uint32_t>(result));+ return std::nullopt;+ }+ if (size == 0) {+ return std::nullopt;+ }++ // The driver writes a null-terminated string; size includes the terminator+ std::string descriptor(size, '\0');+ result = zeDeviceGetRuntimeRequirements(_zeroInitStruct->getDevice(), &requirementsDesc, &size, descriptor.data());+ if (result != ZE_RESULT_SUCCESS) {+ _logger.warning("zeDeviceGetRuntimeRequirements (data query) returned error: 0x%x",+ static_cast<uint32_t>(result));+ return std::nullopt;+ }++ _logger.debug("Fetched runtime requirements from driver: %s", descriptor.c_str());++ return descriptor;+}+NetworkMetadata ZeGraphExtWrappers::getNetworkMeta(GraphDescriptor& graphDescriptor) const {ze_graph_properties_t graphProperties = {};graphProperties.stype = ZE_STRUCTURE_TYPE_GRAPH_PROPERTIES;diff --git a/src/plugins/intel_npu/src/plugin/src/plugin_property_manager.cpp b/src/plugins/intel_npu/src/plugin/src/plugin_property_manager.cppindex ca93999cc76..af5bc1bd62c 100644--- a/src/plugins/intel_npu/src/plugin/src/plugin_property_manager.cpp+++ b/src/plugins/intel_npu/src/plugin/src/plugin_property_manager.cpp@@ -191,6 +191,10 @@ ov::CompatibilityCheck validateCompatibilityDescriptor(const ov::SoPtr<intel_npuconst auto& runtimeRequirements = arguments.at(ov::runtime_requirements.name()).as<const std::string&>();+ if (runtimeRequirements.empty()) {+ return ov::CompatibilityCheck::NOT_APPLICABLE;+ }+std::unique_ptr<MetadataBase> metadata = nullptr;try {metadata = read_as_text(runtimeRequirements);diff --git a/src/plugins/intel_npu/tests/functional/README.md b/src/plugins/intel_npu/tests/functional/README.mdindex 5cc05336074..5cc1805699a 100644--- a/src/plugins/intel_npu/tests/functional/README.md+++ b/src/plugins/intel_npu/tests/functional/README.md@@ -78,13 +78,21 @@ OpenVINO test instantiations using NPU Plugin's own arguments.## Test developing convention-Any test should be split into a `.hpp` and `.cpp` file, with the exception of the tests from `shared_tests_instances`, which don't need `.hpp` files. A test's `.hpp` file should be located in the same directory as its `.cpp` file.+### File naming-The `.hpp` file should have the entirety of its contents wrapped around the `ov::test::behavior` namespace.-The contents are:-- class declarations-- methods/functions definitions-- test definitions-- aliases+Test files do not need the `_test` suffix, their location is self explanatory. The only exception is when the test header shares the same name as a production header.-The `.cpp` file contains the test instantiations and the variables passed as arguments. The contents should be wrapped around an anonymous/unnamed namespace.+### File layout++Tests that use `INSTANTIATE_TEST_SUITE_P` (parameterised tests) are split across two files:++| File | Namespace | Contents |+|------|----------|-----------|+| `*.hpp` | `ov::test::behavior` | class declarations, method/function definitions, test definitions, aliases |+| `*.cpp` | anonymous namespace | `INSTANTIATE_TEST_SUITE_P` calls, and the arguments passed to them |++The `.hpp` file must be placed in the same directory as its `.cpp` file.++Tests that use only `TEST_F` or `TEST` (no instantiation step) live entirely in a single `.cpp` file, no paired `.hpp` is needed.++Tests from `shared_tests_instances` also do not need to use `.hpp` files.diff --git a/src/plugins/intel_npu/tests/functional/behavior/compiled_model/compatibility_string.hpp b/src/plugins/intel_npu/tests/functional/behavior/compiled_model/compatibility_string.hppindex cdd5d60cdd8..fd0fef8be2e 100644--- a/src/plugins/intel_npu/tests/functional/behavior/compiled_model/compatibility_string.hpp+++ b/src/plugins/intel_npu/tests/functional/behavior/compiled_model/compatibility_string.hpp@@ -20,9 +20,7 @@#include "openvino/pass/serialize.hpp"#include "shared_test_classes/base/ov_behavior_test_utils.hpp"-using namespace ov::test::behavior;--namespace {+namespace ov::test::behavior {// Tests specific for RUNTIME_REQUIREMENTS and COMPATIBILITY_CHECK propertiesclass ClassCompatibilityStringTestNPU : public OVCompiledModelPropertiesBase,@@ -100,6 +98,7 @@ TEST_P(ClassCompatibilityStringTestSuite, RuntimeRequirementsIsSupported) {// Forcing CIP as the current compiler typeauto model = ov::test::utils::make_conv_pool_relu();ov::CompiledModel compiledModel;+OV_ASSERT_NO_THROW(compiledModel = core.compile_model(model,deviceName,@@ -110,26 +109,68 @@ TEST_P(ClassCompatibilityStringTestSuite, RuntimeRequirementsIsSupported) {std::vector<ov::PropertyName> properties;// Test that RUNTIME_REQUIREMENTS is supported for a model compiled with CIPOV_ASSERT_NO_THROW(properties = compiledModel.get_property(ov::supported_properties));- {- auto it = find(properties.cbegin(), properties.cend(), ov::runtime_requirements);- ASSERT_TRUE(it != properties.cend());- ASSERT_FALSE(it->is_mutable());- }+ auto it = find(properties.cbegin(), properties.cend(), ov::runtime_requirements);+ ASSERT_TRUE(it != properties.cend());+ ASSERT_FALSE(it->is_mutable());OV_ASSERT_NO_THROW(auto requirements = compiledModel.get_property(ov::runtime_requirements));- OV_ASSERT_NO_THROW(- compiledModel =- core.compile_model(model, deviceName, ov::intel_npu::compiler_type(ov::intel_npu::CompilerType::DRIVER)));- // Test that RUNTIME_REQUIREMENTS is not supported for a model compiled with CID- // This check should be conditioned by the compiler/driver version once support is added in L0+ OV_ASSERT_NO_THROW(compiledModel = core.compile_model(+ model,+ deviceName,+ {ov::intel_npu::compiler_type(ov::intel_npu::CompilerType::DRIVER),+ ov::intel_npu::bypass_umd_caching(true)}));+ // Test that RUNTIME_REQUIREMENTS is supported for CID when the L0 graph extension version >= 1.16,+ // and unsupported for earlier driver versions. CIP always supports it.OV_ASSERT_NO_THROW(properties = compiledModel.get_property(ov::supported_properties));- {- auto it = find(properties.cbegin(), properties.cend(), ov::runtime_requirements);+ it = find(properties.cbegin(), properties.cend(), ov::runtime_requirements);+ const auto initStructs = ::intel_npu::ZeroInitStructsHolder::getInstance();+ const bool driverHandlesCompatibilityCheck =+ initStructs != nullptr && initStructs->getZeDrvApiVersion() >= ZE_MAKE_VERSION(1, 16);+ if (driverHandlesCompatibilityCheck) {+ ASSERT_TRUE(it != properties.cend());+ } else {ASSERT_TRUE(it == properties.cend());}- OV_EXPECT_THROW(auto requirements = compiledModel.get_property(ov::runtime_requirements),- ov::Exception,- testing::HasSubstr("Unsupported configuration key: RUNTIME_REQUIREMENTS"));+}++TEST_P(ClassCompatibilityStringTestSuite, RuntimeRequirementsValueIsReadableWhenSupported) {+ auto model = ov::test::utils::make_conv_pool_relu();+ ov::CompiledModel compiledModel;++ OV_ASSERT_NO_THROW(compiledModel = core.compile_model(+ model,+ deviceName,+ {ov::intel_npu::compiler_type(ov::intel_npu::CompilerType::PLUGIN),+ ov::intel_npu::platform(ov::intel_npu::Platform::standardize(+ ov::test::utils::getTestsPlatformFromEnvironmentOr(ov::test::utils::DEVICE_NPU)))}));++ std::vector<ov::PropertyName> properties;+ OV_ASSERT_NO_THROW(properties = compiledModel.get_property(ov::supported_properties));+ auto it = find(properties.cbegin(), properties.cend(), ov::runtime_requirements);+ ASSERT_TRUE(it != properties.cend());++ std::string requirements;+ OV_ASSERT_NO_THROW(requirements = compiledModel.get_property(ov::runtime_requirements));+ ASSERT_FALSE(requirements.empty());++ OV_ASSERT_NO_THROW(compiledModel = core.compile_model(+ model,+ deviceName,+ {ov::intel_npu::compiler_type(ov::intel_npu::CompilerType::DRIVER),+ ov::intel_npu::bypass_umd_caching(true)}));++ OV_ASSERT_NO_THROW(properties = compiledModel.get_property(ov::supported_properties));+ it = find(properties.cbegin(), properties.cend(), ov::runtime_requirements);+ const auto initStructs = ::intel_npu::ZeroInitStructsHolder::getInstance();+ const bool driverHandlesCompatibilityCheck =+ initStructs != nullptr && initStructs->getZeDrvApiVersion() >= ZE_MAKE_VERSION(1, 16);+ if (driverHandlesCompatibilityCheck) {+ OV_ASSERT_NO_THROW(auto requirements = compiledModel.get_property(ov::runtime_requirements));+ } else {+ OV_EXPECT_THROW(auto requirements = compiledModel.get_property(ov::runtime_requirements),+ ov::Exception,+ testing::HasSubstr("Unsupported configuration key: RUNTIME_REQUIREMENTS"));+ }}TEST_P(ClassCompatibilityStringTestSuite, RuntimeRequirementsIsNotSupportedForWS) {@@ -335,4 +376,14 @@ TEST_P(CompatibilityCheckFallbackTestSuite, CompatibilityCheckSupportedPropertie}}-} // namespace+TEST_P(CompatibilityCheckFallbackTestSuite, CompatibilityCheckAcceptsEmptyString) {+ // Empty descriptor means that there are no runtime requirements+ // No E2E test reaches this branch because compilation never produces an empty descriptor+ ov::CompatibilityCheck result = ov::CompatibilityCheck::SUPPORTED;+ OV_ASSERT_NO_THROW(result = core.get_property(deviceName,+ ov::compatibility_check,+ std::make_pair(ov::runtime_requirements.name(), "")));+ ASSERT_EQ(result, ov::CompatibilityCheck::NOT_APPLICABLE);+}++} // namespace ov::test::behaviordiff --git a/src/plugins/intel_npu/tests/functional/internal/backend/zero_device_tests.cpp b/src/plugins/intel_npu/tests/functional/internal/backend/zero_device_tests.cppnew file mode 100644index 00000000000..1cdfc1ea899--- /dev/null+++ b/src/plugins/intel_npu/tests/functional/internal/backend/zero_device_tests.cpp@@ -0,0 +1,17 @@+// Copyright (C) 2018-2026 Intel Corporation+// SPDX-License-Identifier: Apache-2.0+//++#include "zero_device_tests.hpp"++namespace {+using namespace ov::test::behavior;++const std::vector<ov::AnyMap> emptyConfigs = {{}};++INSTANTIATE_TEST_SUITE_P(compatibility_smoke_BehaviorTest,+ ZeroDeviceTest,+ ::testing::Combine(::testing::Values(ov::test::utils::DEVICE_NPU),+ ::testing::ValuesIn(emptyConfigs)),+ ZeroDeviceTest::getTestCaseName);+} // namespacediff --git a/src/plugins/intel_npu/tests/functional/internal/backend/zero_device_tests.hpp b/src/plugins/intel_npu/tests/functional/internal/backend/zero_device_tests.hppnew file mode 100644index 00000000000..801464ddad3--- /dev/null+++ b/src/plugins/intel_npu/tests/functional/internal/backend/zero_device_tests.hpp@@ -0,0 +1,78 @@+// Copyright (C) 2018-2026 Intel Corporation+// SPDX-License-Identifier: Apache-2.0+//++#pragma once++#include <gtest/gtest.h>++#include <algorithm>+#include <memory>+#include <sstream>+#include <string>+#include <tuple>++#include "common/npu_test_env_cfg.hpp"+#include "common_test_utils/test_assertions.hpp"+#include "functional_test_utils/skip_tests_config.hpp"+#include "intel_npu/utils/zero/zero_init.hpp"+#include "zero_device.hpp"++namespace ov::test::behavior {++using namespace ::intel_npu;++using ZeroDeviceTestParams = std::tuple<std::string, ov::AnyMap>;++class ZeroDeviceTest : public ::testing::TestWithParam<ZeroDeviceTestParams> {+public:+ static std::string getTestCaseName(const testing::TestParamInfo<ZeroDeviceTestParams>& obj) {+ std::string targetDevice;+ ov::AnyMap configuration;+ std::tie(targetDevice, configuration) = obj.param;+ std::replace(targetDevice.begin(), targetDevice.end(), ':', '_');++ std::ostringstream result;+ result << "targetDevice=" << targetDevice << "_";+ result << "targetPlatform=" << ov::test::utils::getTestsPlatformFromEnvironmentOr(targetDevice);+ if (!configuration.empty()) {+ for (auto& configItem : configuration) {+ result << "_configItem=" << configItem.first << "_";+ configItem.second.print(result);+ }+ }+ return result.str();+ }++protected:+ void SetUp() override {+ SKIP_IF_CURRENT_TEST_IS_DISABLED();++ std::tie(targetDevice, configuration) = this->GetParam();++ zeroInitStruct = ZeroInitStructsHolder::getInstance();+ ASSERT_NE(zeroInitStruct, nullptr);+ ASSERT_NE(zeroInitStruct->getDevice(), nullptr);++ device = std::make_unique<ZeroDevice>(zeroInitStruct);+ }++ std::string targetDevice;+ ov::AnyMap configuration;+ std::shared_ptr<ZeroInitStructsHolder> zeroInitStruct;+ std::unique_ptr<ZeroDevice> device;+};++// E2E tests fail earlier (at metadata parse), so this narrow unit test provides+// the only coverage for the L0 driver validation branch with invalid descriptors.+TEST_P(ZeroDeviceTest, ValidateRejectsInvalidString) {+ if (zeroInitStruct->getZeDrvApiVersion() < ZE_MAKE_VERSION(1, 16)) {+ ASSERT_ANY_THROW(device->validateCompatibilityDescriptor("not_a_valid_compat_string"));+ } else {+ bool isCompatible = true;+ OV_ASSERT_NO_THROW(isCompatible = device->validateCompatibilityDescriptor("not_a_valid_compat_string"));+ EXPECT_FALSE(isCompatible);+ }+}++} // namespace ov::test::behaviordiff --git a/src/plugins/intel_npu/tests/unit/npu/offline_compilation.cpp b/src/plugins/intel_npu/tests/unit/npu/offline_compilation.cppindex 740d9e8ffc1..f16550035b5 100644--- a/src/plugins/intel_npu/tests/unit/npu/offline_compilation.cpp+++ b/src/plugins/intel_npu/tests/unit/npu/offline_compilation.cpp@@ -74,6 +74,35 @@ TEST_P(OfflineCompilationUnitTests, ReadSupportedPropertiesMaxTilesNotPresent) {ov::intel_npu::max_tiles.name()) == supportedProperties.end());}+TEST_P(OfflineCompilationUnitTests, ReadSupportedPropertiesRuntimeRequirementsPresent) {+ std::shared_ptr<ov::Model> model = ov::test::utils::make_multi_single_conv();+ ov::CompiledModel compiledModel;+ OV_ASSERT_NO_THROW(compiledModel = core.compile_model(model, DEVICE_NPU, config));+ std::vector<ov::PropertyName> supportedProperties;+ OV_ASSERT_NO_THROW(supportedProperties = compiledModel.get_property(ov::supported_properties));+ ASSERT_TRUE(std::find(supportedProperties.begin(),+ supportedProperties.end(),+ ov::runtime_requirements.name()) != supportedProperties.end());+}++TEST_P(OfflineCompilationUnitTests, ReadRuntimeRequirementsOffline) {+ std::shared_ptr<ov::Model> model = ov::test::utils::make_multi_single_conv();+ ov::CompiledModel compiledModel;+ OV_ASSERT_NO_THROW(compiledModel = core.compile_model(model, DEVICE_NPU, config));+ std::string requirements;+ OV_ASSERT_NO_THROW(requirements = compiledModel.get_property(ov::runtime_requirements));+ ASSERT_FALSE(requirements.empty());+}++TEST_P(OfflineCompilationUnitTests, CompatibilityCheckNotSupportedOffline) {+ core.set_property(DEVICE_NPU, config);+ std::vector<ov::PropertyName> supportedProperties;+ OV_ASSERT_NO_THROW(supportedProperties = core.get_property(DEVICE_NPU, ov::supported_properties));+ ASSERT_TRUE(std::find(supportedProperties.begin(),+ supportedProperties.end(),+ ov::compatibility_check.name()) == supportedProperties.end());+}+INSTANTIATE_TEST_SUITE_P(OfflineCompilationPlatforms,OfflineCompilationUnitTests,