Skip to main content

compute_targets

Function compute_targets 

Source
fn compute_targets(
    total_cpus: usize,
    cells: &[(u32, f64)],
) -> Result<HashMap<u32, usize>>
Expand description

Compute the global target CPU count for each cell.

Each cell gets a floor of 1 CPU, with the remainder distributed proportionally by weight. Returns only counts, not actual CPU assignments.