Skip to content

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

[`intel-npu`] [`Functional Shared Behavior Tests`] Activate skipped core threading tests (#30820)

Mircea-Aurelian Dance52f13075a6
diff --git a/src/plugins/intel_npu/tests/functional/behavior/compiled_model/blob_compatibility.cpp b/src/plugins/intel_npu/tests/functional/behavior/compiled_model/blob_compatibility.cpp
index 36c5f2aef9d..5cd1610ad5c 100644
--- a/src/plugins/intel_npu/tests/functional/behavior/compiled_model/blob_compatibility.cpp
+++ b/src/plugins/intel_npu/tests/functional/behavior/compiled_model/blob_compatibility.cpp
@@ -9,6 +9,8 @@
#include <map>
#include <string>
+#include "common/utils.hpp"
+
using namespace ov::test::behavior;
const auto all_models = []() -> std::vector<std::string> {
diff --git a/src/plugins/intel_npu/tests/functional/behavior/compiled_model/import_export.cpp b/src/plugins/intel_npu/tests/functional/behavior/compiled_model/import_export.cpp
index 41cebfb88b8..acd237167cf 100644
--- a/src/plugins/intel_npu/tests/functional/behavior/compiled_model/import_export.cpp
+++ b/src/plugins/intel_npu/tests/functional/behavior/compiled_model/import_export.cpp
@@ -9,7 +9,7 @@
#include <map>
#include <string>
-#include "common/npu_test_env_cfg.hpp"
+#include "common/utils.hpp"
using namespace ov::test::behavior;
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 a09f8df6eab..372313914b4 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
@@ -5,7 +5,7 @@
#include "overload/ov_plugin/internal_properties_tests.hpp"
-#include "common/npu_test_env_cfg.hpp"
+#include "common/utils.hpp"
#include "intel_npu/npu_private_properties.hpp"
namespace ov::test::behavior {
diff --git a/src/plugins/intel_npu/tests/functional/common/npu_test_env_cfg.hpp b/src/plugins/intel_npu/tests/functional/common/npu_test_env_cfg.hpp
index 17420f041f4..e55764779d6 100644
--- a/src/plugins/intel_npu/tests/functional/common/npu_test_env_cfg.hpp
+++ b/src/plugins/intel_npu/tests/functional/common/npu_test_env_cfg.hpp
@@ -10,7 +10,6 @@
#include <string>
#include "base/ov_behavior_test_utils.hpp"
-#include "common/utils.hpp"
#include "intel_npu/npu_private_properties.hpp"
using namespace ov::test::behavior;
@@ -56,17 +55,6 @@ std::string getDeviceNameTestCase(const std::string& str);
std::string getDeviceName();
std::string getDeviceNameID(const std::string& str);
-// Current version of gtest seems to fail when parsing template functions for getTestCaseName
-// To overcome this issue, programmer must make sure to wrap in paratheses this function when
-// it is given at INSTANTIATE_TEST_SUITE_P macros
-// e.g. INSTANTIATE_TEST_SUITE_P(TEST_SUITE_NAME, TEST_SUITE_CLASS, params,
-// (appendPlatformTypeTestName<TEST_SUITE_CLASS>))
-template <typename T>
-std::string appendPlatformTypeTestName(testing::TestParamInfo<typename T::ParamType> obj) {
- const std::string& test_name = GenericTestCaseNameClass::getTestCaseName<T>(obj);
- return test_name + "_targetPlatform=" + getTestsPlatformFromEnvironmentOr(ov::test::utils::DEVICE_NPU);
-}
-
} // namespace ov::test::utils
namespace InferRequestParamsAnyMapTestName {
diff --git a/src/plugins/intel_npu/tests/functional/common/utils.hpp b/src/plugins/intel_npu/tests/functional/common/utils.hpp
index 40ac987bd25..7fbb09339d9 100644
--- a/src/plugins/intel_npu/tests/functional/common/utils.hpp
+++ b/src/plugins/intel_npu/tests/functional/common/utils.hpp
@@ -6,8 +6,10 @@
#include <filesystem>
#include <openvino/runtime/core.hpp>
+#include <openvino/runtime/intel_npu/properties.hpp>
#include "common_test_utils/unicode_utils.hpp"
+#include "npu_test_env_cfg.hpp"
std::string getBackendName(const ov::Core& core);
@@ -80,3 +82,29 @@ constexpr bool
std::void_t<decltype(std::declval<T>().getTestCaseName(
std::declval<testing::TestParamInfo<typename T::ParamType>>()))>> =
true;
+
+namespace ov {
+
+namespace test {
+
+namespace utils {
+
+template <typename T>
+std::string appendPlatformTypeTestName(testing::TestParamInfo<typename T::ParamType> obj) {
+ const std::string& test_name = GenericTestCaseNameClass::getTestCaseName<T>(obj);
+ return test_name + "_targetPlatform=" + getTestsPlatformFromEnvironmentOr(ov::test::utils::DEVICE_NPU);
+}
+
+template <typename T>
+std::string appendDriverVersionTestName(testing::TestParamInfo<typename T::ParamType> obj) {
+ const auto& pluginCacheCore = ov::test::utils::PluginCache::get().core(ov::test::utils::DEVICE_NPU);
+ auto driverVersion =
+ pluginCacheCore->get_property(ov::test::utils::DEVICE_NPU, ov::intel_npu::driver_version.name());
+ return ov::test::utils::appendPlatformTypeTestName<T>(obj) + "_driverVersion=" + driverVersion.as<std::string>();
+}
+
+} // namespace utils
+
+} // namespace test
+
+} // namespace ov
diff --git a/src/plugins/intel_npu/tests/functional/shared_tests_instances/behavior/ov_plugin/core_threading_tests.cpp b/src/plugins/intel_npu/tests/functional/shared_tests_instances/behavior/ov_plugin/core_threading_tests.cpp
index 327cd582981..e07ec14659e 100644
--- a/src/plugins/intel_npu/tests/functional/shared_tests_instances/behavior/ov_plugin/core_threading_tests.cpp
+++ b/src/plugins/intel_npu/tests/functional/shared_tests_instances/behavior/ov_plugin/core_threading_tests.cpp
@@ -5,7 +5,6 @@
#include <utility>
#include "behavior/ov_plugin/core_threading.hpp"
-#include "common/npu_test_env_cfg.hpp"
#include "common/utils.hpp"
#include "intel_npu/npu_private_properties.hpp"
@@ -25,24 +24,26 @@ const Params params_cached[] = {std::tuple<Device, Config>{ov::test::utils::DEVI
} // namespace
-INSTANTIATE_TEST_SUITE_P(compatibility_smoke_BehaviorTests_CoreThreadingTest_NPU,
- CoreThreadingTest,
- testing::ValuesIn(params),
- (ov::test::utils::appendPlatformTypeTestName<CoreThreadingTest>));
+INSTANTIATE_TEST_SUITE_P(
+ compatibility_smoke_BehaviorTests_CoreThreadingTest_NPU,
+ CoreThreadingTest,
+ testing::ValuesIn(params),
+ ov::test::utils::appendDriverVersionTestName<CoreThreadingTest>); // need to get also driver version to skip
+ // failing tests with PV driver
INSTANTIATE_TEST_SUITE_P(smoke_BehaviorTests_CoreThreadingTest_NPU,
CoreThreadingTestsWithIter,
testing::Combine(testing::ValuesIn(params), testing::Values(15), testing::Values(50)),
- (ov::test::utils::appendPlatformTypeTestName<CoreThreadingTestsWithIter>));
+ ov::test::utils::appendPlatformTypeTestName<CoreThreadingTestsWithIter>);
INSTANTIATE_TEST_SUITE_P(smoke_BehaviorTests_CoreThreadingTest_NPU,
CoreThreadingTestsWithCacheEnabled,
testing::Combine(testing::ValuesIn(params_cached), testing::Values(10), testing::Values(30)),
- (ov::test::utils::appendPlatformTypeTestName<CoreThreadingTestsWithCacheEnabled>));
+ ov::test::utils::appendPlatformTypeTestName<CoreThreadingTestsWithCacheEnabled>);
INSTANTIATE_TEST_SUITE_P(smoke_BehaviorTests_CoreThreadingTest_UmdCacheDisabled_NPU,
CoreThreadingTestsWithIter,
testing::Combine(testing::ValuesIn(params_disable_umd_cache),
testing::Values(8),
testing::Values(20)),
- (ov::test::utils::appendPlatformTypeTestName<CoreThreadingTestsWithIter>));
+ ov::test::utils::appendPlatformTypeTestName<CoreThreadingTestsWithIter>);
diff --git a/src/plugins/intel_npu/tests/functional/shared_tests_instances/skip_tests.xml b/src/plugins/intel_npu/tests/functional/shared_tests_instances/skip_tests.xml
index 6449d24dd73..730ce344348 100644
--- a/src/plugins/intel_npu/tests/functional/shared_tests_instances/skip_tests.xml
+++ b/src/plugins/intel_npu/tests/functional/shared_tests_instances/skip_tests.xml
@@ -656,16 +656,40 @@ Example:
<!-- EISW 112064 -->
<skip_config>
- <message>Failing core threading tests</message>
+ <message>Failing common core threading tests</message>
<enable_rules>
<backend>LEVEL0</backend>
</enable_rules>
<filters>
- <filter>.*CoreThreadingTest.smoke_QueryModel.*</filter>
- <filter>.*CoreThreadingTestsWithIter.smoke_CompileModel.*</filter>
+ <!-- INFERENCE_PRECISION_HINT = FP32 not supported on NPU -->
<filter>.*CoreThreadingTestsWithIter.smoke_CompileModel_Accuracy_SingleCore.*</filter>
<filter>.*CoreThreadingTestsWithIter.smoke_CompileModel_Accuracy_MultipleCores.*</filter>
- <filter>.*CoreThreadingTestsWithIter.nightly_AsyncInfer_ShareInput.*</filter>
+ </filters>
+ </skip_config>
+
+ <!-- EISW 112064 -->
+ <skip_config>
+ <message>Failing Linux core threading tests</message>
+ <enable_rules>
+ <backend>LEVEL0</backend>
+ <operating_system>linux</operating_system>
+ </enable_rules>
+ <filters>
+ <filter>.*CoreThreadingTestsWithIter.smoke_CompileModel/.*</filter>
+ <filter>.*CoreThreadingTestsWithIter.smoke_CompileModel_MultipleCores/.*</filter>
+ <filter>.*CoreThreadingTestsWithIter.nightly_AsyncInfer_ShareInput/.*</filter>
+ </filters>
+ </skip_config>
+
+ <!-- EISW 112064 -->
+ <skip_config>
+ <message>Failing Windows PV Driver core threading tests</message>
+ <enable_rules>
+ <backend>LEVEL0</backend>
+ <operating_system>windows</operating_system>
+ </enable_rules>
+ <filters>
+ <filter>.*CoreThreadingTest.smoke_QueryModel/.*_driverVersion=1688.*</filter>
</filters>
</skip_config>