[NPU] Offline Compilation Test for 5020#34674
Open
sbutnari wants to merge 1 commit intoopenvinotoolkit:masterfrom
Open
[NPU] Offline Compilation Test for 5020#34674sbutnari wants to merge 1 commit intoopenvinotoolkit:masterfrom
sbutnari wants to merge 1 commit intoopenvinotoolkit:masterfrom
Conversation
Signed-off-by: Sorin Butnariu <sorin.butnariu@intel.com>
Contributor
There was a problem hiding this comment.
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
NPU5010andNPU5020. - 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)); |
There was a problem hiding this comment.
[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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Details:
Tickets:
AI Assistance: