-
Added support for FlexiBLAS joblib#156
-
Fixed a bug where an unsupported library would be detected because it shares a common prefix with one of the supported libraries. Now the symbols are also checked to identify the supported libraries. joblib#151
-
Dropped support for Python 3.6 and 3.7.
-
Added support for custom library controllers. Custom controllers must inherit from the
threadpoolctl.LibController
class and be registered to threadpoolctl using thethreadpoolctl.register
function. joblib#138 -
A warning is raised on macOS when threadpoolctl finds both Intel OpenMP and LLVM OpenMP runtimes loaded simultaneously by the same Python program. See details and workarounds at https://github.com/joblib/threadpoolctl/blob/master/multiple_openmp.md. joblib#142
-
Fixed a detection issue of the BLAS libraires packaged by conda-forge on Windows. joblib#112
-
threadpool_limits
andThreadpoolController.limit
now accept the string "sequential_blas_under_openmp" for thelimits
parameter. It should only be used for the specific case when one wants to have sequential BLAS calls within an OpenMP parallel region. It takes into account the unexpected behavior of OpenBLAS with the OpenMP threading layer. joblib#114
-
New object
threadpooctl.ThreadpoolController
which holds controllers for all the supported native libraries. The states of these libraries is accessible through theinfo
method (equivalent tothreadpoolctl.threadpool_info()
) and their number of threads can be limited with thelimit
method which can be used as a context manager (equivalent tothreadpoolctl.threadpool_limits()
). This is especially useful to avoid searching through all loaded shared libraries each time. joblib#95 -
Added support for OpenBLAS built for 64bit integers in Fortran. joblib#101
-
Added the possibility to use
threadpoolctl.threadpool_limits
andthreadpooctl.ThreadpoolController
as decorators through theirwrap
method. joblib#102 -
Fixed an attribute error when using old versions of OpenBLAS or BLIS that are missing version query functions. joblib#88 joblib#91
-
Fixed an attribute error when python is run with -OO. joblib#87
-
threadpoolctl.threadpool_info()
now reports the architecture of the CPU cores detected by OpenBLAS (viaopenblas_get_corename
) and BLIS (viabli_arch_query_id
andbli_arch_string
). -
Fixed a bug when the version of MKL was not found. The "version" field is now set to None in that case. joblib#82
-
New commandline interface:
python -m threadpoolctl -i numpy
will try to import the
numpy
package and then return the output ofthreadpoolctl.threadpool_info()
on STDOUT formatted using the JSON syntax. This makes it easier to quickly introspect a Python environment.
-
Expose MKL, BLIS and OpenBLAS threading layer in information displayed by
threadpool_info
. This information is referenced in thethreading_layer
field. joblib#48 joblib#60 -
When threadpoolctl finds libomp (LLVM OpenMP) and libiomp (Intel OpenMP) both loaded, a warning is raised to recall that using threadpoolctl with this mix of OpenMP libraries may cause crashes or deadlocks. joblib#49
-
Detect libraries referenced by symlinks (e.g. BLAS libraries from conda-forge). joblib#34
-
Add support for BLIS. joblib#23
-
Breaking change: method
get_original_num_threads
on thethreadpool_limits
context manager to cheaply access the initial state of the runtime:- drop the
user_api
parameter; - instead return a dict
{user_api: num_threads}
; - fixed a bug when the limit parameter of
threadpool_limits
was set toNone
.
- drop the
Initial release.