Closed salman-moh closed 1 year ago
This PR contains more changes than advertised from the title. Please only submit one change per PR
os.cpu_count()
does not give the correct result on Linux systems.
Sorry I'll remove the other changes, keeping only the os.cpu_count()
- this is returning me the same value as the len(os.sched_getaffinity(0))
, what exactly is the incorrect result ?
@SGenheden please let me know, because I printed out both in my Linux machine and they return the same.
These changes are to prevent:
AttributeError: module 'os' has no attribute 'sched_getaffinity'