build: add optional NUMA and CPU counts detection
authorJuraj Linkeš <juraj.linkes@pantheon.tech>
Tue, 17 Aug 2021 10:45:56 +0000 (12:45 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 16 Sep 2021 07:43:28 +0000 (09:43 +0200)
commit8ef09fdc506b76d505d90e064d1f73533388b640
tree0aa8c1c150dfc40c9e36ddb0e7dbd79402821e01
parent9c8c806487853e2fba777d6497c33e3c3bb5ac46
build: add optional NUMA and CPU counts detection

Add an option to automatically discover the host's NUMA and CPU counts
and use those values for a non cross-build.
Give users the option to override the per-arch default values or values
from cross files by specifying them on the command line with -Dmax_lcores
and -Dmax_numa_nodes.

Signed-off-by: Juraj Linkeš <juraj.linkes@pantheon.tech>
Reviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
Reviewed-by: David Christensen <drc@linux.vnet.ibm.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
MAINTAINERS
buildtools/get-cpu-count.py [new file with mode: 0644]
buildtools/get-numa-count.py [new file with mode: 0644]
buildtools/meson.build
config/meson.build
config/x86/meson.build
meson_options.txt