You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a laptop with 6 physical CPU cores and hyper-threading. The code from auto_detect_cpus gives 12:
from os import sched_getaffinity
len(sched_getaffinity(0))
Out[24]: 12
The optimal number of parallel processes though is 6. Tests run slower when using 12 processes.
Did you consider using psutil.cpu_count(logical=False)?