Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

[NPU] Remove support for exclusive_async_requests property from NPU (#36035)

Bogdan Pereanu8da2cf44ee88
diff --git a/src/plugins/intel_npu/README.md b/src/plugins/intel_npu/README.md
index 5d4fd596204..2306f913313 100644
--- a/src/plugins/intel_npu/README.md
+++ b/src/plugins/intel_npu/README.md
@@ -209,7 +209,6 @@ The following properties are supported (may differ based on current system confi
| `ov::device::uuid`/</br> | RO | Returns the Universal Unique ID of the NPU device. | `N/A`| `N/A` |
| `ov::device::architecture`/</br>`DEVICE_ARCHITECTURE` | RO | Returns the platform information. | `N/A`| `N/A` |
| `ov::device::full_name`/</br>`FULL_DEVICE_NAME` | RO | Returns the full name of the NPU device. | `N/A`| `N/A` |
-| `ov::internal::exclusive_async_requests`/</br>`EXCLUSIVE_ASYNC_REQUESTS` | RW | Allows to use exclusive task executor for asynchronous infer requests. | `YES`/ `NO`| `NO` |
| `ov::device::type`/</br>`DEVICE_TYPE` | RO | Returns the type of device, discrete or integrated. | `DISCRETE` /</br>`INTEGRATED` | `N/A` |
| `ov::device::gops`/</br>`DEVICE_GOPS` | RO | Returns the Giga OPS per second count (GFLOPS or GIOPS) for a set of precisions supported by specified device. | `N/A`| `N/A` |
| `ov::device::pci_info`/</br>`DEVICE_PCI_INFO` | RO | Returns the PCI bus information of device. See PCIInfo struct definition for details | `N/A`| `N/A` |
diff --git a/src/plugins/intel_npu/src/al/include/intel_npu/config/options.hpp b/src/plugins/intel_npu/src/al/include/intel_npu/config/options.hpp
index 9f00b2cdb1f..0e726827bef 100644
--- a/src/plugins/intel_npu/src/al/include/intel_npu/config/options.hpp
+++ b/src/plugins/intel_npu/src/al/include/intel_npu/config/options.hpp
@@ -467,32 +467,6 @@ struct BATCH_MODE final : OptionBase<BATCH_MODE, ov::intel_npu::BatchMode> {
}
};
-struct EXCLUSIVE_ASYNC_REQUESTS final : OptionBase<EXCLUSIVE_ASYNC_REQUESTS, bool> {
- static std::string_view key() {
- return ov::internal::exclusive_async_requests.name();
- }
-
- static bool defaultValue() {
- return false;
- }
-
- static bool isPublic() {
- return false;
- }
-
- static ov::PropertyMutability mutability() {
- return ov::PropertyMutability::RW;
- }
-
- static constexpr std::string_view getTypeName() {
- return "bool";
- }
-
- static OptionMode mode() {
- return OptionMode::RunTime;
- }
-};
-
struct PROFILING_TYPE final : OptionBase<PROFILING_TYPE, ov::intel_npu::ProfilingType> {
static std::string_view key() {
return ov::intel_npu::profiling_type.name();
diff --git a/src/plugins/intel_npu/src/plugin/src/compiled_model.cpp b/src/plugins/intel_npu/src/plugin/src/compiled_model.cpp
index 430324358ca..717c57df8dd 100644
--- a/src/plugins/intel_npu/src/plugin/src/compiled_model.cpp
+++ b/src/plugins/intel_npu/src/plugin/src/compiled_model.cpp
@@ -277,9 +277,7 @@ void CompiledModel::release_memory() {
void CompiledModel::configure_stream_executors() {
std::shared_ptr<ov::threading::ITaskExecutor> task_executor;
- if (get_plugin()->get_property(ov::internal::exclusive_async_requests.name(), {}).as<bool>()) {
- task_executor = ov::threading::executor_manager()->get_executor("NPU");
- } else if (get_property(ov::hint::enable_cpu_pinning.name()).as<bool>()) {
+ if (get_property(ov::hint::enable_cpu_pinning.name()).as<bool>()) {
auto executor_config = ov::threading::IStreamsExecutor::Config{
/* name = */ "Intel NPU plugin executor",
/* streams = */ get_plugin()->get_property(ov::num_streams.name(), {}).as<ov::streams::Num>(),
diff --git a/src/plugins/intel_npu/src/plugin/src/plugin.cpp b/src/plugins/intel_npu/src/plugin/src/plugin.cpp
index 4c245cad106..badfd30229f 100644
--- a/src/plugins/intel_npu/src/plugin/src/plugin.cpp
+++ b/src/plugins/intel_npu/src/plugin/src/plugin.cpp
@@ -150,8 +150,7 @@ std::shared_ptr<ov::ICompiledModel> import_model_npuw(std::istream& stream,
ov::AnyMap& properties,
std::shared_ptr<const ov::IPlugin> pluginSO) {
if (const auto header = ov::npuw::orc::is_orc(stream);
- header.has_value() &&
- header->schema_uuid == ov::npuw::orc::schema_npuw::NPUW_ORC_PARTITIONED_SCHEMA) {
+ header.has_value() && header->schema_uuid == ov::npuw::orc::schema_npuw::NPUW_ORC_PARTITIONED_SCHEMA) {
return ov::npuw::CompiledModel::import_model(stream, pluginSO, properties);
}
@@ -234,7 +233,6 @@ void init_config(const IEngineBackend* backend, OptionsDesc& options, FilteredCo
REGISTER_OPTION(ENABLE_CPU_PINNING);
REGISTER_OPTION(INFERENCE_PRECISION_HINT);
REGISTER_OPTION(MODEL_PRIORITY);
- REGISTER_OPTION(EXCLUSIVE_ASYNC_REQUESTS);
REGISTER_OPTION(COMPILATION_MODE_PARAMS);
REGISTER_OPTION(DMA_ENGINES);
REGISTER_OPTION(TILES);
@@ -270,7 +268,6 @@ void init_config(const IEngineBackend* backend, OptionsDesc& options, FilteredCo
REGISTER_OPTION(RUNTIME_REQUIREMENTS);
REGISTER_OPTION(COMPATIBILITY_CHECK);
-
if (backend) {
// Options registered only if drivers is present and supports the corresponding extension
REGISTER_OPTION(MAX_TILES);
@@ -373,14 +370,16 @@ void Plugin::set_property(const ov::AnyMap& properties) {
_propertiesManager->setProperty(properties);
}
-
-ov::CompatibilityCheck Plugin::validate_compatibility_descriptor(ov::intel_npu::CompilerType compilerType, const ov::AnyMap& arguments) const {
+ov::CompatibilityCheck Plugin::validate_compatibility_descriptor(ov::intel_npu::CompilerType compilerType,
+ const ov::AnyMap& arguments) const {
if (arguments.empty() || arguments.find(ov::runtime_requirements.name()) == arguments.end()) {
return ov::CompatibilityCheck::NOT_APPLICABLE;
}
const auto& runtimeRequirements = arguments.at(ov::runtime_requirements.name()).as<const std::string&>();
- _logger.debug("Received runtime_requirements: %s length: %zu", runtimeRequirements.c_str(), runtimeRequirements.length());
+ _logger.debug("Received runtime_requirements: %s length: %zu",
+ runtimeRequirements.c_str(),
+ runtimeRequirements.length());
// NPU Plugin's runtime requirements are captured in its metadata.
// For now plugin's requirements are met if metadata can be retrieved from the tensor
@@ -392,7 +391,8 @@ ov::CompatibilityCheck Plugin::validate_compatibility_descriptor(ov::intel_npu::
} catch (const std::exception& ex) {
// Unsupported version, could not read the metadata or an unknown error has occured. Report that the
// requirements are not met.
- _logger.debug("Failed to read metadata from the runtime requirements. The requirements are not met. %s", ex.what());
+ _logger.debug("Failed to read metadata from the runtime requirements. The requirements are not met. %s",
+ ex.what());
return ov::CompatibilityCheck::UNSUPPORTED;
}
@@ -417,7 +417,8 @@ ov::CompatibilityCheck Plugin::validate_compatibility_descriptor(ov::intel_npu::
return ov::CompatibilityCheck::UNSUPPORTED;
}
} catch (const std::exception&) {
- _logger.error("Failed to create the recommended compiler type for the compatibility check %d. The requirements are not met.",
+ _logger.error("Failed to create the recommended compiler type for the compatibility check %d. The requirements "
+ "are not met.",
static_cast<int>(compilerType));
return ov::CompatibilityCheck::NOT_APPLICABLE;
}
diff --git a/src/plugins/intel_npu/src/plugin/src/properties.cpp b/src/plugins/intel_npu/src/plugin/src/properties.cpp
index 829266f8ab5..380809535f3 100644
--- a/src/plugins/intel_npu/src/plugin/src/properties.cpp
+++ b/src/plugins/intel_npu/src/plugin/src/properties.cpp
@@ -524,7 +524,6 @@ void Properties::registerPluginProperties() {
TRY_REGISTER_SIMPLE_PROPERTY(ov::device::id, DEVICE_ID);
TRY_REGISTER_SIMPLE_PROPERTY(ov::num_streams, NUM_STREAMS);
TRY_REGISTER_SIMPLE_PROPERTY(ov::weights_path, WEIGHTS_PATH);
- TRY_REGISTER_SIMPLE_PROPERTY(ov::internal::exclusive_async_requests, EXCLUSIVE_ASYNC_REQUESTS);
TRY_REGISTER_SIMPLE_PROPERTY(ov::intel_npu::compilation_mode_params, COMPILATION_MODE_PARAMS);
TRY_REGISTER_SIMPLE_PROPERTY(ov::intel_npu::dma_engines, DMA_ENGINES);
TRY_REGISTER_SIMPLE_PROPERTY(ov::intel_npu::tiles, TILES);
diff --git a/src/plugins/intel_npu/tests/functional/behavior/ov_plugin/internal_properties_tests.cpp b/src/plugins/intel_npu/tests/functional/behavior/ov_plugin/internal_properties_tests.cpp
index aa70387e764..639c9c2d03f 100644
--- a/src/plugins/intel_npu/tests/functional/behavior/ov_plugin/internal_properties_tests.cpp
+++ b/src/plugins/intel_npu/tests/functional/behavior/ov_plugin/internal_properties_tests.cpp
@@ -187,7 +187,6 @@ TEST_P(OVCheckSetSupportedRWMetricsPropsTestsNPU, ChangeCorrectProperties) {
}
const std::vector<ov::AnyMap> compat_CorrectPluginMutableProperties = {
- {{ov::internal::exclusive_async_requests.name(), true}},
{{ov::intel_npu::dma_engines.name(), 1}},
{{ov::intel_npu::compilation_mode.name(), "DefaultHW"}},
{{ov::intel_npu::profiling_type.name(), ov::intel_npu::ProfilingType::INFER}}};
diff --git a/src/plugins/intel_npu/tests/functional/internal/plugin/test_properties.hpp b/src/plugins/intel_npu/tests/functional/internal/plugin/test_properties.hpp
index dcfa13adb32..08d4fd4f83e 100644
--- a/src/plugins/intel_npu/tests/functional/internal/plugin/test_properties.hpp
+++ b/src/plugins/intel_npu/tests/functional/internal/plugin/test_properties.hpp
@@ -106,7 +106,6 @@ public:
REGISTER_OPTION(ENABLE_CPU_PINNING);
REGISTER_OPTION(INFERENCE_PRECISION_HINT);
REGISTER_OPTION(MODEL_PRIORITY);
- REGISTER_OPTION(EXCLUSIVE_ASYNC_REQUESTS);
REGISTER_OPTION(COMPILATION_MODE_PARAMS);
REGISTER_OPTION(DMA_ENGINES);
REGISTER_OPTION(TILES);
diff --git a/src/plugins/intel_npu/tests/functional/shared_tests_instances/behavior/ov_infer_request/properties_tests.cpp b/src/plugins/intel_npu/tests/functional/shared_tests_instances/behavior/ov_infer_request/properties_tests.cpp
index ccc62fb40b3..5f3d521dabf 100644
--- a/src/plugins/intel_npu/tests/functional/shared_tests_instances/behavior/ov_infer_request/properties_tests.cpp
+++ b/src/plugins/intel_npu/tests/functional/shared_tests_instances/behavior/ov_infer_request/properties_tests.cpp
@@ -13,7 +13,7 @@ namespace {
INSTANTIATE_TEST_SUITE_P(compatibility_smoke_BehaviorTests,
InferRequestPropertiesTest,
- ::testing::Combine(::testing::Values(2u),
+ ::testing::Combine(::testing::Values(0u),
::testing::Values(ov::test::utils::DEVICE_NPU),
::testing::ValuesIn(std::vector<ov::AnyMap>{{}})),
ov::test::utils::appendPlatformTypeTestName<InferRequestPropertiesTest>);
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.xml
index 29239362f0c..5d6038e6dd8 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
@@ -400,17 +400,6 @@ Example:
</filters>
</skip_config>
- <!-- E#85493 -->
- <skip_config>
- <message>Runs only on NPU3720 with Level Zero enabled #85493</message>
- <enable_rules>
- <device>!3720</device>
- </enable_rules>
- <filters>
- <filter>.*InferRequestRunTests.MultipleExecutorStreamsTestsSyncInfers.*</filter>
- </filters>
- </skip_config>
-
<!-- E###### -->
<skip_config>
<message>Other devices than NPU doesn't allow to set NPU properties with OV1.0 and CACHE_DIR + PLUGIN is not supported</message>
@@ -968,4 +957,12 @@ Example:
</filters>
</skip_config>
+ <skip_config>
+ <message>Exclusive Async Request is not supported by NPU</message>
+ <filters>
+ <filter>.*InferRequestPropertiesTest.canSetExclusiveAsyncRequests.*</filter>
+ <filter>.*InferRequestPropertiesTest.ReusableCPUStreamsExecutor.*</filter>
+ </filters>
+ </skip_config>
+
</skip_configs>
diff --git a/src/tests/functional/base_func_tests/include/behavior/ov_infer_request/properties_tests.hpp b/src/tests/functional/base_func_tests/include/behavior/ov_infer_request/properties_tests.hpp
index e2f04f354b4..f251da68a80 100644
--- a/src/tests/functional/base_func_tests/include/behavior/ov_infer_request/properties_tests.hpp
+++ b/src/tests/functional/base_func_tests/include/behavior/ov_infer_request/properties_tests.hpp
@@ -108,7 +108,7 @@ TEST_P(InferRequestPropertiesTest, ReusableCPUStreamsExecutor) {
execNet = core->compile_model(function, target_device, config);
auto req = execNet.create_infer_request();
if (target_device == ov::test::utils::DEVICE_NPU) {
- ASSERT_EQ(1u, ov::threading::executor_manager()->get_executors_number());
+ ASSERT_EQ(0u, ov::threading::executor_manager()->get_executors_number());
ASSERT_EQ(0u, ov::threading::executor_manager()->get_idle_cpu_streams_executors_number());
} else if ((target_device == ov::test::utils::DEVICE_AUTO) ||
(target_device == ov::test::utils::DEVICE_MULTI)) {