Skip to content

This encapsulates rayon::ThreadPoolBuilder to provide thread binding support for dummies. Supports all kinds of thread binding.

Notifications You must be signed in to change notification settings

wagnerf42/thread_binder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WHAT

This crate allows you to create a bindable thread pool. This is simply a wrapper around the Rayon's thread pool. It supports all the "major" functions with the same signature. At the time of creation of this pool, a binding policy is specified. All the threads in this pool will be bound to the cores using this policy. Currently we bind to one single numa node but other policies will eventually be added at a later point.

Note that if the machine is hyperthreaded, the system will try not to map two threads on the same physical core.

WHY

This crate uses an existing HWLOC-RS crate by daschl. However, it is much more programmer friendly since the same API is exposed and that makes it super easy to use.

About

This encapsulates rayon::ThreadPoolBuilder to provide thread binding support for dummies. Supports all kinds of thread binding.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published