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

8 lines
139 B
Python

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