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
- Host: GitHub
- URL: https://github.com/intelpython/smp
- Owner: IntelPython
- License: bsd-3-clause
- Created: 2017-06-27T16:01:40.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-08-19T15:43:58.000Z (9 months ago)
- Last Synced: 2025-04-12T21:06:54.645Z (about 1 month ago)
- Language: Python
- Homepage:
- Size: 25.4 KB
- Stars: 13
- Watchers: 5
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: SECURITY.md
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
```