8000 GitHub - ogrisel/threadpoolctl: Python helpers to limit the number of threads used in threadpool-backed parallelism for C-libraries
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Python helpers to limit the number of threads used in threadpool-backed parallelism for C-libraries

Notifications You must be signed in to change notification settings

ogrisel/threadpoolctl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Thread-pool Controls Build Status codecov

Python helpers to limit the number of threads used in threadpool-backed parallelism for C-libraries.

Installation

pip install threadpoolctl

Usage

from threadpoolctl import threadpool_limits


with threadpool_limits(limits=1, user_api='blas'):
    # In this block, calls to blas implementation (like openblas or MKL)
    # will be limited to use only one thread. They can thus be used jointly
    # with thread-parallelism or openmp calls.
    ...

About

Python helpers to limit the number of threads used in threadpool-backed parallelism for C-libraries

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 91.4%
  • Shell 5.3%
  • Batchfile 3.3%
0