Make ONNX Runtime’s DNNL and OpenVINO dependencies optional - #1802
Open
barrypitman wants to merge 4 commits into
Open
Make ONNX Runtime’s DNNL and OpenVINO dependencies optional#1802barrypitman wants to merge 4 commits into
barrypitman wants to merge 4 commits into
Conversation
…ng to pre-emptively link openvino, and loading fails because there is no openvino preset for onnxruntime
barrypitman
marked this pull request as ready for review
August 29, 2026 11:55
blueberry
approved these changes
Aug 31, 2026
blueberry
left a comment
Contributor
There was a problem hiding this comment.
I tried the latest snapshots (onnxruntime-platform-1.28.0-1.5.15-20260828.110255-3) and it my tests pass (the CUDA problem from the other issue is still there, but it is unrelated to this PR). So, if this change is available in the snapshot, it works.
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.
Summary
ONNX Runtime currently inherits the DNNL and OpenVINO presets, causing their native libraries to be loaded even when those execution providers are not required. This can prevent ONNX Runtime from loading on platforms without a corresponding OpenVINO preset, including ARM64.
This change:
This allows the base ONNX Runtime preset to load without requiring OpenVINO or DNNL while retaining support when their native resources are available.
Given that OpenVINO is quite a large dependency, I think that making if optional makes sense.
Also - apologies for not picking up this issue earlier. Currently the onnxruntime preset is not functional on ARM.