Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

[CPU] Disable NUMA mbind for all Android architectures (#37863)

Jeevaka Prabu Badrappanb5381f8821f4
diff --git a/src/plugins/intel_cpu/src/cpu_memory.cpp b/src/plugins/intel_cpu/src/cpu_memory.cpp
index 6be3705fe2a..fa3fbd70be7 100644
--- a/src/plugins/intel_cpu/src/cpu_memory.cpp
+++ b/src/plugins/intel_cpu/src/cpu_memory.cpp
@@ -556,9 +556,9 @@ void StaticMemory::StaticMemoryBlock::unregisterMemory(Memory* memPtr) {
// do nothing
}
-// Android arm64 (aarch64) the seccomp filter forbids the mbind syscall. Android devices
-// are single-NUMA-node anyway, so the binding is unnecessary there.
-#if defined(__linux__) && !(defined(__ANDROID__) && defined(__aarch64__))
+// Android (all architectures) is single-NUMA-node and its seccomp filters may
+// forbid the mbind syscall, so the binding is unnecessary there.
+#if defined(__linux__) && !defined(__ANDROID__)
# define MPOL_DEFAULT 0
# define MPOL_BIND 2
# define MPOL_MF_STRICT (1 << 0)
@@ -579,7 +579,7 @@ static int64_t mbind(void* start, uint64_t len, int mode, const uint64_t* nmask,
}
#endif
-#if defined(__linux__) && !(defined(__ANDROID__) && defined(__aarch64__))
+#if defined(__linux__) && !defined(__ANDROID__)
bool mbind_move(void* data, size_t size, int targetNode) {
int realNode = ov::get_org_numa_id(targetNode);
auto pagesize = getpagesize();