Skip to content

[NPU] Update getCompilerVersion and getCompilerProperties methods#35152

Merged
pereanub merged 1 commit intoopenvinotoolkit:masterfrom
pereanub:update_compiler_properties_method
Apr 3, 2026
Merged

[NPU] Update getCompilerVersion and getCompilerProperties methods#35152
pereanub merged 1 commit intoopenvinotoolkit:masterfrom
pereanub:update_compiler_properties_method

Conversation

@pereanub
Copy link
Copy Markdown
Contributor

@pereanub pereanub commented Apr 3, 2026

Details:

  • Update getCompilerVersion and getCompilerProperties methods

Tickets:

  • N/A

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: Bogdan Pereanu <bogdan.pereanu@intel.com>
@pereanub pereanub requested review from a team as code owners April 3, 2026 05:20
@github-actions github-actions bot added the category: NPU OpenVINO NPU plugin label Apr 3, 2026
@pereanub pereanub requested a review from Copilot April 3, 2026 05:35
Copy link
Copy Markdown
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

This PR updates Intel NPU Level Zero initialization utilities to make compiler property/version retrieval safer and more consistent by centralizing initialization behind a single locked helper.

Changes:

  • Refactored getCompilerProperties() to always initialize compiler properties via a shared helper before returning.
  • Refactored getCompilerVersion() to take the internal mutex and reuse the same initialization path.
  • Added a private initCompilerPropertiesLocked() helper to avoid leaving cached compiler properties in a partially-initialized state if the driver query fails.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/plugins/intel_npu/src/utils/src/zero/zero_init.cpp Adds initCompilerPropertiesLocked() and routes compiler properties/version queries through it under _mutex.
src/plugins/intel_npu/src/utils/include/intel_npu/utils/zero/zero_init.hpp Declares the new private helper used to initialize cached compiler properties.

@pereanub pereanub added this pull request to the merge queue Apr 3, 2026
Merged via the queue into openvinotoolkit:master with commit 191547a Apr 3, 2026
183 checks passed
@pereanub pereanub deleted the update_compiler_properties_method branch April 3, 2026 17:33
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.

6 participants