changeset 27895:b40bbd825bbb

detect a minimal OpenBLAS library lacking openblas_get_config (bug #57222) * lo-sysinfo.cc (octave::sys::blas_version): Look for openblas_get_num_threads as a fallback if openblas_get_config is not found.
author Mike Miller <mtmiller@octave.org>
date Thu, 14 Nov 2019 17:20:19 -0800
parents 531c188e6746
children 5701a3716577
files liboctave/system/lo-sysinfo.cc
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/liboctave/system/lo-sysinfo.cc	Thu Apr 11 08:00:36 2019 -0400
+++ b/liboctave/system/lo-sysinfo.cc	Thu Nov 14 17:20:19 2019 -0800
@@ -82,6 +82,15 @@
           retval += "OpenBLAS (config: " + std::string (open_f_ptr ()) + ")";
         }
 
+      // OpenBLAS with minimal extension functions included in the library
+      else if (dyn_libs.search ("openblas_get_num_threads"))
+        {
+          if (! retval.empty ())
+            retval += "\n";
+
+          retval += "OpenBLAS (config: unknown)";
+        }
+
       // GotoBLAS(2)
       if (dyn_libs.search ("gotoblas_profile_init"))
         {