Skip to content

Commit bb96fe4

Browse files
committed
update @platform annotations, don't try load onnxruntime_providers_openvino on platforms that don't build it.
1 parent 59a80c5 commit bb96fe4

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,14 @@
6868
},
6969
exclude = {"CL/opencl.h", "CL/cl_version.h", "CL/cl_platform.h", "CL/cl.h"/*, "CL/cl_gl.h", "CL/cl_gl_ext.h", "CL/cl_ext.h"*/,
7070
"onnxruntime/core/session/onnxruntime_ep_c_api.h"},
71+
link = {"onnxruntime_providers_shared", "onnxruntime@.1", "onnxruntime_providers_dnnl"}
72+
),
73+
@Platform(
74+
value = {"linux-x86_64", "macosx-arm64", "windows-x86_64"},
7175
link = {"onnxruntime_providers_shared", "onnxruntime@.1", "onnxruntime_providers_dnnl", "onnxruntime_providers_openvino"}
7276
),
7377
@Platform(
74-
value = {"linux", "windows"},
78+
value = {"linux-x86_64", "windows-x86_64"},
7579
extension = "-gpu",
7680
link = {"onnxruntime_providers_shared", "onnxruntime@.1", "onnxruntime_providers_dnnl", "onnxruntime_providers_openvino", "onnxruntime_providers_cuda"}
7781
),

0 commit comments

Comments
 (0)