Skip to content

Conversation

@alexandruenache1111
Copy link
Contributor

@alexandruenache1111 alexandruenache1111 commented Oct 23, 2025

Details:

  • Minor version will be increased in the next OV release. Blobs compiled with the future OpenVINO version should not be accepted.

Tickets:

  • n/a

@github-actions github-actions bot added the category: NPU OpenVINO NPU plugin label Oct 23, 2025
@alexandruenache1111 alexandruenache1111 changed the title [NPU] Simplify blob version skip logic [NPU] Accept blobs compiled with a limited set of minor version Oct 23, 2025
@alexandruenache1111 alexandruenache1111 self-assigned this Oct 23, 2025
Signed-off-by: alexandruenache1111 <[email protected]>
@alexandruenache1111 alexandruenache1111 marked this pull request as ready for review October 23, 2025 12:04
@alexandruenache1111 alexandruenache1111 requested review from a team as code owners October 23, 2025 12:04
std::unique_ptr<MetadataBase> storedMeta;
storedMeta = create_metadata(metaVersion, blobDataSize);
storedMeta->read(stream);
try {
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we really need this try-catch mechanism here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, because create_metadata or read may throw exceptions.

Copy link
Contributor

Choose a reason for hiding this comment

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

But you just throw the exceptions further. You don't handle them.

Copy link
Contributor Author

@alexandruenache1111 alexandruenache1111 Oct 24, 2025

Choose a reason for hiding this comment

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

Indeed. I am not a fan of passing exceptions along the function stack. However, the motivation here would be to "append exception messages until one is not handled and the execution is halted".

CURRENT_METADATA_MAJOR_VERSION,
".",
CURRENT_METADATA_MINOR_VERSION);
OPENVINO_THROW(ex.what());
Copy link
Contributor

Choose a reason for hiding this comment

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

same question here.

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.

3 participants