joblib / threadpoolctl

Python helpers to limit the number of threads used in native libraries that handle their own internal threadpool (BLAS and OpenMP implementations)
BSD 3-Clause "New" or "Revised" License
346 stars 30 forks source link

Detect Netlib (BLAS/LAPACK) #159

Open ogrisel opened 10 months ago

ogrisel commented 10 months ago

It would be useful to detect that netlib has been linked to the Python program even if netlib is not multi-threaded.

It can help maintainers of scientific Python libraries diagnose performance problems reported by users.

rgommers commented 7 months ago

+1 for this. I just wrote some docs on BLAS-related diagnostics for SciPy, and this "Netlib went missing" was one of the things noticed quickly: https://github.com/scipy/scipy/pull/20315#discussion_r1536624272.