An open API service indexing awesome lists of open source software.

https://github.com/intelpython/smp

Static partitioning and thread affinity for nestable Symmetric Multi-Processing
https://github.com/intelpython/smp

Last synced: about 1 month ago
JSON representation

Static partitioning and thread affinity for nestable Symmetric Multi-Processing

Awesome Lists containing this project

README

        

# Static Multi-Processing
**SMP** module allows to set static affinity mask for each process inside process pool to limit total
number of threads running in application:
```
python -m smp [-f ] [-p ] script.py
```
The module supports two types of process pool: **multiprocessing.pool.Pool** and
**concurrent.futures.ProcessPoolExecutor**, as well as one thread pool: **multiprocessing.pool.ThreadPool**.
Can be run with TBB module as well:
```
python -m smp [-f ] [-p ] -m tbb script.py
```