Skip to content

Commit 820dc92

Browse files
committed
onnxruntime: enable OpenVINO on macOS arm64
1 parent 7068eb3 commit 820dc92

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

onnxruntime/cppbuild.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ case $PLATFORM in
7474
esac
7575

7676
case $PLATFORM in
77-
linux-x86_64|windows-x86_64)
77+
linux-x86_64|macosx-arm64|windows-x86_64)
7878
"$PYTHON_BIN_PATH" -m pip install openvino==$OPENVINO
7979
OPENVINO_CMAKE_DIR=$("$PYTHON_BIN_PATH" -c "import pathlib, openvino; print(pathlib.Path(openvino.__file__).parent / 'cmake')")
8080
export OPENVINO_FLAGS="--use_openvino CPU --cmake_extra_defines OpenVINO_DIR=$OPENVINO_CMAKE_DIR"

onnxruntime/src/main/java/org/bytedeco/onnxruntime/presets/onnxruntime.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
link = {"onnxruntime_providers_shared", "onnxruntime@.1", "onnxruntime_providers_dnnl"}
7272
),
7373
@Platform(
74-
value = {"linux-x86_64", "windows-x86_64"},
74+
value = {"linux-x86_64", "macosx-arm64", "windows-x86_64"},
7575
link = {"onnxruntime_providers_shared", "onnxruntime@.1", "onnxruntime_providers_dnnl", "onnxruntime_providers_openvino"}
7676
),
7777
@Platform(

0 commit comments

Comments
 (0)