mache.parallel.topology.one_thread_per_core
- mache.parallel.topology.one_thread_per_core(cpu_ids: Iterable[int]) List[int][source]
Reduce a set of ids to one per physical core, the lowest of each.
- Parameters:
cpu_ids (iterable of int) – The ids a job may use
- Returns:
cores (list of int) – One id per physical core among them, in ascending order