kicad2ems.emsdev.cpu

The CPU: how many threads (or worker processes) a compiled core or a parallel
map should use.
kicad2ems.emsdev.cpu.core_threads()[source]
The default thread count: one per physical core of the fastest kind (the
performance cores of a hybrid CPU; no hyper-threads). On an i7-13700K (8 P +
8 E cores, 24 threads) gfdtd's core ran 1.2-3x faster on 8 threads than on
24: the barriers wait for the slowest thread. OMP_NUM_THREADS overrides it
where the caller lets it. Linux reads /sys, Windows asks the kernel
(windows_fast_cores); elsewhere half the logical CPUs. mom25d asks here too
(it had its own rule: 0.9 of the top clock and every CPU, not the ones the
process may use).
kicad2ems.emsdev.cpu.efficiency_classes(buf)[source]
The efficiency class of each physical core in a
GetLogicalProcessorInformationEx(RelationProcessorCore) buffer: a list of
SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX records, each Relationship (DWORD),
Size (DWORD), then PROCESSOR_RELATIONSHIP: Flags (BYTE), EfficiencyClass
(BYTE), ... A higher class is a faster core (the P-cores of a hybrid CPU); a
CPU of one kind has them all 0.
kicad2ems.emsdev.cpu.windows_fast_cores()[source]
Windows: the physical cores of the highest efficiency class (a hybrid
CPU's P-cores; every core of the others), from
GetLogicalProcessorInformationEx; None where it cannot tell.