enum ov::Affinity

Overview

Enum to define possible affinity patterns. More…

#include <properties.hpp>

enum Affinity
{
    NONE         = -1,
    CORE         = 0,
    NUMA         = 1,
    HYBRID_AWARE = 2,
};

Detailed Documentation

Enum to define possible affinity patterns.

Enum Values

NONE

Disable threads affinity pinning.

CORE

Pin threads to cores, best for static benchmarks.

NUMA

Pin threads to NUMA nodes, best for real-life, contented cases. On the Windows and MacOS* this option behaves as CORE

HYBRID_AWARE

Let the runtime to do pinning to the cores types, e.g. prefer the “big” cores for latency tasks. On the hybrid CPUs this option is default