build: add optional NUMA and CPU counts detection
[dpdk.git] / buildtools / get-cpu-count.py
1 #!/usr/bin/env python3
2 # SPDX-License-Identifier: BSD-3-Clause
3 # Copyright (c) 2021 PANTHEON.tech s.r.o.
4
5 import os
6
7 print(os.cpu_count())