Skip to content

Conversation

@gblong1
Copy link

@gblong1 gblong1 commented Aug 25, 2025

Description

This change adds a gate for checking the file path of EPCtx wrapped OV IRs to ensure the correct file is read.

Motivation and Context

This resolves EPCtx wrapped OV IR model caching for the case where the path to the cached file is explicitly set.

This comment was marked as outdated.

ORT_THROW can take more than one argument, however, the code style does seem to be one error string per ORT THROW, so we can accept this update.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link

@MayureshV1 MayureshV1 left a comment

Choose a reason for hiding this comment

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

Tested this with native ONNX and OVIR wrapped ONNX models and was able to generate EPCTX model.

@MayureshV1 MayureshV1 requested a review from Copilot August 25, 2025 20:29
Copy link

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 fixes a filename confusion issue when reading EPCtx wrapped OpenVINO IR models by adding proper path checking logic. The change ensures that the correct file path is used when accessing cached EPCtx models.

  • Adds conditional logic to determine the correct file path for EPCtx wrapped OVIR models
  • Improves error messaging for failed file operations during model export

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@MayureshV1 MayureshV1 merged commit 6aa8420 into intel:ovep-develop Aug 25, 2025
3 of 5 checks passed
vthaniel pushed a commit that referenced this pull request Aug 28, 2025
* Fix to resolve EPCtx filename confusion with wrapped OVIRs

* Update onnxruntime/core/providers/openvino/backend_manager.cc

ORT_THROW can take more than one argument, however, the code style does seem to be one error string per ORT THROW, so we can accept this update.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: MayureshV1 <47039074+MayureshV1@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants