You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue
When trying to use the onnxruntime-platform on a Mac with an M2chip, I'm encountering an UnsatisfiedLinkError related to jniOpenCL.
java.lang.UnsatisfiedLinkError: no jniOpenCL in java.library.path: /Users/campin/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.
at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2434)
at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:848)
at java.base/java.lang.System.loadLibrary(System.java:2015)
at org.bytedeco.javacpp.Loader.loadLibrary(Loader.java:1832)
at org.bytedeco.javacpp.Loader.load(Loader.java:1423)
at org.bytedeco.javacpp.Loader.load(Loader.java:1234)
at org.bytedeco.javacpp.Loader.load(Loader.java:1210)
at org.bytedeco.opencl.global.OpenCL.<clinit>(OpenCL.java:14)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:488)
at java.base/java.lang.Class.forName(Class.java:467)
at org.bytedeco.javacpp.Loader.load(Loader.java:1289)
at org.bytedeco.javacpp.Loader.load(Loader.java:1234)
at org.bytedeco.javacpp.Loader.load(Loader.java:1226)
at ai.onnxruntime.OnnxRuntime.init(OnnxRuntime.java:150)
at ai.onnxruntime.OrtEnvironment.<clinit>(OrtEnvironment.java:31)
using this import .settings(libraryDependencies += "org.bytedeco" % "onnxruntime-platform" % "1.15.0-1.5.9")
To Reproduce
Steps to reproduce the behavior:
Import onnxruntime-platform version 1.15.0-1.5.9 in a project.
Try to get an instance of OrtEnvironment with OrtEnvironment.getEnvironment().
See error
import ai.onnxruntime._
val env: OrtEnvironment = OrtEnvironment.getEnvironment()
or
import org.bytedeco.onnxruntime._
import org.bytedeco.onnxruntime.global.onnxruntime._
val env = new Env(ORT_LOGGING_LEVEL_WARNING, "test")
Issue
When trying to use the onnxruntime-platform on a Mac with an M2chip, I'm encountering an UnsatisfiedLinkError related to jniOpenCL.
using this import
.settings(libraryDependencies += "org.bytedeco" % "onnxruntime-platform" % "1.15.0-1.5.9")
To Reproduce
Steps to reproduce the behavior:
Environment
OS: macOS
Chip: M2
Java version: [e.g., 18.0.2]
Scala version: [e.g., 2.13.6]
ONNX Runtime version: 1.15.0-1.5.9
The text was updated successfully, but these errors were encountered: