This repository was archived by the owner on Nov 17, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
scala-package/core/src/main/scala/org/apache/mxnet Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -62,18 +62,17 @@ private[mxnet] object Base {
62
62
// The primitives currently supported for NDArray operations
63
63
val MX_PRIMITIVES = new Group ((Double , Float ))
64
64
65
+
66
+ /* Find the native libray either on the path or copy it from
67
+ * the jar in the dependency
68
+ * jar into a temp directory and load it
69
+ */
65
70
try {
66
71
try {
67
72
tryLoadLibraryOS(" mxnet-scala" )
68
73
} catch {
69
74
case e : UnsatisfiedLinkError =>
70
- logger.warn(" MXNet Scala native library not found in path. " +
71
- " Copying native library from the archive. " +
72
- " Consider installing the library somewhere in the path " +
73
- " (for Windows: PATH, for Linux: LD_LIBRARY_PATH), " +
74
- " or specifying by Java cmd option -Djava.library.path=[lib path]." )
75
- logger.warn(" LD_LIBRARY_PATH=" + System .getenv(" LD_LIBRARY_PATH" ))
76
- logger.warn(" java.library.path=" + System .getProperty(" java.library.path" ))
75
+ logger.info(" Copying and loading native library from the jar archive" )
77
76
NativeLibraryLoader .loadLibrary(" mxnet-scala" )
78
77
}
79
78
} catch {
You can’t perform that action at this time.
0 commit comments