threadpoolctl icon indicating copy to clipboard operation
threadpoolctl copied to clipboard

Python helpers to limit the number of threads used in native libraries that handle their own internal threadpool (BLAS and OpenMP implementations)

Results 26 threadpoolctl issues
Sort by recently updated
recently updated
newest added

Hello. We are currently trying to rebuild this package in Fedora for Python 3.11, but we see some suspicious test failures that occur with Python 3.11 as well as with...

Hi, I know this is probably more of an issue on the jax side and has been discussed there, e.g. google/jax#743, google/jax#1539 and google/jax#6790, although I'm still wondering if you...

This code: ``` from threadpoolctl import threadpool_info from pprint import pprint pprint(threadpool_info()) ``` fails on FreeBSD 13: ``` ld-elf.so.1: Can't find module with TLS index 1 ```

The `threadpool_limits` are global. This makes it difficult to avoid oversubscription when invoking parallel operations (e.g., Numpy functions) from within a parallel divide-and-conquer algorithm. Ideally, parallel multi-threading frameworks would be...

See: https://github.com/scikit-learn/scikit-learn/pull/21338 ```python-traceback ________________________________________________ test_function_docstring[sklearn.utils.fixes.threadpool_info] ________________________________________________ function_name = 'sklearn.utils.fixes.threadpool_info', request = @pytest.mark.parametrize("function_name", get_all_functions_names()) def test_function_docstring(function_name, request): """Check function docstrings using numpydoc.""" if function_name in FUNCTION_DOCSTRING_IGNORE_LIST: request.applymarker( pytest.mark.xfail(run=False, reason="TODO pass numpydoc...

help wanted

Hello. I use threadpoolctl 2.2.0 which runs very well most of the time. However, after exceeding the OpenMP or OpenBLAS thread limit, threadpoolctl seems to have broken down. It does...

As far as I can tell, limiting the number of threads in TensorFlow with threadpoolctl currently doesn't work. For instance with the following minimal example with Tensorflow 2.5.0, **example.py** ```py...

Apparently, it's possible to get BLIS to work on windows when built with Clang/LLVM: https://github.com/numpy/numpy/issues/7372#issuecomment-409364435 Which means that if we have Cython extension built with MSVC calling into BLIS built...

enhancement
help wanted
CI

numba can use several threading layers that should all be tested in CI: https://numba.pydata.org/numba-doc/dev/user/threading-layer.html

CI

It's possible to get a CI env with Threading Building Blocks as follows. At the moment threadpoolctl cannot detect TBB loaded by MKL itself loaded by numpy when `MKL_THREADING_LAYER=TBB` is...

enhancement