Skip to content

Commit

Permalink
arch: Add Cpu64.cores_physical_per_numa_domain
Browse files Browse the repository at this point in the history
  • Loading branch information
FabioLuporini committed Jun 3, 2024
1 parent fc91dea commit e39e014
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions devito/arch/archinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e39e014

Please sign in to comment.