Skip to content

Fix for epctx ovir test case#1176

Merged
jatinwadhwa921 merged 1 commit into
ovep-developfrom
jatin_fix_epctx_intel
Jul 1, 2026
Merged

Fix for epctx ovir test case#1176
jatinwadhwa921 merged 1 commit into
ovep-developfrom
jatin_fix_epctx_intel

Conversation

@jatinwadhwa921

Copy link
Copy Markdown

The OVIR EP context import/export path is currently only validated on Intel CPUs. On AMD-based CPUs this path is untested, in particular the embed_mode = 0 flow, which exports the compiled model to a separate .bin file and memory-maps it back on reload, is not supported there and can crash the test process (observed as a SEGFAULT in onnxruntime_provider_test on AMD Linux runners).

Since we cannot currently guarantee correct import/export behavior on AMD silicon, this change gates the OVIR EP context tests to run only on Intel CPUs. On non-Intel CPUs (e.g. AMD) the tests are skipped at runtime via a CPU-vendor check (CPUIDInfo::GetCPUVendor()), so the same test binary continues to run everywhere without crashing.

@ankitm3k ankitm3k left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

lgtm

Copilot AI left a comment

Copy link
Copy Markdown

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 the OpenVINO EP context (OVIR) provider tests to avoid crashes on non-Intel CPUs by skipping the OVIR import/export test fixtures at runtime based on detected CPU vendor.

Changes:

  • Add a CPU-vendor helper (IsIntelCPU()) and use it to gate OVIR EP context tests.
  • Skip OVIR EP context import/export test fixtures on non-Intel CPUs via GTEST_SKIP() in SetUp().

Comment on lines +43 to +45
bool IsIntelCPU() {
return onnxruntime::CPUIDInfo::GetCPUIDInfo().GetCPUVendor() == "Intel";
}
Comment on lines 11 to 15
#include "core/framework/provider_options.h"
#include "core/framework/tensor_shape.h"
#include "core/common/float16.h"
#include "core/common/cpuid_info.h"

@jatinwadhwa921 jatinwadhwa921 merged commit 8dc6ed2 into ovep-develop Jul 1, 2026
8 of 9 checks passed
jatinwadhwa921 added a commit that referenced this pull request Jul 1, 2026
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.

3 participants