Skip to content

[NPU] Offline Compilation Test for 5020#34674

Open
sbutnari wants to merge 1 commit intoopenvinotoolkit:masterfrom
sbutnari:unittest_offlinecompilation_5020
Open

[NPU] Offline Compilation Test for 5020#34674
sbutnari wants to merge 1 commit intoopenvinotoolkit:masterfrom
sbutnari:unittest_offlinecompilation_5020

Conversation

@sbutnari
Copy link
Contributor

Details:

  • Add offline compilation test for 5020

Tickets:

  • ticket-id

AI Assistance:

  • AI assistance used: no / yes
  • If yes, summarize how AI was used and what human validation was performed (build/tests/manual checks).

Signed-off-by: Sorin Butnariu <sorin.butnariu@intel.com>
@sbutnari sbutnari requested review from a team as code owners March 12, 2026 22:10
@github-actions github-actions bot added the category: NPU OpenVINO NPU plugin label Mar 12, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds coverage for offline compilation on the NPU 5020 platform in the Intel NPU unit tests, extending the existing “driver not installed” offline compilation checks.

Changes:

  • Extend offline compilation unit tests to run for both NPU5010 and NPU5020.
  • Refactor the two affected tests to iterate over a platform list and perform the same compile assertions per platform.

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines +34 to +41
for (const auto& platform : platforms) {
ov::AnyMap config;
config[ov::intel_npu::compiler_type.name()] = ov::intel_npu::CompilerType::PLUGIN;
config[ov::intel_npu::platform.name()] = platform;
core.set_property(DEVICE_NPU, config);

std::shared_ptr<ov::Model> model = ov::test::utils::make_multi_single_conv();
OV_ASSERT_NO_THROW(core.compile_model(model, DEVICE_NPU));
std::shared_ptr<ov::Model> model = ov::test::utils::make_multi_single_conv();
OV_ASSERT_NO_THROW(core.compile_model(model, DEVICE_NPU));
Copy link

Copilot AI Mar 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[LOW] The loop now tests multiple platforms inside a single gtest case, but if a failure occurs it won’t be obvious which platform triggered it. Consider adding a SCOPED_TRACE (or converting these to a parameterized test) so CI logs include the platform value that failed.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category: NPU OpenVINO NPU plugin

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants