我要评分
获取效率
正确性
完整性
易理解

HTL_is_cpu_in_same_numa

Checks whether specified CPUs belong to the same NUMA node.

Interface Definition

bool HTL_is_cpu_in_same_numa(int i, int j);

Parameters

Parameter

Type

Description

Input/Output

i

int

CPU index.

Input

j

int

CPU index.

Input

Return Value

  • true: The CPUs belong to the same NUMA node.
  • false: The CPUs do not belong to the same NUMA node.

Example

1
bool same = HTL_is_cpu_in_same_numa(cpu, cpu + 1);