Skip to main content

Module blas_info

Module blas_info 

Source
Expand description

Runtime BLAS detection and optimization recommendations.

Probes the linked BLAS library at runtime via dlsym and recommends the optimal BLAS for the current CPU vendor.

Enums§

BlasKind
Detected BLAS library.
CpuVendor
Detected CPU vendor.

Functions§

cpu_driver_name
Short name for the CPU driver including the detected BLAS backend (e.g. “CPU (Accelerate)”, “CPU (OpenBLAS)”, “CPU”). Used in the up_to_date MCP tool and other diagnostics.
detect_blas
Detect which BLAS library is linked at runtime.
detect_cpu_vendor
Detect the CPU vendor from /proc/cpuinfo (Linux) or sysctl (macOS).
recommend_blas
Return a recommendation string if the user isn’t using the optimal BLAS.