f-stack/dpdk/buildtools/get-cpu-count.py

8 lines
139 B
Python
Raw Normal View History

2022-09-06 04:00:10 +00:00
#!/usr/bin/env python3
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (c) 2021 PANTHEON.tech s.r.o.
import os
print(os.cpu_count())