Loading native lib from regular system lib path? #3024
-
Hydraulic Conveyor does extract and sign the native libraries. They are moved to the regular system libs. After that it’s not working anymore. Is there a system property I can set so they will be found again? https://hydraulic.dev/blog/11-in-jar-signing.html This is how skiko deals with that: |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 8 replies
-
I discovered the existence of PYTORCH_LIBRARY_PATH, which appears to be tailored for PyTorch, suggesting its use for a local installation. The approach of inspecting the system library path utilized by Skiko should be incorporated here as well. Alternatively, consider implementing a universal variable applicable to all engines, ensuring it does not disrupt other applications. |
Beta Was this translation helpful? Give feedback.
-
each engine has their own LIBRARY_PATH env var (e.g. @StefanOltmann |
Beta Was this translation helpful? Give feedback.
-
One issue with
|
Beta Was this translation helpful? Give feedback.
-
You are right. Can you show me what's the Hydraulic Conveyor created the folder structure? |
Beta Was this translation helpful? Give feedback.
-
Looks like this has been fixed. Thank you! |
Beta Was this translation helpful? Give feedback.
See: https://github.com/deepjavalibrary/djl/blob/master/engines/pytorch/pytorch-engine/src/main/java/ai/djl/pytorch/jni/LibUtils.java#L240