Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Build] OpenVINO ep for macOS #24273

Open
raphaelmenges opened this issue Apr 2, 2025 · 0 comments
Open

[Build] OpenVINO ep for macOS #24273

raphaelmenges opened this issue Apr 2, 2025 · 0 comments
Labels
build build issues; typically submitted using template ep:OpenVINO issues related to OpenVINO execution provider

Comments

@raphaelmenges
Copy link

raphaelmenges commented Apr 2, 2025

Describe the issue

Hello 👋,

I am trying to build the OpenVINO execution provider for desktop platforms.

The builds for Windows x86_64 with \MT and \MD are successful, as well as the Linux x86_64 and arm64 builds. However, both macOS x86_64 and arm64 builds still fail. Both in the same way:

 CMake Error at CMakeLists.txt:187 (install):
  install IMPORTED_RUNTIME_ARTIFACTS given target
  "onnxruntime_providers_shared" which does not exist.

I had a discussion about it with @decahedron1 in an issue of the ort-crate and it looks like the onnxruntime_providers_shared target which the OpenVINO ep depends on is not available on macOS:

if (NOT onnxruntime_MINIMAL_BUILD AND NOT onnxruntime_EXTENDED_MINIMAL_BUILD
AND NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin|iOS|visionOS|tvOS"
AND NOT CMAKE_SYSTEM_NAME STREQUAL "Android"
AND NOT CMAKE_SYSTEM_NAME STREQUAL "Emscripten")
file(GLOB onnxruntime_providers_shared_cc_srcs CONFIGURE_DEPENDS
"${ONNXRUNTIME_ROOT}/core/providers/shared/*.h"
"${ONNXRUNTIME_ROOT}/core/providers/shared/*.cc"
)

Is this assumption correct or should the OpenVINO ep be available for macOS? The ONNX runtime docs page about the OpenVINO ep does not mention macOS at all, yet, OpenVINO itself runs fine on macOS.

ARM CPUs with armv7a and higher, ARM64 CPUs with arm64-v8a and higher, Apple® Mac with Apple silicon

If the OpenVINO ep is not intended to work on macOS, furthermore the ONNX runtime docs can be misleading:

On Windows, shared provider libraries will be named ‘onnxruntime_providers_.dll’ (for example onnxruntime_providers_openvino.dll). On Unix, they will be named ‘libonnxruntime_providers_.so’ On Mac, they will be named ‘libonnxruntime_providers_*.dylib’.

This paragraph indicates clearly that there are shared provider libraries on macOS and implies that there even is an OpenVINO ep for macOS.

Urgency

No response

Target platform

macOS (x86_64/arm64)

Build script

Custom build script hosted here: https://github.com/alfatraining/ort-artifacts-staging

Error / output

 CMake Error at CMakeLists.txt:187 (install):
  install IMPORTED_RUNTIME_ARTIFACTS given target
  "onnxruntime_providers_shared" which does not exist.

Visual Studio Version

No response

GCC / Compiler Version

No response

@raphaelmenges raphaelmenges added the build build issues; typically submitted using template label Apr 2, 2025
@github-actions github-actions bot added the ep:OpenVINO issues related to OpenVINO execution provider label Apr 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build build issues; typically submitted using template ep:OpenVINO issues related to OpenVINO execution provider
Projects
None yet
Development

No branches or pull requests

1 participant