CMD + K

numthreads

Community

Ultra tiny and simple tool to set the number of threads for OpenBLAS, MKL, OMP, NumExpr, and Accelerate.

Installation

To install this package, run one of the following:

Conda
$conda install conda-forge::numthreads

Usage Tracking

0.6.1
0.5.0
0.4.0
3 / 8 versions selected
Downloads (Last 6 months): 0

Description

numthreads is a really tiny and simple Python package designed to set the number of threads for various computing libraries including OpenBLAS, Intel's Math Kernel Library (MKL), OpenMP, NumExpr, and Accelerate. The number of threads can be set via the command line or in Python code. The performance of many numerical algorithms varies significantly based on the number of threads employed. While increasing the number of threads can often accelerate these algorithms, it's not always the case. In some instances, using more threads may actually impede computational efficiency. Therefore, it's important to be able to easily set the number of threads used by these libraries.

About

Summary

Ultra tiny and simple tool to set the number of threads for OpenBLAS, MKL, OMP, NumExpr, and Accelerate.

Last Updated

May 24, 2025 at 09:03

License

MIT

Total Downloads

13.4K

Supported Platforms

noarch