Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
change the wording and log level to be more in line with the general use
Browse files Browse the repository at this point in the history
case of loading from the jar
  • Loading branch information
gigasquid committed Nov 1, 2019
1 parent 1aa1b5a commit 2533bd6
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions scala-package/core/src/main/scala/org/apache/mxnet/Base.scala
Original file line number Diff line number Diff line change
Expand Up @@ -62,18 +62,17 @@ private[mxnet] object Base {
// The primitives currently supported for NDArray operations
val MX_PRIMITIVES = new Group ((Double, Float))


/* Find the native libray either on the path or copy it from
* the jar in the dependency
* jar into a temp directory and load it
*/
try {
try {
tryLoadLibraryOS("mxnet-scala")
} catch {
case e: UnsatisfiedLinkError =>
logger.warn("MXNet Scala native library not found in path. " +
"Copying native library from the archive. " +
"Consider installing the library somewhere in the path " +
"(for Windows: PATH, for Linux: LD_LIBRARY_PATH), " +
"or specifying by Java cmd option -Djava.library.path=[lib path].")
logger.warn("LD_LIBRARY_PATH=" + System.getenv("LD_LIBRARY_PATH"))
logger.warn("java.library.path=" + System.getProperty("java.library.path"))
logger.info("Copying and loading native library from the jar archive")
NativeLibraryLoader.loadLibrary("mxnet-scala")
}
} catch {
Expand Down

0 comments on commit 2533bd6

Please sign in to comment.