From e39e014916d80ffcd9e82f2e88202a19887e11d3 Mon Sep 17 00:00:00 2001 From: Fabio Luporini Date: Tue, 9 Apr 2024 14:03:54 +0000 Subject: [PATCH] arch: Add Cpu64.cores_physical_per_numa_domain --- devito/arch/archinfo.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/devito/arch/archinfo.py b/devito/arch/archinfo.py index 364e402a11..ce17ecfc13 100644 --- a/devito/arch/archinfo.py +++ b/devito/arch/archinfo.py @@ -721,6 +721,10 @@ def numa_domains(self): warning("NUMA domain count autodetection failed") return 1 + @property + def cores_physical_per_numa_domain(self): + return self.cores_physical // self.numa_domains + @cached_property def memtotal(self): return psutil.virtual_memory().total