Rate This Document
Findability
Accuracy
Completeness
Readability

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

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