Skip to content

Commit

Permalink
change the wording and log level to be more in line with the general …
Browse files Browse the repository at this point in the history
…use (apache#16626)

case of loading from the jar
  • Loading branch information
gigasquid authored and yajiedesign committed Nov 6, 2019
1 parent 2c51325 commit 3277c9d
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 3277c9d

Please sign in to comment.