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

Deep Java Library native support #1598

Open
ppalaga opened this issue Aug 25, 2020 · 2 comments
Open

Deep Java Library native support #1598

ppalaga opened this issue Aug 25, 2020 · 2 comments

Comments

@ppalaga
Copy link
Contributor

ppalaga commented Aug 25, 2020

No description provided.

@JiriOndrusek
Copy link
Contributor

Please, assign to me.

@JiriOndrusek
Copy link
Contributor

DJL native support can not be finished without changes in DJL library. Djl library heavily depends on JNA (mostly models). Full support for JNA is not available or planned (see oracle/graal#673 or oracle/graal#1701)

Here is a stack trace with error caused by JNA from model.

java.lang.UnsatisfiedLinkError: com.sun.jna.Native.malloc(J)J [symbol: Java_com_sun_jna_Native_malloc or Java_com_sun_jna_Native_malloc__J]
at com.oracle.svm.jni.access.JNINativeLinkage.getOrFindEntryPoint(JNINativeLinkage.java:145)
at com.oracle.svm.jni.JNIGeneratedMethodSupport.nativeCallAddress(JNIGeneratedMethodSupport.java:57)
at com.sun.jna.Native.malloc(Native.java)
at com.sun.jna.Memory.malloc(Memory.java:722)
at com.sun.jna.Memory.(Memory.java:114)
at com.sun.jna.ptr.ByReference.(ByReference.java:42)
at com.sun.jna.ptr.PointerByReference.(PointerByReference.java:40)
at com.sun.jna.ptr.PointerByReference.(PointerByReference.java:36)
at ai.djl.mxnet.jna.JnaUtils.createSymbolFromFile(JnaUtils.java:1062)

My WIP is available in branch https://github.com/JiriOndrusek/camel-quarkus/commits/1598-djl-native

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants