Skip to main content

resolve_pinning

Function resolve_pinning 

Source
pub fn resolve_pinning(policy: AffinityPolicy, nthreads: usize) -> Vec<usize>
Expand description

Returns a list of CPU IDs to pin nthreads workers to, sized exactly nthreads. If topology info is unavailable or policy is none, returns an empty vec (caller should skip pinning).