Skip to content

vllm.utils.ompmultiprocessing

OMP Aware Multiprocessing manager for running multiprocessing.Process() Copyright (c) 2026 Red Hat Inc Copyright (c) 2026 Cambridge Greys Ltd

Classes:

OMPProcessManager

_get_autobind_cpu_ids(cpu_selector)

Return CPU ids to bind based on NUMA nodes, and CPU ids reserved for other processes. Currently for rank N, only CPU ids on the N-th node in available NUMA node list will be selected.

Parameters:

  • cpu_selector

    (Callable[[list[LogicalCPUInfo]], list[LogicalCPUInfo]]) –

    a callable object to select CPUs from a CPU list of a physical core. The input is a LogicalCPUInfo list contains logical CPUs of a physical CPU, sorted by the LogicalCPUInfo.id. A selected LogicalCPUInfo list should be returned.