# HG changeset patch # User Mike Miller # Date 1573780819 28800 # Node ID b40bbd825bbb8639c76dcfd5449e9333be544f69 # Parent 531c188e6746baca072530a5411ead8dca467659 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. diff -r 531c188e6746 -r b40bbd825bbb liboctave/system/lo-sysinfo.cc --- 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")) {