Skip to content
/ smp Public
forked from IntelPython/smp

Static partitioning and thread affinity for nestable Symmetric Multi-Processing

License

Notifications You must be signed in to change notification settings

stjordanis/smp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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 <oversubscription_factor>] [-p <number_of_outermost_processes>] 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 <oversubscription_factor>] [-p <number_of_outermost_processes>] -m tbb script.py

About

Static partitioning and thread affinity for nestable Symmetric Multi-Processing

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%