scalanlp / breeze

Breeze is/was a numerical processing library for Scala.
https://www.scalanlp.org
Apache License 2.0
3.45k stars 693 forks source link

INFO: successfully loaded #801

Closed jimka2001 closed 3 years ago

jimka2001 commented 3 years ago

When I call the svd function, I get lots of diagnostic messages printed. Is this normal?

Apr 04, 2021 12:41:17 PM com.github.fommil.jni.JniLoader liberalLoad
INFO: successfully loaded /var/folders/c1/sqxjhjm15gdcyr49z7r4k1mr0000gn/T/jniloader14881482479103767951netlib-native_system-osx-x86_64.jnilib
Apr 04, 2021 12:41:17 PM com.github.fommil.jni.JniLoader load
INFO: already loaded netlib-native_system-osx-x86_64.jnilib

I'm using the version recommended on the breeze GitHub page.

libraryDependencies  ++= Seq(
  // Last stable release
  "org.scalanlp" %% "breeze" % "1.1",

  // Native libraries are not included by default. add this if you want them
  // Native libraries greatly improve performance, but increase jar sizes. 
  // It also packages various blas implementations, which have licenses that may or may not
  // be compatible with the Apache License. No GPL code, as best I know.
  "org.scalanlp" %% "breeze-natives" % "1.1",

  // The visualization library is distributed separately as well.
  // It depends on LGPL code
  "org.scalanlp" %% "breeze-viz" % "1.1"
)
dlwh commented 3 years ago

Yes, the first time you call any linear algebra function in breeze (or something that calls one) breeze will attempt to load native blas and lapack libraries via netlib-java. The logging comes from netlib-java. It's possible to disable but I don't recommend it.

On Sun, Apr 4, 2021, 3:42 AM Jim Newton @.***> wrote:

When I call the svd function, I get lots of diagnostic messages printed. Is this normal?

Apr 04, 2021 12:41:17 PM com.github.fommil.jni.JniLoader liberalLoad INFO: successfully loaded /var/folders/c1/sqxjhjm15gdcyr49z7r4k1mr0000gn/T/jniloader14881482479103767951netlib-native_system-osx-x86_64.jnilib Apr 04, 2021 12:41:17 PM com.github.fommil.jni.JniLoader load INFO: already loaded netlib-native_system-osx-x86_64.jnilib

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/scalanlp/breeze/issues/801, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAACLIL3HYZ5FPXU4G3GVJ3THA7CNANCNFSM42LIQUPA .

jimka2001 commented 3 years ago

Is it normal that I get a lot of such messages?

dlwh commented 3 years ago

are you seeing this more than once per session/program?

jimka2001 commented 3 years ago

It seems the full message just appears once. Perhaps it is a bit misleading as it appears every time I test a function, but I suppose that is because IntelliJ starts a new JVM session each time I press the little green triangle to run a test.

Apr 08, 2021 11:52:50 AM com.github.fommil.jni.JniLoader liberalLoad
INFO: successfully loaded /var/folders/c1/sqxjhjm15gdcyr49z7r4k1mr0000gn/T/jniloader8766867026396728044netlib-native_system-osx-x86_64.jnilib
Apr 08, 2021 11:52:50 AM com.github.fommil.jni.JniLoader load
INFO: already loaded netlib-native_system-osx-x86_64.jnilib