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] Skip core threading tests on PV driver (#34877)
Bogdan Pereanudd2c8cb5a796
diff --git a/src/plugins/intel_npu/tests/functional/behavior/ov_infer_request/compile_and_infer.cpp b/src/plugins/intel_npu/tests/functional/behavior/ov_infer_request/compile_and_infer.cppindex 2834cc491dd..d8da236900e 100644--- a/src/plugins/intel_npu/tests/functional/behavior/ov_infer_request/compile_and_infer.cpp+++ b/src/plugins/intel_npu/tests/functional/behavior/ov_infer_request/compile_and_infer.cpp@@ -21,6 +21,13 @@ INSTANTIATE_TEST_SUITE_P(compatibility_smoke_BehaviorTests,::testing::ValuesIn(configs)),ov::test::utils::appendPlatformTypeTestName<OVCompileAndInferRequest>);+INSTANTIATE_TEST_SUITE_P(smoke_BehaviorTests,+ OVCompileAndInferRequestMultiThreading,+ ::testing::Combine(::testing::Values(getConstantGraph(ov::element::f32)),+ ::testing::Values(ov::test::utils::DEVICE_NPU),+ ::testing::ValuesIn(configs)),+ ov::test::utils::appendPlatformTypeTestName<OVCompileAndInferRequestMultiThreading>);+INSTANTIATE_TEST_SUITE_P(compatibility_smoke_BehaviorTests,OVCompileAndInferRequestTurbo,::testing::Combine(::testing::Values(getConstantGraph(ov::element::f32)),diff --git a/src/plugins/intel_npu/tests/functional/behavior/ov_infer_request/compile_and_infer.hpp b/src/plugins/intel_npu/tests/functional/behavior/ov_infer_request/compile_and_infer.hppindex 90d5d1d959e..4586c7cea34 100644--- a/src/plugins/intel_npu/tests/functional/behavior/ov_infer_request/compile_and_infer.hpp+++ b/src/plugins/intel_npu/tests/functional/behavior/ov_infer_request/compile_and_infer.hpp@@ -238,7 +238,34 @@ TEST_P(OVCompileAndInferRequest, CompiledModelAndCreateMultipleInferRequestsWithOV_ASSERT_NO_THROW(req2.infer());}-TEST_P(OVCompileAndInferRequest, MultiThreadedCreateAndInferRequestsOnDifferentThreads) {+TEST_P(OVCompileAndInferRequest, CompiledModelWorkloadTypeUpdateAfterCompilation) {+ if (!isCommandQueueExtSupported()) {+ GTEST_SKIP() << "Workload type update is not supported with current driver.\n";+ }++ configuration[workload_type.name()] = WorkloadType::DEFAULT;+ OV_ASSERT_NO_THROW(execNet = core->compile_model(function, target_device, configuration));++ ASSERT_EQ(execNet.get_property(workload_type.name()).as<WorkloadType>(), WorkloadType::DEFAULT);+ ov::AnyMap modelConfiguration;+ modelConfiguration[workload_type.name()] = WorkloadType::EFFICIENT;+ OV_ASSERT_NO_THROW(execNet.set_property(modelConfiguration));+ ASSERT_EQ(execNet.get_property(workload_type.name()).as<WorkloadType>(), WorkloadType::EFFICIENT);+ ov::InferRequest req;+ OV_ASSERT_NO_THROW(req = execNet.create_infer_request());+ bool is_called = false;+ OV_ASSERT_NO_THROW(req.set_callback([&](std::exception_ptr exception_ptr) {+ ASSERT_EQ(exception_ptr, nullptr);+ is_called = true;+ }));+ OV_ASSERT_NO_THROW(req.start_async());+ OV_ASSERT_NO_THROW(req.wait());+ ASSERT_TRUE(is_called);+}++using OVCompileAndInferRequestMultiThreading = OVCompileAndInferRequest;++TEST_P(OVCompileAndInferRequestMultiThreading, CreateInferRequestsAndRunOnDifferentThreads) {configuration[intel_npu::defer_weights_load.name()] = true;OV_ASSERT_NO_THROW(execNet = core->compile_model(function, target_device, configuration));@@ -274,29 +301,6 @@ TEST_P(OVCompileAndInferRequest, MultiThreadedCreateAndInferRequestsOnDifferentT}}-TEST_P(OVCompileAndInferRequest, CompiledModelWorkloadTypeUpdateAfterCompilation) {- if (isCommandQueueExtSupported()) {- configuration[workload_type.name()] = WorkloadType::DEFAULT;- OV_ASSERT_NO_THROW(execNet = core->compile_model(function, target_device, configuration));-- ASSERT_EQ(execNet.get_property(workload_type.name()).as<WorkloadType>(), WorkloadType::DEFAULT);- ov::AnyMap modelConfiguration;- modelConfiguration[workload_type.name()] = WorkloadType::EFFICIENT;- OV_ASSERT_NO_THROW(execNet.set_property(modelConfiguration));- ASSERT_EQ(execNet.get_property(workload_type.name()).as<WorkloadType>(), WorkloadType::EFFICIENT);- ov::InferRequest req;- OV_ASSERT_NO_THROW(req = execNet.create_infer_request());- bool is_called = false;- OV_ASSERT_NO_THROW(req.set_callback([&](std::exception_ptr exception_ptr) {- ASSERT_EQ(exception_ptr, nullptr);- is_called = true;- }));- OV_ASSERT_NO_THROW(req.start_async());- OV_ASSERT_NO_THROW(req.wait());- ASSERT_TRUE(is_called);- }-}-using OVCompileAndInferRequestTurbo = OVCompileAndInferRequest;TEST_P(OVCompileAndInferRequestTurbo, CompiledModelTurbo) {