Check device core
Check physical and logical cores of the device
from sys import num_physical_cores, num_logical_cores
def main():
print(" Physical Cores : ", num_physical_cores())
print(" Logical Cores : ", num_logical_cores())
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
Check physical and logical cores of the device
from sys import num_physical_cores, num_logical_cores
def main():
print(" Physical Cores : ", num_physical_cores())
print(" Logical Cores : ", num_logical_cores())