polaris.run.topology.physical_cores

polaris.run.topology.physical_cores(cpu_ids: Iterable[int]) → int[source]

How many physical cores a set of ids spans.

Two sibling threads are one core; a rank allowed both has one core’s worth of the machine, not two.